This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib-old/scripts/coverage.sh
Mikhail Romanko 692b5b4297 Sync to the latest version.
Can be broken or partially implemented.
2024-04-23 23:45:43 +03:00

15 lines
445 B
Bash
Executable File

#!/bin/sh
#ulimit -Sv 320000
rm -r build coverage
mkdir build coverage
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG="-g -fprofile-arcs -ftest-coverage"
cmake --build build
cd build
#ctest -T Test -T Coverage
ctest
cd ..
#echo Report > coverage.txt
#find . -iname "*.gcda" -exec gcov {} \;
#find . -iname "*.gcno" -exec echo {} >> coverage.txt \; -exec gcov -t {} >> coverage.txt \;
gcovr --html-details coverage/index.html