light/tools/ci/amd64/clang/coverage.sh
2025-07-20 14:54:12 +03:30

23 lines
559 B
Bash
Executable file

#!/bin/bash
set -e
cd $(git rev-parse --show-toplevel)/
rm -rf ./build
conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \
-c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
-s build_type=Release \
-s compiler=clang \
-s compiler.version=20 \
-s compiler.libcxx=libc++ \
-o use_mold=True \
-o enable_lcov=True \
--build=missing
for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test"
"$test"
done