use elf as ext

This commit is contained in:
Yaossg 2024-12-23 22:42:31 +08:00
parent 4e591092db
commit b4dbce76cf
9 changed files with 31 additions and 61 deletions

View file

@ -1,11 +1,11 @@
mkdir -p cov && cd cov &&
rm *
gcc --coverage -g -O0 ../boot.c
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'"
./a.out < ../test/$i.c > /dev/null
gcov a-boot.c
./boot.elf < ../test/$i.c > /dev/null
gcov boot.elf-boot.c
done
python3 -m gcovr --html-details --html-theme github.green -o report.html -r ..