test coverage

This commit is contained in:
Yaossg 2024-12-08 11:40:47 +08:00
parent 54db58d362
commit 3b95608233
23 changed files with 199 additions and 50 deletions

6
cov-boot.sh Normal file
View file

@ -0,0 +1,6 @@
mkdir -p cov && cd cov &&
rm *
gcc --coverage -g -O0 ../boot.c
./a.out < ../boot.c > /dev/null
gcov a-boot.c
python3 -m gcovr --html-details --html-theme github.green -o report.html -r ..