CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
RUN: rm -rf %t && mkdir %t && cd %t
|
|
RUN: cp %S/Inputs/test.gcno %S/Inputs/test.gcda .
|
|
|
|
RUN: llvm-cov gcov -i test.cpp 2> %t.err | FileCheck %s --check-prefixes=OUT
|
|
RUN: FileCheck %s --check-prefix=I < test.cpp.gcov
|
|
RUN: cp test.cpp.gcov saved.cpp.gcov
|
|
|
|
# -i does not read source files. No ENOENT diagnostic.
|
|
RUN: count 0 < %t.err
|
|
|
|
# -n suppresses the .gcov output.
|
|
RUN: llvm-cov gcov -i -n test. | FileCheck %s --check-prefixes=OUT
|
|
RUN: not ls test..gcov
|
|
|
|
# The output filename is formed by appending ".gcov" to the specifiled filename.
|
|
RUN: llvm-cov gcov -i test. | FileCheck %s --check-prefix=OUT
|
|
RUN: cmp test..gcov saved.cpp.gcov
|
|
|
|
RUN: llvm-cov gcov -i -b test.cpp | FileCheck %s --check-prefixes=OUT,OUT-B
|
|
RUN: FileCheck %s --check-prefixes=I,I-B --match-full-lines --strict-whitespace < test.cpp.gcov
|
|
|
|
# Many other options are ignored.
|
|
RUN: rm -f test.cpp.gcov && llvm-cov gcov -i -a -c -l -p -u -x test.cpp
|
|
RUN: cmp test.cpp.gcov saved.cpp.gcov
|
|
|
|
OUT:File 'test.cpp'
|
|
OUT-NEXT:Lines executed:81.40% of 43
|
|
OUT-B-NEXT:Branches executed:100.00% of 15
|
|
OUT-B-NEXT:Taken at least once:86.67% of 15
|
|
OUT-B-NEXT:No calls
|
|
OUT-EMPTY:
|
|
OUT-NEXT:File 'test.h'
|
|
OUT-NEXT:Lines executed:100.00% of 1
|
|
OUT-B-NEXT:No branches
|
|
OUT-B-NEXT:No calls
|
|
OUT-EMPTY:
|
|
|
|
I:file:test.cpp
|
|
I:function:10,4294967296,_ZN1A1BEv
|
|
I-NEXT:function:12,0,_Z7uselessv
|
|
I-NEXT:function:14,0,_Z12more_uselessv
|
|
I-NEXT:function:18,1,_Z3foov
|
|
I-NEXT:function:23,0,_Z3barv
|
|
I-NEXT:function:28,4,_Z6assignii
|
|
I-NEXT:function:32,1,_Z15initialize_gridv
|
|
I-NEXT:function:38,1,main
|
|
I:lcount:10,4294967296
|
|
I:lcount:33,3
|
|
I-B-NEXT:branch:33,taken
|
|
I-B-NEXT:branch:33,taken
|
|
I:file:test.h
|
|
I-NEXT:function:2,1,_ZN1AC2Ev
|
|
I-NEXT:lcount:2,1
|