This commit is contained in:
parent
c064a7017a
commit
3b63449bdc
1 changed files with 2 additions and 2 deletions
|
@ -24,12 +24,12 @@ done
|
||||||
mkdir -p ./build/coverage/
|
mkdir -p ./build/coverage/
|
||||||
for test in $(find ./build -type f -name '*_tests' -executable); do
|
for test in $(find ./build -type f -name '*_tests' -executable); do
|
||||||
export LLVM_PROFILE_FILE="./build/coverage/$(basename "$(dirname "{}")").profraw";
|
export LLVM_PROFILE_FILE="./build/coverage/$(basename "$(dirname "{}")").profraw";
|
||||||
echo $${LLVM_PROFILE_FILE} >> ./build/coverage/list;
|
echo ${LLVM_PROFILE_FILE} >> ./build/coverage/list;
|
||||||
"$test"
|
"$test"
|
||||||
done
|
done
|
||||||
|
|
||||||
llvm-profdata merge --input-files './build/coverage/list' -o "./build/coverage/merged.profdata"
|
llvm-profdata merge --input-files './build/coverage/list' -o "./build/coverage/merged.profdata"
|
||||||
find ./modules -type f -name "*.profraw" -exec rm -fv {} +
|
find ./modules -type f -name "*.profraw" -exec rm -fv {} +
|
||||||
LLVM_COV_SHOW=$(llvm-cov show -instr-profile="./build/coverage/merged.profdata" $(find ./build -type f -name "tests" -executable -exec printf -- '-object %s ' {} \;) -ignore-filename-regex="./modules/[^/]+/tests")
|
LLVM_COV_SHOW=$(llvm-cov show -instr-profile="./build/coverage/merged.profdata" $(find ./build -type f -name "tests" -executable -exec printf -- '-object %s ' {} \;) -ignore-filename-regex="./modules/[^/]+/tests")
|
||||||
echo "$${LLVM_COV_SHOW}" > "./build/coverage/coverage.txt"
|
echo "${LLVM_COV_SHOW}" > "./build/coverage/coverage.txt"
|
||||||
wget -qO- "https://codecov.io/bash" | bash
|
wget -qO- "https://codecov.io/bash" | bash
|
||||||
|
|
Loading…
Add table
Reference in a new issue