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.
This commit is contained in:
Andrea Canciani 2011-01-14 12:51:54 +01:00
parent 8c031c029d
commit 45505fc5fb

View file

@ -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