mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
InstrProf: Use the proftext format for these coverage tests
This format's easier to understand and update by hand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbbfb05179
commit
05b74bc4a6
Binary file not shown.
8
test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext
Normal file
8
test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext
Normal file
@ -0,0 +1,8 @@
|
||||
main
|
||||
0x000000000028434d
|
||||
5
|
||||
1
|
||||
0
|
||||
100
|
||||
1
|
||||
0
|
Binary file not shown.
8
test/tools/llvm-cov/Inputs/regionMarkers.proftext
Normal file
8
test/tools/llvm-cov/Inputs/regionMarkers.proftext
Normal file
@ -0,0 +1,8 @@
|
||||
main
|
||||
0x000000000028434d
|
||||
5
|
||||
1
|
||||
0
|
||||
100
|
||||
1
|
||||
0
|
@ -1,5 +1,5 @@
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s
|
||||
// Basic handling of line counts.
|
||||
// RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata
|
||||
|
||||
// before any coverage // WHOLE-FILE: | [[@LINE]]|// before
|
||||
// FILTER-NOT: | [[@LINE-1]]|// before
|
||||
@ -26,5 +26,8 @@ int main() { // CHECK: 1| [[@LINE]]|int main(
|
||||
// after coverage // WHOLE-FILE: | [[@LINE]]|// after
|
||||
// FILTER-NOT: | [[@LINE-1]]|// after
|
||||
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -no-colors -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -no-colors -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s
|
||||
|
||||
// llvm-cov doesn't work on big endian yet
|
||||
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: llvm-cov show %S/Inputs/regionMarkers.covmapping -instr-profile %S/Inputs/regionMarkers.profdata -show-regions -dump -filename-equivalence %s 2>&1 | FileCheck %s
|
||||
// RUN: llvm-profdata merge %S/Inputs/regionMarkers.proftext -o %t.profdata
|
||||
|
||||
int main() { // CHECK: Marker at [[@LINE]]:12 = 1
|
||||
int x = 0;
|
||||
@ -22,5 +22,7 @@ int main() { // CHECK: Marker at [[@LINE]]:12 = 1
|
||||
return 0;
|
||||
}
|
||||
|
||||
// RUN: llvm-cov show %S/Inputs/regionMarkers.covmapping -instr-profile %t.profdata -show-regions -dump -filename-equivalence %s 2>&1 | FileCheck %s
|
||||
|
||||
// llvm-cov doesn't work on big endian yet
|
||||
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
||||
|
Loading…
Reference in New Issue
Block a user