2015-10-24 09:16:40 +08:00
|
|
|
CHECK: BINGO
|
|
|
|
|
|
|
|
RUN: rm -rf %tmp/T1 %tmp/T2
|
|
|
|
RUN: mkdir -p %tmp/T1 %tmp/T2
|
|
|
|
RUN: echo F..... > %tmp/T1/1
|
|
|
|
RUN: echo .U.... > %tmp/T1/2
|
|
|
|
RUN: echo ..Z... > %tmp/T1/3
|
|
|
|
|
|
|
|
# T1 has 3 elements, T2 is empty.
|
|
|
|
RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=CHECK1
|
2016-03-18 08:23:29 +08:00
|
|
|
CHECK1: === Minimizing the initial corpus of 3 units
|
|
|
|
CHECK1: === Merge: written 0 units
|
2015-10-24 09:16:40 +08:00
|
|
|
|
|
|
|
RUN: echo ...Z.. > %tmp/T2/1
|
|
|
|
RUN: echo ....E. > %tmp/T2/2
|
|
|
|
RUN: echo .....R > %tmp/T2/3
|
|
|
|
RUN: echo F..... > %tmp/T2/a
|
|
|
|
RUN: echo .U.... > %tmp/T2/b
|
|
|
|
RUN: echo ..Z... > %tmp/T2/c
|
|
|
|
|
|
|
|
# T1 has 3 elements, T2 has 6 elements, only 3 are new.
|
|
|
|
RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=CHECK2
|
2016-03-18 08:23:29 +08:00
|
|
|
CHECK2: === Minimizing the initial corpus of 3 units
|
|
|
|
CHECK2: === Merging extra 6 units
|
|
|
|
CHECK2: === Merge: written 3 units
|
2015-10-24 09:16:40 +08:00
|
|
|
|
|
|
|
# Now, T1 has 6 units and T2 has no new interesting units.
|
|
|
|
RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=CHECK3
|
2016-03-18 08:23:29 +08:00
|
|
|
CHECK3: === Minimizing the initial corpus of 6 units
|
|
|
|
CHECK3: === Merge: written 0 units
|