RVBTCC/cov-test.sh
2024-12-24 16:16:03 +08:00

10 lines
299 B
Bash

mkdir -p cov && cd cov &&
rm *
gcc --coverage -g -O0 ../boot.c -o boot.elf
for i in ../test/**/*.c; do
echo "Running coverage for test '$i'"
./boot.elf < $i > /dev/null 2>/dev/null
gcov boot.elf-boot.c
done
python3 -m gcovr --html-details --html-theme github.green -o report.html -r ..