Skip to content

Commit 33ed366

Browse files
author
Andres Wearden
committed
changed some of the llvm-lit file names to make more sense
1 parent e8a2c1a commit 33ed366

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// RUN: clang -O0 -fprofile-instr-generate -fcoverage-mapping \
2-
// RUN: %S/Inputs/myprogram.c %S/Inputs/fb.c -o %t.hex
3-
// RUN: env LLVM_PROFILE_FILE=%t.hex.profraw
2+
// RUN: %S/Inputs/merge-same-func-bin1.c %S/Inputs/merge-same-func-bin1-2.c -o %t.hex
43
// RUN: %t.hex
4+
// RUN: cp default.profraw %t.hex.profraw
55
//
66
//---------------- build & run the “x86” variant ------------------------------//
77
// RUN: clang -O0 -fprofile-instr-generate -fcoverage-mapping \
8-
// RUN: %S/Inputs/mypg.c %S/Inputs/fb.c -o %t.x86
9-
// RUN: env LLVM_PROFILE_FILE=%t.x86.profraw
8+
// RUN: %S/Inputs/merge-same-func-bin2.c %S/Inputs/merge-same-func-bin1-2.c -o %t.x86
109
// RUN: %t.x86 || true
11-
//
10+
// RUN: cp default.profraw %t.x86.profraw
1211
//---------------- merge the raw profiles ------------------------------------//
1312
// RUN: llvm-profdata merge --object-aware-hashing=%t.x86 %t.x86.profraw \
1413
// RUN: --object-aware-hashing=%t.hex %t.hex.profraw \
@@ -17,18 +16,14 @@
1716
//---------------- show unified coverage & check -----------------------------//
1817
// RUN: llvm-cov show -instr-profile=%t.profdata --object=%t.x86 --object=%t.hex --merge-binary-coverage | FileCheck %s
1918
//
20-
// CHECK-LABEL: {{.*fb\.c}}:
19+
// CHECK-LABEL: {{.*merge-same-func-bin1-2\.c}}:
2120
// CHECK: 1| 1|int foo() { return 0; }
2221
// CHECK: 2| |
2322
// CHECK: 3| 1|int bar() { return 0; }
2423
// CHECK: 4| |
2524
// CHECK: 5| 1|int bun() { return 0; }
2625
//
27-
// CHECK-LABEL: {{.*mypg\.c}}:
28-
// CHECK: 1| 0|int baz() { return 0; }
29-
// CHECK: 2| 1|int main() { return 1; }
30-
//
31-
// CHECK-LABEL: {{.*myprogram\.c}}:
26+
// CHECK-LABEL: {{.*merge-same-func-bin1\.c}}:
3227
// CHECK: 1| |extern int foo();
3328
// CHECK: 2| |extern int bar();
3429
// CHECK: 3| |extern int bun();
@@ -37,3 +32,7 @@
3732
// CHECK: 6| 1|int main()
3833
// CHECK: 7| 1| return foo() + bar() + bun();
3934
// CHECK: 8| 1|}
35+
//
36+
// CHECK-LABEL: {{.*merge-same-func-bin2\.c}}:
37+
// CHECK: 1| 0|int baz() { return 0; }
38+
// CHECK: 2| 1|int main() { return 1; }

llvm/test/tools/llvm-cov/merge-show-arch-exec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//
1717
// RUN: llvm-cov show -instr-profile=%t.profdata --object=%t.toggle --object=%t.notoggle --merge-binary-coverage --show-arch-executables | FileCheck %s
1818

19+
// CHECK: | 1| 2|int main() {
1920
// CHECK: | 2| 2|int a = 1;
2021
// CHECK: | 3| 2|int b = 2;
2122
// CHECK: | 4| 2|int res = 0;

0 commit comments

Comments
 (0)