test coverage
This commit is contained in:
parent
54db58d362
commit
3b95608233
23 changed files with 199 additions and 50 deletions
11
cov-test.sh
Normal file
11
cov-test.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
mkdir -p cov && cd cov &&
|
||||
rm *
|
||||
gcc --coverage -g -O0 ../boot.c
|
||||
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
|
||||
done
|
||||
|
||||
python3 -m gcovr --html-details --html-theme github.green -o report.html -r ..
|
Loading…
Add table
Add a link
Reference in a new issue