]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/fuzzer/reduce_inputs.test
New upstream version 1.28.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / test / fuzzer / reduce_inputs.test
1 # Test -reduce_inputs=1
2
3 RUN: rm -rf %t/C
4 RUN: mkdir -p %t/C
5 RUN: %cpp_compiler %S/ShrinkControlFlowSimpleTest.cpp -o %t-ShrinkControlFlowSimpleTest
6 RUN: %cpp_compiler %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest
7 RUN: %t-ShrinkControlFlowSimpleTest -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 %t/C 2>&1 | FileCheck %s
8 CHECK: INFO: found item with checksum '0eb8e4ed029b774d80f2b66408203801cb982a60'
9
10 # Test that reduce_inputs deletes redundant files in the corpus.
11 RUN: %t-ShrinkControlFlowSimpleTest -runs=0 %t/C 2>&1 | FileCheck %s --check-prefix=COUNT
12 COUNT: seed corpus: files: 4
13
14 # a bit longer test
15 RUN: %t-ShrinkControlFlowTest -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -seed=1 -runs=1000000 2>&1 | FileCheck %s
16