Add lit-style tests for the Fuzzer library
[oota-llvm.git] / lib / Fuzzer / test / fuzzer.test
1 RUN: ./LLVMFuzzer-SimpleTest 2>&1 | FileCheck %s --check-prefix=SimpleTest
2 SimpleTest: Found the target, exiting
3
4 RUN: not ./LLVMFuzzer-InfiniteTest -timeout=2 2>&1 | FileCheck %s --check-prefix=InfiniteTest
5 InfiniteTest: ALARM: working on the last Unit for
6 InfiniteTest-NOT: CRASHED; file written to timeout
7
8 RUN: not ./LLVMFuzzer-TimeoutTest -timeout=5 2>&1 | FileCheck %s --check-prefix=TimeoutTest
9 TimeoutTest: ALARM: working on the last Unit for
10 TimeoutTest: CRASHED; file written to timeout
11
12 RUN: not ./LLVMFuzzer-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
13 NullDerefTest: CRASHED; file written to crash-