diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:54 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:54 +0000 |
| commit | cdf4f3055e964bb585f294cf77cb549ead82783f (patch) | |
| tree | 7bceeca766b3fbe491245bc926a083f78c35d1de /test/fuzzer/reduce_inputs.test | |
| parent | 625108084a3ec7c19c7745004c5af0ed7aa417a9 (diff) | |
Notes
Diffstat (limited to 'test/fuzzer/reduce_inputs.test')
| -rw-r--r-- | test/fuzzer/reduce_inputs.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/fuzzer/reduce_inputs.test b/test/fuzzer/reduce_inputs.test new file mode 100644 index 000000000000..94f8cc4f37a8 --- /dev/null +++ b/test/fuzzer/reduce_inputs.test @@ -0,0 +1,16 @@ +# Test -reduce_inputs=1 + +RUN: rm -rf %t/C +RUN: mkdir -p %t/C +RUN: %cpp_compiler %S/ShrinkControlFlowSimpleTest.cpp -o %t-ShrinkControlFlowSimpleTest +RUN: %cpp_compiler %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest +RUN: %t-ShrinkControlFlowSimpleTest -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 %t/C 2>&1 | FileCheck %s +CHECK: INFO: found item with checksum '0eb8e4ed029b774d80f2b66408203801cb982a60' + +# Test that reduce_inputs deletes redundant files in the corpus. +RUN: %t-ShrinkControlFlowSimpleTest -runs=0 %t/C 2>&1 | FileCheck %s --check-prefix=COUNT +COUNT: seed corpus: files: 4 + +# a bit longer test +RUN: %t-ShrinkControlFlowTest -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -seed=1 -runs=1000000 2>&1 | FileCheck %s + |
