diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-03-19 18:52:17 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-03-19 18:52:17 +0000 |
commit | f6f08bd890020ae91aeb00e9ac99d99460733ee2 (patch) | |
tree | dfd3b24967cd6af4b7768d4c501402a588eccaae /tests/extensions | |
parent | 073f51a7408de89931721bcfd5e382a1f0f09d39 (diff) | |
download | libxslt-f6f08bd890020ae91aeb00e9ac99d99460733ee2.tar.gz |
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/extensions')
-rw-r--r-- | tests/extensions/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/extensions/Makefile.am b/tests/extensions/Makefile.am index 2710ee77..ec8fa94f 100644 --- a/tests/extensions/Makefile.am +++ b/tests/extensions/Makefile.am @@ -10,6 +10,10 @@ EXTRA_DIST = \ all: +valgrind: + @echo '## Running the regression tests under Valgrind' + $(MAKE) CHECKER='valgrind -q' tests + test tests: $(top_builddir)/xsltproc/xsltproc @(echo > .memdump) @(for i in $(srcdir)/*.xml ; do \ @@ -21,7 +25,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc name=`basename $$j .xsl`; \ out=$(srcdir)/"$$name".out; \ echo Running $$j on $$i ; \ - $(top_builddir)/xsltproc/xsltproc $$j $$i > result.$$name;\ + $(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i > result.$$name;\ if [ ! -f $$out ] ; then cp result.$$name $$out ; \ else diff $$out result.$$name; fi ; \ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ |