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
95 lines
3.7 KiB
Plaintext
95 lines
3.7 KiB
Plaintext
# Test "report" command with and without multiple threads.
|
|
|
|
RUN: llvm-cov report -num-threads=1 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.1.report
|
|
|
|
RUN: llvm-cov report -num-threads=10 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.2.report
|
|
|
|
RUN: diff %t.1.report %t.2.report
|
|
|
|
# Test "export" command with and without multiple threads.
|
|
RUN: llvm-cov export -num-threads=1 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.1.json
|
|
|
|
RUN: llvm-cov export -num-threads=10 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.2.json
|
|
|
|
RUN: diff %t.1.json %t.2.json
|
|
|
|
# Test "show" command with and without multiple threads, single text file.
|
|
RUN: llvm-cov show -format=text -num-threads=1 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.1.text
|
|
|
|
RUN: llvm-cov show -format=text -num-threads=10 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.2.text
|
|
|
|
RUN: diff %t.1.text %t.2.text
|
|
|
|
# Test "show" command with and without multiple threads, single HTML file.
|
|
RUN: llvm-cov show -format=html -num-threads=1 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.1.html
|
|
|
|
RUN: llvm-cov show -format=html -num-threads=10 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping > %t.2.html
|
|
|
|
RUN: diff %t.1.html %t.2.html
|
|
|
|
# Test "show" command with and without multiple threads, text directory.
|
|
RUN: llvm-cov show -format=text -num-threads=1 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping -o %t.1.text_dir
|
|
|
|
RUN: llvm-cov show -format=text -num-threads=10 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping -o %t.2.text_dir
|
|
|
|
RUN: diff -r %t.1.text_dir %t.2.text_dir
|
|
|
|
# Test "show" command with and without multiple threads, HTML directory.
|
|
RUN: llvm-cov show -format=html -num-threads=1 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping -o %t.1.html_dir
|
|
|
|
RUN: llvm-cov show -format=html -num-threads=10 \
|
|
RUN: -path-equivalence=/tmp,%S/Inputs \
|
|
RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
|
|
RUN: %S/Inputs/multithreaded_report/main.covmapping -o %t.2.html_dir
|
|
|
|
RUN: diff -r %t.1.html_dir %t.2.html_dir
|
|
|
|
|
|
Instructions for regenerating the test:
|
|
|
|
# cd %S/Inputs/multithreaded_report
|
|
|
|
cp -r . /tmp/multithreaded_report
|
|
|
|
clang++ -std=c++11 -mllvm -enable-name-compression=false \
|
|
-fprofile-instr-generate -fcoverage-mapping \
|
|
/tmp/multithreaded_report/*.cc -o main
|
|
|
|
LLVM_PROFILE_FILE="main.profraw" ./main
|
|
llvm-profdata merge main.profraw -o main.profdata
|
|
llvm-cov convert-for-testing ./main -o ./main.covmapping
|
|
rm main main.profraw
|