[cairo-commit] test/Makefile.am

Andrea Canciani ranma42 at kemper.freedesktop.org
Tue Jan 18 07:01:00 PST 2011


 test/Makefile.am |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 45505fc5fb14d774c8e13bdca6ca6f75d4b2f9df
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Fri Jan 14 12:51:54 2011 +0100

    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.

diff --git a/test/Makefile.am b/test/Makefile.am
index 3704704..e96d528 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


More information about the cairo-commit mailing list