blob: 11343ae3834a19bc9a2752e9868a3ecf7d86e8ef [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
Aaron Ballmanef116982015-01-29 16:58:29 +00005
Kostya Serebryanyf1f3f932016-05-26 20:03:02 +00006# only_ascii mode. Will perform some minimal self-validation.
7RUN: LLVMFuzzer-SimpleTest -only_ascii=1 2>&1
8
Kostya Serebryanyb85db172015-10-02 20:47:55 +00009RUN: LLVMFuzzer-SimpleCmpTest -max_total_time=1 2>&1 | FileCheck %s --check-prefix=MaxTotalTime
10MaxTotalTime: Done {{.*}} runs in {{.}} second(s)
11
Kostya Serebryany470d0442016-05-27 21:46:22 +000012RUN: not LLVMFuzzer-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
13RUN: not LLVMFuzzer-NullDerefTest -close_fd_mask=3 2>&1 | FileCheck %s --check-prefix=NullDerefTest
14NullDerefTest: ERROR: AddressSanitizer: SEGV on unknown address
Kostya Serebryanybd5d1cd2015-10-09 03:57:59 +000015NullDerefTest: Test unit written to ./crash-
16RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix
17NullDerefTestPrefix: Test unit written to ZZZcrash-
Kostya Serebryany2d0ef142015-11-25 21:40:46 +000018RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ -exact_artifact_path=FOOBAR 2>&1 | FileCheck %s --check-prefix=NullDerefTestExactPath
19NullDerefTestExactPath: Test unit written to FOOBAR
Kostya Serebryany2c1b33b2015-01-29 23:01:07 +000020
Kostya Serebryanyff2e6ba2016-05-25 00:15:36 +000021RUN: not LLVMFuzzer-NullDerefOnEmptyTest -print_final_stats=1 2>&1 | FileCheck %s --check-prefix=NULL_DEREF_ON_EMPTY
22NULL_DEREF_ON_EMPTY: stat::number_of_executed_units:
23
Kostya Serebryany65d0a142015-10-02 22:00:32 +000024#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 +000025
Alexey Samsonov4800c2d2015-07-21 22:51:55 +000026RUN: not LLVMFuzzer-CounterTest -use_counters=1 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
Kostya Serebryany16d03bd2015-03-30 22:09:51 +000027
Kostya Serebryany27ab2d72015-12-19 02:49:09 +000028RUN: not LLVMFuzzer-CallerCalleeTest -cross_over=0 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
Kostya Serebryany152ac7a2016-01-07 01:49:35 +000029# This one is flaky, may actually find the goal even w/o use_indir_calls.
30# 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 +000031
Kostya Serebryany5eab74e2015-11-09 23:17:45 +000032RUN: not LLVMFuzzer-UninstrumentedTest-Uninstrumented 2>&1 | FileCheck %s --check-prefix=UNINSTRUMENTED
33UNINSTRUMENTED: ERROR: __sanitizer_set_death_callback is not defined. Exiting.
Mike Aizatsky8b11f872016-01-06 00:21:22 +000034
Kostya Serebryany76f42522016-06-08 01:46:13 +000035RUN: not LLVMFuzzer-UninstrumentedTest-NoCoverage 2>&1 | FileCheck %s --check-prefix=NO_COVERAGE
36NO_COVERAGE: ERROR: no interesting inputs were found. Is the code instrumented for coverage? Exiting
37
Kostya Serebryanyd50a3ee2016-01-13 23:02:30 +000038RUN: not LLVMFuzzer-BufferOverflowOnInput 2>&1 | FileCheck %s --check-prefix=OOB
39OOB: AddressSanitizer: heap-buffer-overflow
40OOB: is located 0 bytes to the right of 3-byte region
Kostya Serebryanyaca76962016-01-16 01:23:12 +000041
42RUN: not LLVMFuzzer-InitializeTest 2>&1 | FileCheck %s
Kostya Serebryany311f27c2016-01-19 20:33:57 +000043