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

Andrea Canciani ranma42 at gmail.com
Fri Jan 14 05:42:40 PST 2011


On Fri, Jan 14, 2011 at 2:06 PM, Andrea Canciani <ranma42 at gmail.com> wrote:
> 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 ; \

Chris pointed out that in fact this expression is not including the ref images.
The attached patch should fix this.

> +       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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-results.tar.gz-target-to-the-test-Makefile.patch
Type: application/octet-stream
Size: 1206 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110114/bacaf51c/attachment.obj>


More information about the cairo mailing list