Skip to content

Commit

Permalink
Better script
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Oct 12, 2022
1 parent 619fd2f commit ef97f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/prepare-coverage-reports.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/zsh -l
set -ex
set -e

mkdir -p .build/artifacts

Expand All @@ -13,11 +13,13 @@ for directory in $root/.build/derivedData/*/; do
echo "Found executable $cache_advance_tests_executable"
cache_advance_tests_profile=$(find "${directory}" -type f -name 'Coverage.profdata')
echo "Found profile $cache_advance_tests_profile"
exho "Exporting CacheAdvance_$build_type.lcov"
xcrun llvm-cov export -format="lcov" $cache_advance_tests_executable -instr-profile $cache_advance_tests_profile > .build/artifacts/CacheAdvance_$build_type.lcov

cad_cache_advance_tests_executable=$(find "${directory}" -type f -name 'CADCacheAdvanceTests')
echo "Found executable $cad_cache_advance_tests_executable"
cad_cache_advance_tests_profile=$(find "${directory}" -type f -name 'Coverage.profdata')
echo "Found profile $cad_cache_advance_tests_executable"
exho "Exporting CADCacheAdvance_$build_type.lcov"
xcrun llvm-cov export -format="lcov" $cache_advance_tests_executable -instr-profile $cache_advance_tests_profile > .build/artifacts/CADCacheAdvance_$build_type.lcov
done

0 comments on commit ef97f7b

Please sign in to comment.