File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ build:coverage --experimental_use_llvm_covmap
3737build:coverage --experimental_generate_llvm_lcov
3838build:coverage --collect_code_coverage
3939build:coverage --instrumentation_filter="//source[/:],//cpp2sky[/:]"
40- build:coverage --coverage_support=@cpp2sky //bazel/coverage:coverage_support
41- build:coverage --test_env=CC_CODE_COVERAGE_SCRIPT=external/cpp2sky/ bazel/coverage/collect_cc_coverage.sh
40+ build:coverage --coverage_support=//bazel/coverage:coverage_support
41+ build:coverage --test_env=CC_CODE_COVERAGE_SCRIPT=bazel/coverage/collect_cc_coverage.sh
4242build:coverage --strategy=TestRunner=local
4343build:coverage --strategy=CoverageReport=local
4444build:coverage --experimental_use_llvm_covmap
Original file line number Diff line number Diff line change 6666 run : |
6767 sudo apt update
6868 sudo apt -y install lcov
69- sudo ln -s /usr/bin/llvm-profdata-11 /usr/bin/llvm-profdata
70- sudo ln -s /usr/bin/llvm-cov-11 /usr/bin/llvm-cov
69+ sudo ln -s /usr/bin/llvm-profdata-16 /usr/bin/llvm-profdata
70+ sudo ln -s /usr/bin/llvm-cov-16 /usr/bin/llvm-cov
7171
7272 - name : Run coverage test
7373 run : |
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ licenses(["notice"]) # Apache 2
33filegroup (
44 name = "coverage_support" ,
55 srcs = ["collect_cc_coverage.sh" ],
6+ visibility = ["//visibility:public" ],
67)
Original file line number Diff line number Diff line change 44
55[[ -z " ${SRCDIR} " ]] && SRCDIR=" ${PWD} "
66
7- OUTPUT_DIR=" ./coverage_report/ "
7+ OUTPUT_DIR=" ./coverage_report"
88DATA_DIR=" ${SRCDIR} /bazel-testlogs/"
99PROJECT=$( basename " ${SRCDIR} " )
1010
You can’t perform that action at this time.
0 commit comments