1## Process this file with automake to produce Makefile.in 2 3$(top_builddir)/xsltproc/xsltproc: 4 @(cd ../../xsltproc ; $(MAKE) xsltproc) 5 6EXTRA_DIST = data.xml vrml.xsl vrml.xml svg.xsl svg.xml html.xsl html.xml 7 8CLEANFILES = .memdump 9 10valgrind: 11 @echo '## Running the regression tests under Valgrind' 12 $(MAKE) CHECKER='valgrind -q' tests 13 14# Just 3 specific files tested, they either work or don't! 15test tests: $(top_builddir)/xsltproc/xsltproc 16 @echo '## Running REC2 tests' 17 @(echo > .memdump) 18 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/vrml.xsl $(srcdir)/data.xml > vrml.res ; \ 19 diff $(srcdir)/vrml.xml vrml.res ; \ 20 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 21 rm -f vrml.res) 22 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/svg.xsl $(srcdir)/data.xml > svg.res ; \ 23 diff $(srcdir)/svg.xml svg.res ; \ 24 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 25 rm -f svg.res) 26 @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/html.xsl $(srcdir)/data.xml > html.res ; \ 27 diff $(srcdir)/html.xml html.res ; \ 28 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ 29 rm -f html.res) 30 31