2016-09-08 08:56:43 +08:00
|
|
|
// RUN: llvm-profdata merge %S/Inputs/multiple-files.proftext -o %t.profdata
|
2017-02-24 06:20:32 +08:00
|
|
|
// 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
|
2019-06-28 23:38:25 +08:00
|
|
|
// RUN: llvm-cov export %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata -format=lcov | FileCheck %s -check-prefix=LCOV
|
2016-09-08 08:56:43 +08:00
|
|
|
|
2017-02-24 06:20:32 +08:00
|
|
|
// MANY_COMPONENTS: Filename
|
|
|
|
// MANY_COMPONENTS-NEXT: ---
|
|
|
|
// MANY_COMPONENTS-NEXT: {{^}}a{{[/\\]}}f2.c
|
|
|
|
// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}c{{[/\\]}}f4.c
|
|
|
|
// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}f3.c
|
|
|
|
// MANY_COMPONENTS-NEXT: {{^}}f1.c
|
|
|
|
|
|
|
|
// ONE_COMPONENT: Filename
|
|
|
|
// ONE_COMPONENT-NEXT: ---
|
|
|
|
// ONE_COMPONENT-NEXT: {{^}}cov.c
|
|
|
|
// ONE_COMPONENT-NEXT: {{^}}cov.h
|
2019-06-28 23:38:25 +08:00
|
|
|
|
|
|
|
// 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
|