summaryrefslogtreecommitdiff
path: root/tools/Makefile.am.test
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile.am.test')
-rw-r--r--tools/Makefile.am.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/Makefile.am.test b/tools/Makefile.am.test
new file mode 100644
index 0000000..cad2627
--- /dev/null
+++ b/tools/Makefile.am.test
@@ -0,0 +1,21 @@
+Makefile.am.test: ${TEST_SOURCE_DEPS}
+ ${TEST_SCRIPT_DIR}/testlist > Makefile.am.test
+ @touch Makefile.am
+
+test: Makefile.am.test $(TESTFILES)
+ @echo "All tests done."
+
+test_clean:
+ rm -Rf lgov
+ rm -f $(TESTFILES) $(TESTLOGS)
+
+test_report:
+ lcov --directory . --capture --output-file app.info
+ genhtml -o lcov app.info
+
+test_all: test_clean test test_report
+
+TESTLOGS = `for F in ${TESTFILES}; do echo $$F.log; done`
+
+CLEANFILES = $(TESTFILES) $(TESTLOGS) Makefile.am.test *~
+