aboutsummaryrefslogtreecommitdiffstats
path: root/coverage/Makefile
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-07-12 10:59:48 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-24 16:28:32 +0200
commite17ae412245ba9afb33ff6a0f1f665b4d66d4da4 (patch)
tree698628c58b541007033ede6b4343dae921214da6 /coverage/Makefile
parent4c0f6ce66c66d39dc61ec661d88277c51d2fd9ae (diff)
coverage and test: Add tests
coverage values: - lines: 70.5 % - functions: 76.3 % Change-Id: Iaf802e84bbfa57502bbbac8c3b567b14c01608b6 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/Makefile')
-rw-r--r--coverage/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/coverage/Makefile b/coverage/Makefile
index 3f5f3ce3..30477a70 100644
--- a/coverage/Makefile
+++ b/coverage/Makefile
@@ -14,7 +14,8 @@ clean:
make -C bin -w clean
cleanall: clean
- rm -rf lcov-out.info report valgrind.out
+ @echo remove all outputs and reports
+ @rm -rf lcov-out.info report valgrind.out 2>/dev/null || true
.PHONY: test
@@ -22,14 +23,12 @@ test: binaries
@echo -----------------------------------------
@echo -- BEGIN TEST
@echo -----------------------------------------
- @scripts/run-test.sh
+ @scripts/run-test.sh 2>&1 | tee run-test.output
@echo -----------------------------------------
@echo -- END TEST
@echo -----------------------------------------
report: test
- @echo generating LCOV report
- @lcov -c -d bin -o lcov-out.info
@echo generating report
@genhtml -s -o report lcov-out.info
@echo ready: xdg-open report/index.html