summaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-01-14 12:51:54 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-01-18 16:00:08 +0100
commit45505fc5fb14d774c8e13bdca6ca6f75d4b2f9df (patch)
treed576d6f0c4356880b79fee26e6f1b115550e1d40 /test/Makefile.am
parent8c031c029d45d65dac22be9a809cc43f4449d41e (diff)
Add a results.tar.gz target to the test Makefile
Sometimes it is useful to be able to package the result of a run of the testsuite. This new target creates an archive containing the html page and at least all the files it links to. The archive might contain some unneeded images.
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 3704704af..e96d528bc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1813,6 +1813,17 @@ check-ref-missing:
release-verify-sane-tests: check-ref-missing
+results.tar:
+ @tar cf $@ index.html testtable.js *.log; \
+ for i in output/*.fail.png ; do \
+ testname=$${i#output/} ; \
+ testname=$${testname%%.*} ; \
+ tar uf $@ $${testname}*.ref.png $${i%fail.png}out.png $${i%fail.png}diff.png ; \
+ done
+
+results.tar.gz: results.tar
+ gzip -c $< > $@
+
.PHONY: check-valgrind test recheck retest check-ref-dups check-ref-missing release-verify-sane-tests
EXTRA_DIST += Makefile.win32