aboutsummaryrefslogtreecommitdiffstats
path: root/coverage/Makefile
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-03 18:42:32 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-07-03 19:24:01 +0200
commitf645c76e0bfa772aff97141389d45476bf091053 (patch)
tree724af18ff4b5b92aa071e93675582b67c11d1908 /coverage/Makefile
parent57e09344b57d98515bf02165e0e33a1d43134af0 (diff)
coverage: Add the missing files
The files weren't included due to git and gitignore. Also add a README.md to reproduce the test. Change-Id: Ifcdffaca32c369b2ff5fb82e246fa0cad87813f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/Makefile')
-rw-r--r--coverage/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/coverage/Makefile b/coverage/Makefile
new file mode 100644
index 00000000..219321c7
--- /dev/null
+++ b/coverage/Makefile
@@ -0,0 +1,33 @@
+
+.PHONY: all
+
+all: report
+
+.PHONY: binaries
+
+binaries:
+ make -C bin -w binaries
+
+.PHONY: clean
+
+clean:
+ make -C bin -w clean
+ rm -rf lcov-out.info report
+
+.PHONY: test
+
+test: binaries
+ @echo -----------------------------------------
+ @echo -- BEGIN TEST
+ @echo -----------------------------------------
+ @scripts/run-test.sh
+ @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