1## Process this file with automake to produce Makefile.in 2 3$(top_builddir)/xsltproc/xsltproc: 4 @(cd ../../../xsltproc ; $(MAKE) xsltproc) 5 6EXTRA_DIST = \ 7 node-set.1.xml node-set.1.xsl node-set.1.out \ 8 node-set.2.xml node-set.2.xsl node-set.2.out \ 9 node-set.3.xml node-set.3.xsl node-set.3.out \ 10 node-set.4.xml node-set.4.xsl node-set.4.out \ 11 node-set.5.xml node-set.5.xsl node-set.5.out \ 12 node-set.6.xml node-set.6.xsl node-set.6.out \ 13 node-set.7.xml node-set.7.xsl node-set.7.out \ 14 node-set.8.xml node-set.8.xsl node-set.8.out \ 15 object-type.1.xml object-type.1.xsl object-type.1.out \ 16 import-test1a.imp import-test1b.imp import-test1.out \ 17 import-test1.xml import-test1.xsl 18 19CLEANFILES = .memdump 20 21valgrind: 22 @echo '## Running the regression tests under Valgrind' 23 $(MAKE) CHECKER='valgrind -q' tests 24 25test tests: $(top_builddir)/xsltproc/xsltproc 26 @echo '## Running exslt common tests' 27 @(echo > .memdump) 28 @(for i in $(srcdir)/*.xsl ; do \ 29 name=`basename $$i .xsl` ; \ 30 if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \ 31 log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ 32 $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\ 33 if [ ! -f $(srcdir)/$$name.out ] ; then \ 34 cp $$name.res $(srcdir)/$$name.out ; \ 35 if [ -s $$name.bad ] ; then \ 36 mv $$name.bad $(srcdir)/$$name.err ; \ 37 fi ; \ 38 else \ 39 if [ ! -s $$name.res ] ; then \ 40 echo "Fatal error, no $$name.res\n" ; \ 41 else \ 42 diff $(srcdir)/$$name.out $$name.res ; \ 43 if [ -s $(srcdir)/$$name.err ] ; then \ 44 diff $(srcdir)/$$name.err $$name.bad; \ 45 else \ 46 diff /dev/null $$name.bad; \ 47 fi ; \ 48 fi ; \ 49 fi; \ 50 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\ 51 if [ -n "$$log" ] ; then \ 52 echo $$name result ; \ 53 echo "$$log" ; \ 54 fi ; \ 55 rm -f $$name.res $$name.bad; \ 56 done) 57