100% coverage

This commit is contained in:
Yaossg 2024-12-24 15:00:51 +08:00
parent 49ed7c5df5
commit 92f4b4f561
52 changed files with 143 additions and 48 deletions

View file

@ -2,8 +2,8 @@ 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 '$(basename $i .c)'"
./boot.elf < $i > /dev/null
echo "Running coverage for test '$i'"
./boot.elf < $i > /dev/null 2>/dev/null
gcov boot.elf-boot.c
done