smarter and error test

This commit is contained in:
Yaossg 2024-12-24 11:31:50 +08:00
parent bf7f456967
commit 49ed7c5df5
37 changed files with 83 additions and 36 deletions

View file

@ -1,10 +1,9 @@
mkdir -p cov && cd cov &&
rm *
gcc --coverage -g -O0 ../boot.c -o boot.elf
for i in ../test/*.c; do
i=$(basename $i .c)
echo "Running coverage for test '$i'"
./boot.elf < ../test/$i.c > /dev/null
for i in ../test/**/*.c; do
echo "Running coverage for test '$(basename $i .c)'"
./boot.elf < $i > /dev/null
gcov boot.elf-boot.c
done