|
1 | 1 | // Basic handling of line counts.
|
2 |
| -// RUN: rm -rf %t*.dir |
| 2 | +// RUN: rm -rf %t.dir |
3 | 3 | // RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata
|
4 | 4 |
|
5 | 5 | // RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck -check-prefixes=TEXT,WHOLE-FILE %S/Inputs/showLineExecutionCounts.cpp
|
6 | 6 | // RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs -name=main | FileCheck -check-prefixes=TEXT,FILTER %S/Inputs/showLineExecutionCounts.cpp
|
7 | 7 |
|
8 | 8 | // Test -output-dir.
|
9 |
| -// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -o %t.dir -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs |
10 |
| -// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -output-dir %t.filtered.dir -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs -name=main |
11 |
| -// RUN: FileCheck -check-prefixes=TEXT,WHOLE-FILE -input-file %t.dir/coverage/tmp/showLineExecutionCounts.cpp.txt %S/Inputs/showLineExecutionCounts.cpp |
12 |
| -// RUN: FileCheck -check-prefixes=TEXT,FILTER -input-file %t.filtered.dir/coverage/tmp/showLineExecutionCounts.cpp.txt %S/Inputs/showLineExecutionCounts.cpp |
| 9 | +// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -o %t.dir/show -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs |
| 10 | +// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -output-dir %t.dir/show.filtered -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs -name=main |
| 11 | +// RUN: FileCheck -check-prefixes=TEXT,WHOLE-FILE -input-file %t.dir/show/coverage/tmp/showLineExecutionCounts.cpp.txt %S/Inputs/showLineExecutionCounts.cpp |
| 12 | +// RUN: FileCheck -check-prefixes=TEXT,FILTER -input-file %t.dir/show.filtered/coverage/tmp/showLineExecutionCounts.cpp.txt %S/Inputs/showLineExecutionCounts.cpp |
13 | 13 | //
|
14 | 14 | // RUN: llvm-cov export %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata 2>/dev/null -summary-only > %t.export-summary.json
|
15 | 15 | // RUN: not grep '"name":"main"' %t.export-summary.json
|
16 | 16 | //
|
17 | 17 | // Test html output.
|
18 |
| -// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -format html -o %t.html.dir -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs |
19 |
| -// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -format html -o %t.html.filtered.dir -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs -name=main |
20 |
| -// RUN: FileCheck -check-prefixes=HTML,HTML-WHOLE-FILE -input-file %t.html.dir/coverage/tmp/showLineExecutionCounts.cpp.html %S/Inputs/showLineExecutionCounts.cpp |
21 |
| -// RUN: FileCheck -check-prefixes=HTML,HTML-FILTER -input-file %t.html.filtered.dir/coverage/tmp/showLineExecutionCounts.cpp.html %S/Inputs/showLineExecutionCounts.cpp |
| 18 | +// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -format html -o %t.dir/html -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs |
| 19 | +// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -format html -o %t.dir/html.filtered -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs -name=main |
| 20 | +// RUN: FileCheck -check-prefixes=HTML,HTML-WHOLE-FILE -input-file %t.dir/html/coverage/tmp/showLineExecutionCounts.cpp.html %S/Inputs/showLineExecutionCounts.cpp |
| 21 | +// RUN: FileCheck -check-prefixes=HTML,HTML-FILTER -input-file %t.dir/html.filtered/coverage/tmp/showLineExecutionCounts.cpp.html %S/Inputs/showLineExecutionCounts.cpp |
22 | 22 | //
|
23 | 23 | // Test index creation.
|
24 |
| -// RUN: FileCheck -check-prefix=TEXT-INDEX -input-file %t.dir/index.txt %s |
| 24 | +// RUN: FileCheck -check-prefix=TEXT-INDEX -input-file %t.dir/show/index.txt %s |
25 | 25 | // TEXT-INDEX: Filename
|
26 | 26 | // TEXT-INDEX-NEXT: ---
|
27 | 27 | // TEXT-INDEX-NEXT: {{.*}}showLineExecutionCounts.cpp
|
28 | 28 | //
|
29 |
| -// RUN: FileCheck -check-prefix HTML-INDEX -input-file %t.html.dir/index.html %s |
| 29 | +// RUN: FileCheck -check-prefix HTML-INDEX -input-file %t.dir/html/index.html %s |
30 | 30 | // HTML-INDEX-LABEL: <table>
|
31 | 31 | // HTML-INDEX: <td class='column-entry-bold'>Filename</td>
|
32 | 32 | // HTML-INDEX: <td class='column-entry-bold'>Function Coverage</td>
|
|
0 commit comments