Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / sancov / merge.test
blob4c95d7c0bb53df898501996ad592a87be8e8fece
1 REQUIRES: x86_64-linux
2 RUN: sancov -merge %p/Inputs/test-linux_x86_64.0.symcov| FileCheck --check-prefix=MERGE1 %s
3 RUN: sancov -merge %p/Inputs/test-linux_x86_64.0.symcov %p/Inputs/test-linux_x86_64.1.symcov| FileCheck --check-prefix=MERGE2 %s
5 MERGE1: {
6 MERGE1-NEXT:   "covered-points" : ["4e132b", "4e1472", "4e1520", "4e1553", "4e1586"],
7 MERGE1-NEXT:   "binary-hash" : "BB3CDD5045AED83906F6ADCC1C4DAF7E2596A6B5",
8 MERGE1-NEXT:   "point-symbol-info" : {
9 MERGE1-NEXT:     "test/tools/sancov/Inputs/foo.cpp" : {
10 MERGE1-NEXT:       "foo()" : {
11 MERGE1-NEXT:         "4e178c" : "5:0"
12 MERGE1-NEXT:       }
13 MERGE1-NEXT:     },
14 MERGE1-NEXT:     "test/tools/sancov/Inputs/test.cpp" : {
15 MERGE1-NEXT:       "bar(std::string)" : {
16 MERGE1-NEXT:         "4e132b" : "12:0"
17 MERGE1-NEXT:       },
18 MERGE1-NEXT:       "main" : {
19 MERGE1-NEXT:         "4e1472" : "14:0",
20 MERGE1-NEXT:         "4e14c2" : "16:9",
21 MERGE1-NEXT:         "4e1520" : "17:5",
22 MERGE1-NEXT:         "4e1553" : "17:5",
23 MERGE1-NEXT:         "4e1586" : "17:5",
24 MERGE1-NEXT:         "4e1635" : "19:1",
25 MERGE1-NEXT:         "4e1690" : "17:5"
26 MERGE1-NEXT:       }
27 MERGE1-NEXT:     }
28 MERGE1-NEXT:   }
29 MERGE1-NEXT: }
31 MERGE2: {
32 MERGE2-NEXT:   "covered-points" : ["04e132b", "04e1472", "04e1520", "04e1553", "04e1586", "14e132b", "14e1472", "14e14c2", "14e1520", "14e1553", "14e1586", "14e178c"],
33 MERGE2-NEXT:   "point-symbol-info" : {
34 MERGE2-NEXT:     "test/tools/sancov/Inputs/foo.cpp" : {
35 MERGE2-NEXT:      "foo()" : {
36 MERGE2-NEXT:         "04e178c" : "5:0",
37 MERGE2-NEXT:         "14e178c" : "5:0"
38 MERGE2-NEXT:       }
39 MERGE2-NEXT:     },
40 MERGE2-NEXT:     "test/tools/sancov/Inputs/test.cpp" : {
41 MERGE2-NEXT:       "bar(std::string)" : {
42 MERGE2-NEXT:         "04e132b" : "12:0",
43 MERGE2-NEXT:         "14e132b" : "12:0"
44 MERGE2-NEXT:       },
45 MERGE2-NEXT:       "main" : {
46 MERGE2-NEXT:         "04e1472" : "14:0",
47 MERGE2-NEXT:         "04e14c2" : "16:9",
48 MERGE2-NEXT:         "04e1520" : "17:5",
49 MERGE2-NEXT:         "04e1553" : "17:5",
50 MERGE2-NEXT:         "04e1586" : "17:5",
51 MERGE2-NEXT:         "04e1635" : "19:1",
52 MERGE2-NEXT:         "04e1690" : "17:5",
53 MERGE2-NEXT:         "14e1472" : "14:0",
54 MERGE2-NEXT:         "14e14c2" : "16:9",
55 MERGE2-NEXT:         "14e1520" : "17:5",
56 MERGE2-NEXT:         "14e1553" : "17:5",
57 MERGE2-NEXT:         "14e1586" : "17:5",
58 MERGE2-NEXT:         "14e1635" : "19:1",
59 MERGE2-NEXT:         "14e1690" : "17:5"
60 MERGE2-NEXT:       }
61 MERGE2-NEXT:     }
62 MERGE2-NEXT:   }
63 MERGE2-NEXT: }