OSDN Git Service

[libFuzzer] remove the now redundant 'LLVMFuzzer-' prefix from libFuzzer tests
[android-x86/external-llvm.git] / lib / Fuzzer / test / fuzzer-singleinputs.test
1 RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest
2 RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
3
4 RUN: not %t-NullDerefTest %S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInput
5 SingleInput-NOT: Test unit written to ./crash-
6
7 RUN: rm -rf  %tmp/SINGLE_INPUTS
8 RUN: mkdir -p  %tmp/SINGLE_INPUTS
9 RUN: echo aaa > %tmp/SINGLE_INPUTS/aaa
10 RUN: echo bbb > %tmp/SINGLE_INPUTS/bbb
11 RUN: %t-SimpleTest            %tmp/SINGLE_INPUTS/aaa %tmp/SINGLE_INPUTS/bbb 2>&1 | FileCheck %s --check-prefix=SINGLE_INPUTS
12 RUN: %t-SimpleTest -max_len=2 %tmp/SINGLE_INPUTS/aaa %tmp/SINGLE_INPUTS/bbb 2>&1 | FileCheck %s --check-prefix=SINGLE_INPUTS
13 RUN: rm -rf  %tmp/SINGLE_INPUTS
14 SINGLE_INPUTS: SimpleTest{{.*}}: Running 2 inputs 1 time(s) each.
15 SINGLE_INPUTS: aaa in
16 SINGLE_INPUTS: bbb in
17 SINGLE_INPUTS: NOTE: fuzzing was not performed, you have only
18 SINGLE_INPUTS: executed the target code on a fixed set of inputs.
19