unit tests code coverage #653

This commit is contained in:
rusefi 2019-08-25 21:10:39 -04:00
parent 1fbd3dec45
commit e17b6967c6
1 changed files with 20 additions and 0 deletions

20
unit_tests/run_gcov.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
rm -rf gcov_working_area
mkdir gcov_working_area
cd gcov_working_area
ls -l
find .. -name *.c* > source_files.txt
find ../../firmware/console/ -name *.c* >> source_files.txt
find ../../firmware/controllers/ -name *.c* >> source_files.txt
xargs -L 1 -I {} cp {} . < source_files.txt
cp ../build/obj/* .
gcov *.c* > gcov.log 2>gcov.err