[cairo] [PATCH] Add a results.tar.gz target to the test Makefile

Andrea Canciani ranma42 at gmail.com
Fri Jan 14 05:06:29 PST 2011


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.
---
 test/Makefile.am |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index b33e4f9..6ddbfa6 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1811,6 +1811,15 @@ 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 \
+		tar uf $@ $${i%fail.png}out.png $${i%fail.png}diff.png $${i%%.*}*.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
-- 
1.7.1



More information about the cairo mailing list