blob: 94db0fe4ce0ce91045efcbb3e5d8184d7864cf98 [file] [log] [blame]
Kostya Serebryanya407dde2015-05-07 00:11:33 +00001CHECK: BINGO
2
Alexey Samsonov4800c2d2015-07-21 22:51:55 +00003RUN: LLVMFuzzer-SimpleTest 2>&1 | FileCheck %s
Kostya Serebryanyb91c62b2015-10-16 22:41:47 +00004RUN: not LLVMFuzzer-NullDerefTest -test_single_input=%S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInput
5SingleInput-NOT: Test unit written to ./crash-
Aaron Ballmanef116982015-01-29 16:58:29 +00006
Alexey Samsonov4800c2d2015-07-21 22:51:55 +00007RUN: not LLVMFuzzer-InfiniteTest -timeout=2 2>&1 | FileCheck %s --check-prefix=InfiniteTest
Aaron Ballmanef116982015-01-29 16:58:29 +00008InfiniteTest: ALARM: working on the last Unit for
Kostya Serebryanybd5d1cd2015-10-09 03:57:59 +00009InfiniteTest: Test unit written to ./timeout-
Aaron Ballmanef116982015-01-29 16:58:29 +000010
Kostya Serebryanyb85db172015-10-02 20:47:55 +000011RUN: LLVMFuzzer-SimpleCmpTest -max_total_time=1 2>&1 | FileCheck %s --check-prefix=MaxTotalTime
12MaxTotalTime: Done {{.*}} runs in {{.}} second(s)
13
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000014RUN: not LLVMFuzzer-TimeoutTest -timeout=5 2>&1 | FileCheck %s --check-prefix=TimeoutTest
Aaron Ballmanef116982015-01-29 16:58:29 +000015TimeoutTest: ALARM: working on the last Unit for
Kostya Serebryanybd5d1cd2015-10-09 03:57:59 +000016TimeoutTest: Test unit written to ./timeout-
Kostya Serebryanyd6edce92015-10-16 23:04:31 +000017TimeoutTest: == ERROR: libFuzzer: timeout after
18TimeoutTest: #0
19TimeoutTest: #1
20TimeoutTest: #2
21TimeoutTest: SUMMARY: libFuzzer: timeout
Aaron Ballmanef116982015-01-29 16:58:29 +000022
Kostya Serebryanyb91c62b2015-10-16 22:41:47 +000023RUN: not LLVMFuzzer-TimeoutTest -timeout=5 -test_single_input=%S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInputTimeoutTest
24SingleInputTimeoutTest: ALARM: working on the last Unit for
25SingleInputTimeoutTest-NOT: Test unit written to ./timeout-
26
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000027RUN: not LLVMFuzzer-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
Kostya Serebryanybd5d1cd2015-10-09 03:57:59 +000028NullDerefTest: Test unit written to ./crash-
29RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix
30NullDerefTestPrefix: Test unit written to ZZZcrash-
Kostya Serebryany2c1b33b2015-01-29 23:01:07 +000031
Kostya Serebryany65d0a142015-10-02 22:00:32 +000032#not LLVMFuzzer-FullCoverageSetTest -timeout=15 -seed=1 -mutate_depth=2 -use_full_coverage_set=1 2>&1 | FileCheck %s
Kostya Serebryany2e3622b2015-02-20 03:02:37 +000033
Kostya Serebryany65d0a142015-10-02 22:00:32 +000034#not LLVMFuzzer-FourIndependentBranchesTest -timeout=15 -seed=1 -use_traces=1 2>&1 | FileCheck %s
Kostya Serebryanybe5e0ed2015-03-03 23:27:02 +000035
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000036RUN: not LLVMFuzzer-CounterTest -use_counters=1 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
Kostya Serebryany16d03bd2015-03-30 22:09:51 +000037
Kostya Serebryany2e9fca92015-10-22 23:55:39 +000038RUN: not LLVMFuzzer-CallerCalleeTest -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
39RUN: LLVMFuzzer-CallerCalleeTest -use_indir_calls=0 -max_len=6 -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
40
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000041RUN: not LLVMFuzzer-SimpleCmpTest -use_traces=1 -seed=1 -runs=1000000 -timeout=5 2>&1 | FileCheck %s
Kostya Serebryanya407dde2015-05-07 00:11:33 +000042
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000043RUN: not LLVMFuzzer-UserSuppliedFuzzerTest -seed=1 -timeout=15 2>&1 | FileCheck %s
Kostya Serebryanyf3424592015-05-22 22:35:31 +000044
Kostya Serebryany12c78372015-08-12 01:55:37 +000045RUN: not LLVMFuzzer-MemcmpTest -use_traces=1 -seed=1 -runs=100000 2>&1 | FileCheck %s
Kostya Serebryany0e776a22015-07-30 01:34:58 +000046RUN: LLVMFuzzer-MemcmpTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
47Done1000000: Done 1000000 runs in
Kostya Serebryanyb74ba422015-07-30 02:33:45 +000048
Kostya Serebryany12c78372015-08-12 01:55:37 +000049RUN: not LLVMFuzzer-StrncmpTest -use_traces=1 -seed=1 -runs=100000 2>&1 | FileCheck %s
Kostya Serebryanyb74ba422015-07-30 02:33:45 +000050RUN: LLVMFuzzer-StrncmpTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
Kostya Serebryanyfb7d8d92015-07-31 01:33:06 +000051
Kostya Serebryany12c78372015-08-12 01:55:37 +000052RUN: not LLVMFuzzer-StrcmpTest -use_traces=1 -seed=1 -runs=100000 2>&1 | FileCheck %s
Kostya Serebryany7f4227d2015-08-05 18:23:01 +000053RUN: LLVMFuzzer-StrcmpTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
54
Kostya Serebryanyfe7e41e2015-07-31 20:58:55 +000055RUN: not LLVMFuzzer-SwitchTest -use_traces=1 -seed=1 -runs=1000000 2>&1 | FileCheck %s
Kostya Serebryanyfb7d8d92015-07-31 01:33:06 +000056RUN: LLVMFuzzer-SwitchTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
Kostya Serebryany7d211662015-09-04 00:12:11 +000057
58RUN: not LLVMFuzzer-SimpleDictionaryTest -dict=%S/dict1.txt -seed=1 -runs=1000000 2>&1 | FileCheck %s
59RUN: LLVMFuzzer-SimpleDictionaryTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
Ivan Krasina610cb52015-09-08 21:22:52 +000060
61RUN: not LLVMFuzzer-SimpleHashTest -use_traces=1 -seed=1 -runs=100000 2>&1 | FileCheck %s
62RUN: LLVMFuzzer-SimpleHashTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000