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 bredfort.css bredfort.xsl doc_file.xml docfile.xml \ 8 fragment2.xml fragment.result fragment.xml fragment.xsl \ 9 index.xml menu.xml message.result message.xml message.xsl \ 10 result.xhtml system.xml test_bad.err test_bad.result \ 11 test_bad.xml test.result test.xml test.xsl worklog.xml 12 13CLEANFILES = .memdump 14 15valgrind: 16 @echo '## Running the regression tests under Valgrind' 17 $(MAKE) CHECKER='valgrind -q' tests 18 19test tests: $(top_builddir)/xsltproc/xsltproc 20 @(echo > .memdump) 21 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/bredfort.xsl $(srcdir)/index.xml > result ; \ 22 diff $(srcdir)/result.xhtml result; \ 23 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 24 rm -f result) 25 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test.xml > result ; \ 26 diff $(srcdir)/test.result result; \ 27 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 28 rm -f result) 29 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test_bad.xml > result 2>err ; \ 30 diff $(srcdir)/test_bad.result result; \ 31 diff $(srcdir)/test_bad.err err; \ 32 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 33 rm -f result err) 34 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/message.xsl $(srcdir)/message.xml > result 2>&1 ; \ 35 diff $(srcdir)/message.result result; \ 36 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 37 rm -f result) 38 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/fragment.xsl $(srcdir)/fragment.xml > result 2>&1 ; \ 39 diff $(srcdir)/fragment.result result; \ 40 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 41 rm -f result) 42 43