aboutsummaryrefslogtreecommitdiffstats
path: root/coverage/Makefile
diff options
context:
space:
mode:
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