1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/lib/Fuzzer/test/fuzzer-prunecorpus.test
Mike Aizatsky 971be03956 [libfuzzer] prune_corpus option for disabling pruning during the load.
Summary:
The option is very useful for testing, plus I intend to measure
its effect on fuzzer effectiveness.

Differential Revision: http://reviews.llvm.org/D21084

llvm-svn: 272035
2016-06-07 18:16:32 +00:00

14 lines
463 B
Plaintext

RUN: rm -rf %t/PruneCorpus
RUN: mkdir -p %t/PruneCorpus
RUN: echo a > %t/PruneCorpus/a
RUN: echo b > %t/PruneCorpus/b
RUN: LLVMFuzzer-EmptyTest %t/PruneCorpus -prune_corpus=1 -runs=0 2>&1 | FileCheck %s --check-prefix=PRUNE
RUN: LLVMFuzzer-EmptyTest %t/PruneCorpus -prune_corpus=0 -runs=0 2>&1 | FileCheck %s --check-prefix=NOPRUNE
RUN: rm -rf %t/PruneCorpus
PRUNE: READ units: 2
PRUNE: INITED{{.*}}units: 1
NOPRUNE: READ units: 2
NOPRUNE: INITED{{.*}}units: 2