Commit ca1e4b2a authored by Mikaël Salson's avatar Mikaël Salson

Makefile: Testing gcovr existence

gcovr must not be in the current directory (don't use test -x) but
installed on the system (use ''which'' to test that)
parent 9913ecbe
......@@ -42,10 +42,10 @@ coverage: unit_coverage should_coverage
unit_coverage: clean
make COVERAGE=1 unit
test -x gcovr && gcovr -r algo -e tests/ --xml > unit_coverage.xml || echo "gcovr is needed to generate a full report"
which gcovr > /dev/null && gcovr -r algo -e tests/ --xml > unit_coverage.xml || echo "gcovr is needed to generate a full report"
should_coverage: clean
make COVERAGE=1 should
test -x gcovr && gcovr -r algo -e tests/ --xml > should_coverage.xml || echo "gcovr is needed to generate a full report"
which gcovr > /dev/null && gcovr -r algo -e tests/ --xml > should_coverage.xml || echo "gcovr is needed to generate a full report"
data germline: %:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment