summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/inline-8bit-counters.test
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-08-04 17:19:45 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-08-04 17:19:45 +0000
commit8ecdd7be154affd28bf91217913676b00db62cb7 (patch)
tree399c219e64c4dac67e1975ddbc8f5246e50aaabe /llvm/lib/Fuzzer/test/inline-8bit-counters.test
parentff77cc750cf99b875915a37c1146c5f56de0edc8 (diff)
downloadbcm5719-llvm-8ecdd7be154affd28bf91217913676b00db62cb7.tar.gz
bcm5719-llvm-8ecdd7be154affd28bf91217913676b00db62cb7.zip
Port libFuzzer tests to LIT. Do not require two-stage build for check-fuzzer.
This revision ports all libFuzzer tests apart from the unittest to LIT. The advantages of doing so include: - Tests being self-contained - Much easier debugging of a single test - No need for using a two-stage compilation The unit-test is still compiled using CMake, but it does not need a freshly built compiler. NOTE: The previous two-stage bot configuration will NOT work, as in the second stage build LLVM_USE_SANITIZER is set, which disables ASAN from being built. Thus bots will be reconfigured in the next few commits. Differential Revision: https://reviews.llvm.org/D36295 llvm-svn: 310075
Diffstat (limited to 'llvm/lib/Fuzzer/test/inline-8bit-counters.test')
-rw-r--r--llvm/lib/Fuzzer/test/inline-8bit-counters.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/inline-8bit-counters.test b/llvm/lib/Fuzzer/test/inline-8bit-counters.test
index 4727ba45946..098689a77d7 100644
--- a/llvm/lib/Fuzzer/test/inline-8bit-counters.test
+++ b/llvm/lib/Fuzzer/test/inline-8bit-counters.test
@@ -1,4 +1,5 @@
REQUIRES: linux
+RUN: %cpp_compiler %S/SimpleTest.cpp -fno-sanitize-coverage=trace-pc-guard -fsanitize-coverage=inline-8bit-counters -o %t-LLVMFuzzer-SimpleTest-Inline8bitCounters
CHECK: INFO: Loaded 1 modules ({{.*}} inline 8-bit counters)
CHECK: BINGO
-RUN: not LLVMFuzzer-SimpleTest-Inline8bitCounters -runs=1000000 -seed=1 2>&1 | FileCheck %s
+RUN: not %t-LLVMFuzzer-SimpleTest-Inline8bitCounters -runs=1000000 -seed=1 2>&1 | FileCheck %s
OpenPOWER on IntegriCloud