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/namespaces | |
parent | 073f51a7408de89931721bcfd5e382a1f0f09d39 (diff) | |
download | libxslt-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/namespaces')
-rw-r--r-- | tests/namespaces/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/namespaces/Makefile.am b/tests/namespaces/Makefile.am index c04d1d1c..3cc72561 100644 --- a/tests/namespaces/Makefile.am +++ b/tests/namespaces/Makefile.am @@ -12,6 +12,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 \ @@ -23,7 +27,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc out=$(srcdir)/"$$name".out; \ err=$(srcdir)/"$$name".err; \ echo $$j ; \ - $(top_builddir)/xsltproc/xsltproc $$j $$i > result.$$name 2>err.$$name;\ + $(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i > result.$$name 2>err.$$name;\ if [ ! -f $$out ] ; then cp result.$$name $$out ; \ else diff $$out result.$$name ; fi ; \ if [ ! -f $$err ] ; then cp err.$$name $$err ; \ |