summaryrefslogtreecommitdiff
path: root/tests/documents
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-19 18:52:17 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-19 18:52:17 +0000
commitf6f08bd890020ae91aeb00e9ac99d99460733ee2 (patch)
treedfd3b24967cd6af4b7768d4c501402a588eccaae /tests/documents
parent073f51a7408de89931721bcfd5e382a1f0f09d39 (diff)
downloadlibxslt-f6f08bd890020ae91aeb00e9ac99d99460733ee2.tar.gz
libxslt-f6f08bd890020ae91aeb00e9ac99d99460733ee2.tar.bz2
libxslt-f6f08bd890020ae91aeb00e9ac99d99460733ee2.zip
added "make valgrind" targets to run the test suite under the debugger
* Makefile.am tests/Makefile.am tests/*/Makefile.am tests/*/*/Makefile.am : added "make valgrind" targets to run the test suite under the debugger control * transform.c: valgrind spotted 2 bugs, one related to the ordering of the deallocation of the data associated to a transofrmation, the second in xsltCopyTree when the new node may have been coalesced with an adjacent text node. The regression tests now pass cleanly under testgrind. Daniel
Diffstat (limited to 'tests/documents')
-rw-r--r--tests/documents/Makefile.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/documents/Makefile.am b/tests/documents/Makefile.am
index c7877a4f..fdee3953 100644
--- a/tests/documents/Makefile.am
+++ b/tests/documents/Makefile.am
@@ -12,17 +12,21 @@ EXTRA_DIST = bredfort.css index.xml system.xml \
all:
+valgrind:
+ @echo '## Running the regression tests under Valgrind'
+ $(MAKE) CHECKER='valgrind -q' tests
+
test tests: $(top_builddir)/xsltproc/xsltproc
@(echo > .memdump)
- @($(top_builddir)/xsltproc/xsltproc $(srcdir)/bredfort.xsl $(srcdir)/index.xml > result ; \
+ @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/bredfort.xsl $(srcdir)/index.xml > result ; \
diff $(srcdir)/result.xhtml result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)
- @($(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test.xml > result ; \
+ @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test.xml > result ; \
diff $(srcdir)/test.result result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)
- @($(top_builddir)/xsltproc/xsltproc $(srcdir)/message.xsl $(srcdir)/message.xml > result 2>&1 ; \
+ @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/message.xsl $(srcdir)/message.xml > result 2>&1 ; \
diff $(srcdir)/message.result result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)