Index: test/tools/llvm-cov/report.cpp =================================================================== --- test/tools/llvm-cov/report.cpp +++ test/tools/llvm-cov/report.cpp @@ -1,4 +1,5 @@ -// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence 2>&1 | FileCheck %s +// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence > %t.report.txt +// RUN: FileCheck %s -input-file=%t.report.txt // RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence report.cpp 2>&1 | FileCheck -check-prefix=FILT-NEXT %s // CHECK: Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover @@ -40,3 +41,6 @@ // FUNCTIONS: _Z3foob // FUNCTIONS: _Z3barv // FUNCTIONS: _Z4func + +// Test whether the coverage regression checking script can parse `report` output. +// RUN: %python $LLVM_SRC_ROOT/utils/check-coverage-regressions.py %t.report.txt %t.report.txt | count 0