From 1cc50b1dea6fdc34603d1f486e29a3e834c33be3 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 26 Aug 2019 10:45:34 -0400 Subject: [PATCH] unit tests code coverage #653 --- unit_tests/run_gcov.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 unit_tests/run_gcov.bat diff --git a/unit_tests/run_gcov.bat b/unit_tests/run_gcov.bat new file mode 100644 index 0000000000..09570e7448 --- /dev/null +++ b/unit_tests/run_gcov.bat @@ -0,0 +1,20 @@ + +rm -rf gcov_working_area + +mkdir gcov_working_area +cd gcov_working_area +ls -l + + +find_cyg .. -name *.c* > source_files.txt +find_cyg ../../firmware/console/ -name *.c* >> source_files.txt +find_cyg ../../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 + +rem TODO find a windows solution, I was not able to find a working lcov for Windows :( \ No newline at end of file