summaryrefslogtreecommitdiff
path: root/tests/exslt
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/exslt
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/exslt')
-rw-r--r--tests/exslt/Makefile.am7
-rw-r--r--tests/exslt/common/Makefile.am6
-rw-r--r--tests/exslt/date/Makefile.am8
-rw-r--r--tests/exslt/functions/Makefile.am6
-rw-r--r--tests/exslt/math/Makefile.am6
-rw-r--r--tests/exslt/sets/Makefile.am6
-rw-r--r--tests/exslt/strings/Makefile.am6
7 files changed, 37 insertions, 8 deletions
diff --git a/tests/exslt/Makefile.am b/tests/exslt/Makefile.am
index 208877ca..cc2fcb86 100644
--- a/tests/exslt/Makefile.am
+++ b/tests/exslt/Makefile.am
@@ -5,4 +5,9 @@ SUBDIRS=common functions math sets strings date
all:
test tests:
- @(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; make tests ; cd $$cur ; done)
+ @(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done)
+
+valgrind:
+ @echo '## Running the regression tests under Valgrind'
+ $(MAKE) CHECKER='valgrind -q' tests
+
diff --git a/tests/exslt/common/Makefile.am b/tests/exslt/common/Makefile.am
index f97db893..42768be0 100644
--- a/tests/exslt/common/Makefile.am
+++ b/tests/exslt/common/Makefile.am
@@ -11,13 +11,17 @@ 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)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \
diff --git a/tests/exslt/date/Makefile.am b/tests/exslt/date/Makefile.am
index e5caefd7..bb043d60 100644
--- a/tests/exslt/date/Makefile.am
+++ b/tests/exslt/date/Makefile.am
@@ -24,6 +24,10 @@ EXTRA_DIST = \
all:
+valgrind:
+ @echo '## Running the regression tests under Valgrind'
+ $(MAKE) CHECKER='valgrind -q' tests
+
test-current:
@(echo > .memdump)
@echo \<doc/\> >current.xml
@@ -33,7 +37,7 @@ test-current:
@(for i in $(srcdir)/current.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml;\
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
done)
@rm -f current.xml
@@ -44,7 +48,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc test-current
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \
diff --git a/tests/exslt/functions/Makefile.am b/tests/exslt/functions/Makefile.am
index e75e5b91..ff2e91da 100644
--- a/tests/exslt/functions/Makefile.am
+++ b/tests/exslt/functions/Makefile.am
@@ -13,13 +13,17 @@ 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)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \
diff --git a/tests/exslt/math/Makefile.am b/tests/exslt/math/Makefile.am
index dc661aa3..878c0ddd 100644
--- a/tests/exslt/math/Makefile.am
+++ b/tests/exslt/math/Makefile.am
@@ -17,13 +17,17 @@ 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)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \
diff --git a/tests/exslt/sets/Makefile.am b/tests/exslt/sets/Makefile.am
index 8b0b9818..6c1a7a38 100644
--- a/tests/exslt/sets/Makefile.am
+++ b/tests/exslt/sets/Makefile.am
@@ -12,13 +12,17 @@ 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)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \
diff --git a/tests/exslt/strings/Makefile.am b/tests/exslt/strings/Makefile.am
index 78eb8b11..5bdb16ec 100644
--- a/tests/exslt/strings/Makefile.am
+++ b/tests/exslt/strings/Makefile.am
@@ -8,13 +8,17 @@ 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)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ $(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \