1RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest
2
3RUN: rm -rf %t/T0 %t/T1 %t/T2
4RUN: mkdir -p %t/T0 %t/T1 %t/T2
5RUN: echo F..... > %t/T1/1
6RUN: echo .U.... > %t/T1/2
7RUN: echo ..Z... > %t/T1/3
8
9# T1 has 3 elements, T0 is empty.
10RUN: rm -f %t/MCF
11RUN: %run %t-FullCoverageSetTest -merge=1 -merge_control_file=%t/MCF %t/T0 %t/T1 2>&1 | FileCheck %s --check-prefix=CHECK1
12CHECK1: MERGE-OUTER: 3 files, 0 in the initial corpus
13CHECK1: MERGE-OUTER: 3 new files with {{.*}} new features added; 11 new coverage edges
14
15RUN: echo ...Z.. > %t/T2/1
16RUN: echo ....E. > %t/T2/2
17RUN: echo .....R > %t/T2/3
18RUN: echo F..... > %t/T2/a
19
20RUN: rm -rf %t/T0
21RUN: mkdir -p %t/T0
22
23# T1 has 3 elements, T2 has 4 elements, T0 is empty.
24RUN: %run %t-FullCoverageSetTest -merge=1 -merge_control_file=%t/MCF %t/T0 %t/T1 %t/T2 2>&1 | FileCheck %s --check-prefix=CHECK2
25CHECK2: MERGE-OUTER: non-empty control file provided
26CHECK2: MERGE-OUTER: control file ok, 3 files total, first not processed file 3
27CHECK2: MERGE-OUTER: starting merge from scratch, but reusing coverage information from the given control file
28CHECK2: MERGE-OUTER: 7 files, 0 in the initial corpus, 3 processed earlier
29CHECK2: MERGE-INNER: using the control file
30CHECK2: MERGE-INNER: 4 total files; 0 processed earlier; will process 4 files now
31CHECK2: MERGE-OUTER: 6 new files with {{.*}} new features added; 14 new coverage edges
32