brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · a3f4695 Raw
54 lines · plain
1RUN: rm -rf %t && mkdir %t && cd %t2RUN: cp %S/Inputs/test.gcno %S/Inputs/test.gcda .3 4RUN: llvm-cov gcov -i test.cpp 2> %t.err | FileCheck %s --check-prefixes=OUT5RUN: FileCheck %s --check-prefix=I < test.cpp.gcov6RUN: cp test.cpp.gcov saved.cpp.gcov7 8# -i does not read source files. No ENOENT diagnostic.9RUN: count 0 < %t.err10 11# -n suppresses the .gcov output.12RUN: llvm-cov gcov -i -n test. | FileCheck %s --check-prefixes=OUT13RUN: not ls test..gcov14 15# The output filename is formed by appending ".gcov" to the specifiled filename.16RUN: llvm-cov gcov -i test. | FileCheck %s --check-prefix=OUT17RUN: cmp test..gcov saved.cpp.gcov18 19RUN: llvm-cov gcov -i -b test.cpp | FileCheck %s --check-prefixes=OUT,OUT-B20RUN: FileCheck %s --check-prefixes=I,I-B --match-full-lines --strict-whitespace < test.cpp.gcov21 22# Many other options are ignored.23RUN: rm -f test.cpp.gcov && llvm-cov gcov -i -a -c -l -p -u -x test.cpp24RUN: cmp test.cpp.gcov saved.cpp.gcov25 26         OUT:File 'test.cpp'27    OUT-NEXT:Lines executed:81.40% of 4328  OUT-B-NEXT:Branches executed:100.00% of 1529  OUT-B-NEXT:Taken at least once:86.67% of 1530  OUT-B-NEXT:No calls31   OUT-EMPTY:32    OUT-NEXT:File 'test.h'33    OUT-NEXT:Lines executed:100.00% of 134  OUT-B-NEXT:No branches35  OUT-B-NEXT:No calls36   OUT-EMPTY:37 38       I:file:test.cpp39       I:function:10,4294967296,_ZN1A1BEv40  I-NEXT:function:12,0,_Z7uselessv41  I-NEXT:function:14,0,_Z12more_uselessv42  I-NEXT:function:18,1,_Z3foov43  I-NEXT:function:23,0,_Z3barv44  I-NEXT:function:28,4,_Z6assignii45  I-NEXT:function:32,1,_Z15initialize_gridv46  I-NEXT:function:38,1,main47       I:lcount:10,429496729648       I:lcount:33,349I-B-NEXT:branch:33,taken50I-B-NEXT:branch:33,taken51       I:file:test.h52  I-NEXT:function:2,1,_ZN1AC2Ev53  I-NEXT:lcount:2,154