1 RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-LLVMFuzzer-NullDerefTest
2 RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-LLVMFuzzer-SimpleTest
4 RUN: not %t-LLVMFuzzer-NullDerefTest %S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInput
5 SingleInput-NOT: Test unit written to ./crash-
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-LLVMFuzzer-SimpleTest %tmp/SINGLE_INPUTS/aaa %tmp/SINGLE_INPUTS/bbb 2>&1 | FileCheck %s --check-prefix=SINGLE_INPUTS
12 RUN: %t-LLVMFuzzer-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: LLVMFuzzer-SimpleTest{{.*}}: Running 2 inputs 1 time(s) each.
17 SINGLE_INPUTS: NOTE: fuzzing was not performed, you have only
18 SINGLE_INPUTS: executed the target code on a fixed set of inputs.