• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-profdata merge %S/Inputs/multiple-files.proftext -o %t.profdata
2// RUN: llvm-cov report %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=MANY_COMPONENTS
3// RUN: llvm-cov report %S/Inputs/multiple-files2.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=ONE_COMPONENT
4// RUN: llvm-cov export %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata -format=lcov | FileCheck %s -check-prefix=LCOV
5
6// MANY_COMPONENTS: Filename
7// MANY_COMPONENTS-NEXT: ---
8// MANY_COMPONENTS-NEXT: {{^}}a{{[/\\]}}f2.c
9// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}c{{[/\\]}}f4.c
10// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}f3.c
11// MANY_COMPONENTS-NEXT: {{^}}f1.c
12
13// ONE_COMPONENT: Filename
14// ONE_COMPONENT-NEXT: ---
15// ONE_COMPONENT-NEXT: {{^}}cov.c
16// ONE_COMPONENT-NEXT: {{^}}cov.h
17
18// LCOV-LABEL: SF:{{.*}}a{{[/\\]}}f2.c
19// LCOV: FN:1,f2
20// No extra funcs
21// LCOV-NOT: FN:
22// LCOV-LABEL: SF:{{.*}}b{{[/\\]}}c{{[/\\]}}f4.c
23// LCOV: FN:1,f4
24// LCOV-LABEL: SF:{{.*}}b{{[/\\]}}f3.c
25// LCOV: FN:1,f3
26// LCOV-LABEL: SF:{{.*}}f1.c
27// LCOV: FN:1,f1
28