[compiler-rt] r332037 - [libFuzzer] simplify tests, remove one redundant test; NFC
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Thu May 10 13:37:08 PDT 2018
Author: kcc
Date: Thu May 10 13:37:08 2018
New Revision: 332037
URL: http://llvm.org/viewvc/llvm-project?rev=332037&view=rev
Log:
[libFuzzer] simplify tests, remove one redundant test; NFC
Removed:
compiler-rt/trunk/test/fuzzer/inline-8bit-counters.test
Modified:
compiler-rt/trunk/test/fuzzer/afl-driver-extra-stats.test
compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test
compiler-rt/trunk/test/fuzzer/afl-driver.test
compiler-rt/trunk/test/fuzzer/trace-pc.test
compiler-rt/trunk/test/fuzzer/value-profile-load.test
Modified: compiler-rt/trunk/test/fuzzer/afl-driver-extra-stats.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/afl-driver-extra-stats.test?rev=332037&r1=332036&r2=332037&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/afl-driver-extra-stats.test (original)
+++ compiler-rt/trunk/test/fuzzer/afl-driver-extra-stats.test Thu May 10 13:37:08 2018
@@ -1,4 +1,4 @@
-RUN: %no_fuzzer_cpp_compiler -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
+RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
; Test that not specifying an extra stats file isn't broken.
RUN: unset AFL_DRIVER_EXTRA_STATS_FILENAME
Modified: compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test?rev=332037&r1=332036&r2=332037&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test (original)
+++ compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test Thu May 10 13:37:08 2018
@@ -1,5 +1,5 @@
UNSUPPORTED: freebsd
-RUN: %no_fuzzer_cpp_compiler -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
+RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
; Test that not specifying a stderr file isn't broken.
RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
Modified: compiler-rt/trunk/test/fuzzer/afl-driver.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/afl-driver.test?rev=332037&r1=332036&r2=332037&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/afl-driver.test (original)
+++ compiler-rt/trunk/test/fuzzer/afl-driver.test Thu May 10 13:37:08 2018
@@ -1,6 +1,6 @@
REQUIRES: linux
-RUN: %no_fuzzer_cpp_compiler -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
+RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
RUN: echo -n "abc" > %t.file3
RUN: echo -n "abcd" > %t.file4
Removed: compiler-rt/trunk/test/fuzzer/inline-8bit-counters.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/inline-8bit-counters.test?rev=332036&view=auto
==============================================================================
--- compiler-rt/trunk/test/fuzzer/inline-8bit-counters.test (original)
+++ compiler-rt/trunk/test/fuzzer/inline-8bit-counters.test (removed)
@@ -1,4 +0,0 @@
-RUN: %cpp_compiler %S/SimpleTest.cpp -fno-sanitize-coverage=trace-pc-guard -fsanitize-coverage=inline-8bit-counters -o %t-SimpleTest-Inline8bitCounters
-CHECK: INFO: Loaded 1 modules ({{.*}} inline 8-bit counters)
-CHECK: BINGO
-RUN: not %t-SimpleTest-Inline8bitCounters -runs=1000000 -seed=1 2>&1 | FileCheck %s
Modified: compiler-rt/trunk/test/fuzzer/trace-pc.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/trace-pc.test?rev=332037&r1=332036&r2=332037&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/trace-pc.test (original)
+++ compiler-rt/trunk/test/fuzzer/trace-pc.test Thu May 10 13:37:08 2018
@@ -1,3 +1,3 @@
-RUN: %cpp_compiler %S/SimpleTest.cpp -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard -fsanitize-coverage=trace-pc -o %t-SimpleTest-TracePC
+RUN: %cpp_compiler %S/SimpleTest.cpp -fsanitize-coverage=0 -fsanitize-coverage=trace-pc -o %t-SimpleTest-TracePC
CHECK: BINGO
RUN: not %t-SimpleTest-TracePC -runs=1000000 -seed=1 2>&1 | FileCheck %s
Modified: compiler-rt/trunk/test/fuzzer/value-profile-load.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/value-profile-load.test?rev=332037&r1=332036&r2=332037&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/value-profile-load.test (original)
+++ compiler-rt/trunk/test/fuzzer/value-profile-load.test Thu May 10 13:37:08 2018
@@ -1,3 +1,3 @@
CHECK: AddressSanitizer: global-buffer-overflow
-RUN: %cpp_compiler %S/LoadTest.cpp -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-gep,trace-div,trace-cmp -o %t-LoadTest
+RUN: %cpp_compiler %S/LoadTest.cpp -fsanitize-coverage=trace-gep -o %t-LoadTest
RUN: not %t-LoadTest -seed=2 -use_cmp=0 -use_value_profile=1 -runs=20000000 2>&1 | FileCheck %s
More information about the llvm-commits
mailing list