diff options
Diffstat (limited to 'llvm/test/tools/llvm-cov/multiple-files.test')
-rw-r--r-- | llvm/test/tools/llvm-cov/multiple-files.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/multiple-files.test b/llvm/test/tools/llvm-cov/multiple-files.test index d0dbdd8c0fc..37df8d2b8ed 100644 --- a/llvm/test/tools/llvm-cov/multiple-files.test +++ b/llvm/test/tools/llvm-cov/multiple-files.test @@ -1,6 +1,7 @@ // RUN: llvm-profdata merge %S/Inputs/multiple-files.proftext -o %t.profdata // RUN: llvm-cov report %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=MANY_COMPONENTS // RUN: llvm-cov report %S/Inputs/multiple-files2.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=ONE_COMPONENT +// RUN: llvm-cov export %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata -format=lcov | FileCheck %s -check-prefix=LCOV // MANY_COMPONENTS: Filename // MANY_COMPONENTS-NEXT: --- @@ -13,3 +14,14 @@ // ONE_COMPONENT-NEXT: --- // ONE_COMPONENT-NEXT: {{^}}cov.c // ONE_COMPONENT-NEXT: {{^}}cov.h + +// LCOV-LABEL: SF:{{.*}}a{{[/\\]}}f2.c +// LCOV: FN:1,f2 +// No extra funcs +// LCOV-NOT: FN: +// LCOV-LABEL: SF:{{.*}}b{{[/\\]}}c{{[/\\]}}f4.c +// LCOV: FN:1,f4 +// LCOV-LABEL: SF:{{.*}}b{{[/\\]}}f3.c +// LCOV: FN:1,f3 +// LCOV-LABEL: SF:{{.*}}f1.c +// LCOV: FN:1,f1 |