• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CHECK: BINGO
2
3RUN: rm -rf  %tmp/T1 %tmp/T2
4RUN: mkdir -p %tmp/T1 %tmp/T2
5RUN: echo F..... > %tmp/T1/1
6RUN: echo .U.... > %tmp/T1/2
7RUN: echo ..Z... > %tmp/T1/3
8
9# T1 has 3 elements, T2 is empty.
10RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=CHECK1
11CHECK1: === Minimizing the initial corpus of 3 units
12CHECK1: === Merge: written 0 units
13
14RUN: echo ...Z.. > %tmp/T2/1
15RUN: echo ....E. > %tmp/T2/2
16RUN: echo .....R > %tmp/T2/3
17RUN: echo F..... > %tmp/T2/a
18RUN: echo .U.... > %tmp/T2/b
19RUN: echo ..Z... > %tmp/T2/c
20
21# T1 has 3 elements, T2 has 6 elements, only 3 are new.
22RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=CHECK2
23CHECK2: === Minimizing the initial corpus of 3 units
24CHECK2: === Merging extra 6 units
25CHECK2: === Merge: written 3 units
26
27# Now, T1 has 6 units and T2 has no new interesting units.
28RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=CHECK3
29CHECK3: === Minimizing the initial corpus of 6 units
30CHECK3: === Merge: written 0 units
31