2017-08-22 07:25:50 +08:00
|
|
|
# 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
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: %run %t-ShrinkControlFlowSimpleTest -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 %t/C 2>&1 | FileCheck %s
|
2017-08-22 07:25:50 +08:00
|
|
|
CHECK: INFO: found item with checksum '0eb8e4ed029b774d80f2b66408203801cb982a60'
|
|
|
|
|
|
|
|
# Test that reduce_inputs deletes redundant files in the corpus.
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: %run %t-ShrinkControlFlowSimpleTest -runs=0 %t/C 2>&1 | FileCheck %s --check-prefix=COUNT
|
2017-08-30 04:51:24 +08:00
|
|
|
COUNT: seed corpus: files: 4
|
2017-08-22 07:25:50 +08:00
|
|
|
|
|
|
|
# a bit longer test
|
2018-06-28 08:39:50 +08:00
|
|
|
RUN: %run %t-ShrinkControlFlowTest -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -seed=42 -runs=1000000 2>&1 | FileCheck %s
|
2017-08-22 07:25:50 +08:00
|
|
|
|