diff options
author | William M. Brack <wbrack@src.gnome.org> | 2004-03-06 15:11:50 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2004-03-06 15:11:50 +0000 |
commit | efe7443c2b073c7d9f43b559dbcab9f1a93cf8dc (patch) | |
tree | b6e927099b9eefd3e5dae187e0ee5378af24d6f7 /tests/reports | |
parent | f11fd0945cbbead3b0e1a2c16c295ce2bdcecc73 (diff) | |
download | libxslt-efe7443c2b073c7d9f43b559dbcab9f1a93cf8dc.tar.gz libxslt-efe7443c2b073c7d9f43b559dbcab9f1a93cf8dc.tar.bz2 libxslt-efe7443c2b073c7d9f43b559dbcab9f1a93cf8dc.zip |
continued interrupt commit for enhanced "make tests"
Diffstat (limited to 'tests/reports')
-rw-r--r-- | tests/reports/Makefile.am | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/tests/reports/Makefile.am b/tests/reports/Makefile.am index 0302cf6a..3c5e5415 100644 --- a/tests/reports/Makefile.am +++ b/tests/reports/Makefile.am @@ -20,26 +20,40 @@ valgrind: $(MAKE) CHECKER='valgrind -q' tests test tests: $(top_builddir)/xsltproc/xsltproc + @echo '## Running reports tests' @(echo > .memdump) - @(for i in $(srcdir)/*.xml ; do \ + -@(for i in $(srcdir)/../docs/*.xml ; do \ if [ -d $$i ] ; then continue ; fi ; \ doc=`basename $$i .xml` ; \ - for j in $(srcdir)/$$doc.xsl ; do \ + for j in $(srcdir)/$$doc*.xsl ; do \ if [ ! -f $$j ] ; then continue ; fi ; \ if [ -d $$j ] ; then continue ; fi ; \ name=`basename $$j .xsl`; \ out=$(srcdir)/"$$name".out; \ err=$(srcdir)/"$$name".err; \ - echo Running $$j on $$i ; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc \ + log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ --stringparam test passed_value \ --stringparam test2 passed_value2 \ $$j $$i > result.$$name \ 2> err.$$name ; \ - if [ ! -f $$out ] ; \ - then cp result.$$name $$out; cp err.$$name $$err ; \ - else diff $$out result.$$name; diff $$err err.$$name; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f result.$$name err.$$name ; \ + if [ ! -f $$out ] ; then \ + cp result.$$name $$out ; \ + if [ -s err.$$name ] ; then \ + cp err.$$name $$err ; \ + fi ; \ + else \ + diff $$out result.$$name; \ + if [ -s $$err ] ; then \ + diff $$err err.$$name; \ + else \ + diff /dev/null err.$$name; \ + fi ; \ + fi ; \ + grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\ + if [ -n "$$log" ] ; then \ + echo $$name result ; \ + echo $$log ; \ + fi ; \ + rm -f result.$$name err.$$name; \ done ; done) |