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/namespaces | |
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/namespaces')
-rw-r--r-- | tests/namespaces/Makefile.am | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/tests/namespaces/Makefile.am b/tests/namespaces/Makefile.am index 3cc72561..ee748dc5 100644 --- a/tests/namespaces/Makefile.am +++ b/tests/namespaces/Makefile.am @@ -17,22 +17,37 @@ valgrind: $(MAKE) CHECKER='valgrind -q' tests test tests: $(top_builddir)/xsltproc/xsltproc + @echo '## Running namespaces tests' @(echo > .memdump) - @(for i in $(srcdir)/*.xml ; do \ - doc="`basename $$i .xml`" ; \ - j=$(srcdir)/"$$doc".xsl; \ + -@(for i in $(srcdir)/../docs/*.xml ; do \ + if [ -d $$i ] ; then continue ; fi ; \ + doc=`basename $$i .xml` ; \ + for j in $(srcdir)/$$doc*.xsl ; do \ if [ ! -f $$j ] ; then continue ; fi ; \ if [ -d $$j ] ; then continue ; fi ; \ - name="`basename $$j .xsl`"; \ + name=`basename $$j .xsl`; \ out=$(srcdir)/"$$name".out; \ err=$(srcdir)/"$$name".err; \ - echo $$j ; \ - $(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i > result.$$name 2>err.$$name;\ - if [ ! -f $$out ] ; then cp result.$$name $$out ; \ - else diff $$out result.$$name ; fi ; \ - if [ ! -f $$err ] ; then cp err.$$name $$err ; \ - else diff $$err err.$$name ; fi ; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ - rm -f result.$$name ; \ - done) + log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i \ + > result.$$name 2>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) |