summaryrefslogtreecommitdiff
path: root/server/tools/Makefile.am.test
diff options
context:
space:
mode:
authorsenator <elsenator@gmail.com>2011-11-23 15:07:01 +0100
committersenator <elsenator@gmail.com>2011-11-23 15:07:01 +0100
commit9989ea2f6bfa19bd349bbbdec8ec3f56c1427245 (patch)
tree91cab6be068ee7f99accb6e97dda5a7bda5879e0 /server/tools/Makefile.am.test
parentc09fb0787c3af4d282ae3fac53c706665a91b0a7 (diff)
parent07244d0376e2e25eaeba913e684bd06122ded893 (diff)
Merge branch 'master' of http://git.aasimon.org/public/pracro
Diffstat (limited to 'server/tools/Makefile.am.test')
-rw-r--r--server/tools/Makefile.am.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/server/tools/Makefile.am.test b/server/tools/Makefile.am.test
new file mode 100644
index 0000000..cad2627
--- /dev/null
+++ b/server/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 *~
+