blob: 150fc7202b0039736b7ff761b80dbc22c5331103 [file] [log] [blame]
Kostya Serebryanya407dde2015-05-07 00:11:33 +00001CHECK: BINGO
Kostya Serebryanybf656442015-12-19 03:35:30 +00002Done1000000: Done 1000000 runs in
Kostya Serebryanya407dde2015-05-07 00:11:33 +00003
Alexey Samsonov4800c2d2015-07-21 22:51:55 +00004RUN: LLVMFuzzer-SimpleTest 2>&1 | FileCheck %s
Kostya Serebryanyb91c62b2015-10-16 22:41:47 +00005RUN: not LLVMFuzzer-NullDerefTest -test_single_input=%S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInput
6SingleInput-NOT: Test unit written to ./crash-
Aaron Ballmanef116982015-01-29 16:58:29 +00007
Kostya Serebryanyb85db172015-10-02 20:47:55 +00008RUN: LLVMFuzzer-SimpleCmpTest -max_total_time=1 2>&1 | FileCheck %s --check-prefix=MaxTotalTime
9MaxTotalTime: Done {{.*}} runs in {{.}} second(s)
10
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000011RUN: not LLVMFuzzer-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
Kostya Serebryanybd5d1cd2015-10-09 03:57:59 +000012NullDerefTest: Test unit written to ./crash-
13RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix
14NullDerefTestPrefix: Test unit written to ZZZcrash-
Kostya Serebryany2d0ef142015-11-25 21:40:46 +000015RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ -exact_artifact_path=FOOBAR 2>&1 | FileCheck %s --check-prefix=NullDerefTestExactPath
16NullDerefTestExactPath: Test unit written to FOOBAR
Kostya Serebryany2c1b33b2015-01-29 23:01:07 +000017
Kostya Serebryany65d0a142015-10-02 22:00:32 +000018#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 +000019
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000020RUN: not LLVMFuzzer-CounterTest -use_counters=1 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
Kostya Serebryany16d03bd2015-03-30 22:09:51 +000021
Kostya Serebryany27ab2d72015-12-19 02:49:09 +000022RUN: not LLVMFuzzer-CallerCalleeTest -cross_over=0 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
23RUN: LLVMFuzzer-CallerCalleeTest -use_indir_calls=0 -cross_over=0 -max_len=6 -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
Kostya Serebryany2e9fca92015-10-22 23:55:39 +000024
Kostya Serebryanya407dde2015-05-07 00:11:33 +000025
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000026RUN: not LLVMFuzzer-UserSuppliedFuzzerTest -seed=1 -timeout=15 2>&1 | FileCheck %s
Kostya Serebryanyf3424592015-05-22 22:35:31 +000027
Kostya Serebryany27ab2d72015-12-19 02:49:09 +000028RUN: not LLVMFuzzer-SimpleDictionaryTest -dict=%S/dict1.txt -seed=1 -runs=1000003 2>&1 | FileCheck %s
Kostya Serebryany7d211662015-09-04 00:12:11 +000029RUN: LLVMFuzzer-SimpleDictionaryTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000
Ivan Krasina610cb52015-09-08 21:22:52 +000030
Kostya Serebryany5eab74e2015-11-09 23:17:45 +000031RUN: not LLVMFuzzer-UninstrumentedTest-Uninstrumented 2>&1 | FileCheck %s --check-prefix=UNINSTRUMENTED
32UNINSTRUMENTED: ERROR: __sanitizer_set_death_callback is not defined. Exiting.
Mike Aizatsky8b11f872016-01-06 00:21:22 +000033
34RUN: LLVMFuzzer-SimpleTest -print_new_cov_pcs=1 2>&1 | FileCheck %s --check-prefix=PCS
35PCS:{{^0x[a-f0-9]+}}
36PCS:NEW
37PCS:BINGO
38