RVBTCC/cov-test.sh

10 lines
299 B
Bash
Raw Permalink Normal View History

2024-12-08 03:40:47 +00:00
mkdir -p cov && cd cov &&
rm *
2024-12-23 14:42:31 +00:00
gcc --coverage -g -O0 ../boot.c -o boot.elf
2024-12-24 03:31:50 +00:00
for i in ../test/**/*.c; do
2024-12-24 07:00:51 +00:00
echo "Running coverage for test '$i'"
./boot.elf < $i > /dev/null 2>/dev/null
2024-12-23 14:42:31 +00:00
gcov boot.elf-boot.c
2024-12-08 03:40:47 +00:00
done
python3 -m gcovr --html-details --html-theme github.green -o report.html -r ..