[llvm] r298673 - [libFuzzer] split two tests to get more parallelism in test runs
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 23 17:51:18 PDT 2017
Author: kcc
Date: Thu Mar 23 19:51:18 2017
New Revision: 298673
URL: http://llvm.org/viewvc/llvm-project?rev=298673&view=rev
Log:
[libFuzzer] split two tests to get more parallelism in test runs
Added:
llvm/trunk/lib/Fuzzer/test/disable-leaks.test
llvm/trunk/lib/Fuzzer/test/equivalence-signals.test
Modified:
llvm/trunk/lib/Fuzzer/test/equivalence.test
llvm/trunk/lib/Fuzzer/test/fuzzer-leak.test
Added: llvm/trunk/lib/Fuzzer/test/disable-leaks.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/disable-leaks.test?rev=298673&view=auto
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/disable-leaks.test (added)
+++ llvm/trunk/lib/Fuzzer/test/disable-leaks.test Thu Mar 23 19:51:18 2017
@@ -0,0 +1,4 @@
+REQUIRES: lsan
+RUN: LLVMFuzzer-AccumulateAllocationsTest -detect_leaks=1 -runs=100000 2>&1 | FileCheck %s --check-prefix=ACCUMULATE_ALLOCS
+ACCUMULATE_ALLOCS: INFO: libFuzzer disabled leak detection after every mutation
+
Added: llvm/trunk/lib/Fuzzer/test/equivalence-signals.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/equivalence-signals.test?rev=298673&view=auto
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/equivalence-signals.test (added)
+++ llvm/trunk/lib/Fuzzer/test/equivalence-signals.test Thu Mar 23 19:51:18 2017
@@ -0,0 +1,9 @@
+REQUIRES: posix
+# Run EquivalenceATest against itself with a small timeout
+# to stress the signal handling and ensure that shmem doesn't mind
+# the signals.
+
+RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_SIG_TEST & export APID=$!
+RUN: sleep 3
+RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -use_equivalence_server=EQUIV_SIG_TEST -runs=500000 2>&1
+RUN: kill -9 $APID
Modified: llvm/trunk/lib/Fuzzer/test/equivalence.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/equivalence.test?rev=298673&r1=298672&r2=298673&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/equivalence.test (original)
+++ llvm/trunk/lib/Fuzzer/test/equivalence.test Thu Mar 23 19:51:18 2017
@@ -6,13 +6,3 @@ RUN: not LLVMFuzzer-EquivalenceBTest -us
CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2
CHECK: SUMMARY: libFuzzer: equivalence-mismatch
RUN: kill -9 $APID
-
-
-# Run EquivalenceATest against itself with a small timeout
-# to stress the signal handling and ensure that shmem doesn't mind
-# the signals.
-
-RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_TEST & export APID=$!
-RUN: sleep 3
-RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -use_equivalence_server=EQUIV_TEST -runs=500000 2>&1
-RUN: kill -9 $APID
Modified: llvm/trunk/lib/Fuzzer/test/fuzzer-leak.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/fuzzer-leak.test?rev=298673&r1=298672&r2=298673&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer-leak.test (original)
+++ llvm/trunk/lib/Fuzzer/test/fuzzer-leak.test Thu Mar 23 19:51:18 2017
@@ -29,7 +29,5 @@ RUN: not LLVMFuzzer-LeakTimeoutTest -tim
LEAK_TIMEOUT: ERROR: libFuzzer: timeout after
LEAK_TIMEOUT-NOT: LeakSanitizer
-RUN: LLVMFuzzer-AccumulateAllocationsTest -detect_leaks=1 -runs=100000 2>&1 | FileCheck %s --check-prefix=ACCUMULATE_ALLOCS
-ACCUMULATE_ALLOCS: INFO: libFuzzer disabled leak detection after every mutation
RUN: LLVMFuzzer-LeakTest -error_exitcode=0
More information about the llvm-commits
mailing list