• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CHECK: BINGO
2Done1000000: Done 1000000 runs in
3
4RUN: LLVMFuzzer-SimpleTest 2>&1 | FileCheck %s
5
6# only_ascii mode. Will perform some minimal self-validation.
7RUN: LLVMFuzzer-SimpleTest -only_ascii=1 2>&1
8
9RUN: LLVMFuzzer-SimpleCmpTest -max_total_time=1 2>&1 | FileCheck %s --check-prefix=MaxTotalTime
10MaxTotalTime: Done {{.*}} runs in {{.}} second(s)
11
12RUN: 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
15NullDerefTest: 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-
18RUN: not LLVMFuzzer-NullDerefTest  -artifact_prefix=ZZZ -exact_artifact_path=FOOBAR 2>&1 | FileCheck %s --check-prefix=NullDerefTestExactPath
19NullDerefTestExactPath: Test unit written to FOOBAR
20
21RUN: 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
24#not LLVMFuzzer-FullCoverageSetTest -timeout=15 -seed=1 -mutate_depth=2 -use_full_coverage_set=1 2>&1 | FileCheck %s
25
26RUN: not LLVMFuzzer-CounterTest -use_counters=1 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
27
28RUN: not LLVMFuzzer-CallerCalleeTest                     -cross_over=0 -max_len=6 -seed=1 -timeout=15 2>&1 | FileCheck %s
29# 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
31
32RUN: not LLVMFuzzer-UninstrumentedTest-Uninstrumented 2>&1 | FileCheck %s --check-prefix=UNINSTRUMENTED
33UNINSTRUMENTED: ERROR: __sanitizer_set_death_callback is not defined. Exiting.
34
35RUN: 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
38RUN: 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
41
42RUN: not LLVMFuzzer-InitializeTest 2>&1 | FileCheck %s
43
44