summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-03-29 19:07:56 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-03-29 19:07:56 +0000
commit7eebda2dde5dced763cf31f5df962745c2029e4b (patch)
tree63fbe6a1fe4d3214612438b2fd19b63a57859678 /tests
parent15dfe93284a9ef4237c0e5ea7ccf3d53e5704fc4 (diff)
downloadlibxslt-7eebda2dde5dced763cf31f5df962745c2029e4b.tar.gz
libxslt-7eebda2dde5dced763cf31f5df962745c2029e4b.tar.bz2
libxslt-7eebda2dde5dced763cf31f5df962745c2029e4b.zip
working around Mark Vakoc' reported bug related to mode internaing adding
* libxslt/transform.c: working around Mark Vakoc' reported bug related to mode internaing * xsltproc/xsltproc.c: adding a --nodict mode to check problems with document without a dictionnary. * tests/REC/Makefile.am tests/general/Makefile.am: testing without dictionnary Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/REC/Makefile.am62
-rw-r--r--tests/general/Makefile.am32
2 files changed, 94 insertions, 0 deletions
diff --git a/tests/REC/Makefile.am b/tests/REC/Makefile.am
index bc2c10a7..1b42cbd8 100644
--- a/tests/REC/Makefile.am
+++ b/tests/REC/Makefile.am
@@ -142,4 +142,66 @@ test tests: $(top_builddir)/xsltproc/xsltproc
fi ; \
rm -f $$name.res $$name.bad ; \
done)
+ @echo '## Running REC tests without dictionaries'
+ -@(for i in $(srcdir)/*.xsl ; do \
+ name=`basename $$i .xsl` ; \
+ if [ ! -f $(srcdir)/$$name.xml ] ; then \
+ continue ; \
+ fi ; \
+ log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \
+ $(srcdir)/$$name.xsl $(srcdir)/$$name.xml \
+ > $$name.res 2>$$name.bad ; \
+ if [ ! -f $(srcdir)/$$name.out ] ; then \
+ cp $$name.res $(srcdir)/$$name.out ; \
+ if [ -s $$name.bad ] ; then \
+ cp $$name.bad $(srcdir)/$$name.err ; \
+ fi ; \
+ else \
+ if [ ! -s $$name.res ] ; then \
+ echo "Fatal error, no $$name.res\n" ; \
+ else \
+ diff $(srcdir)/$$name.out $$name.res ; \
+ if [ -s $$name.err ] ; then \
+ diff $(srcdir)/$$name.err $$name.bad ; \
+ else \
+ diff /dev/null $$name.bad ; \
+ fi ; \
+ fi ; \
+ fi ; \
+ grep "MORY ALLO" .memdump | \
+ grep -v "MEMORY ALLOCATED : 0" || true` ; \
+ if [ -n "$$log" ] ; then \
+ echo $$name result ; \
+ echo $$log ; \
+ fi ; \
+ rm -f $$name.res $$name.bad ; \
+ done)
+ @(for i in $(srcdir)/stand*.xml ; do \
+ name=`basename $$i .xml` ; \
+ log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \
+ $(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\
+ if [ ! -f $(srcdir)/$$name.stand.out ] ; then \
+ cp $$name.res $(srcdir)/$$name.stand.out ; \
+ if [ -s $$name.bad ] ; then \
+ cp $$name.bad $(srcdir)/$$name.stand.err ; \
+ fi ; \
+ else \
+ if [ ! -s $$name.res ] ; then \
+ echo "Fatal error, no $$name.res\n" ; \
+ else \
+ diff $(srcdir)/$$name.stand.out $$name.res ; \
+ if [ -s $$name.stand.err ] ; then \
+ diff $(srcdir)/$$name.stand.err $$name.bad ; \
+ else \
+ diff /dev/null $$name.bad; \
+ fi ; \
+ fi ; \
+ fi ; \
+ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \
+ if [ -n "$$log" ] ; then \
+ echo $$name result ; \
+ echo $$log ; \
+ fi ; \
+ rm -f $$name.res $$name.bad ; \
+ done)
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 25747fbc..785e511c 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -213,4 +213,36 @@ test tests: $(top_builddir)/xsltproc/xsltproc
fi ; \
rm -f result.$$name err.$$name; \
done ; done)
+ @echo '## Running general tests without dictionaries'
+ -@(for i in $(srcdir)/../docs/*.xml ; do \
+ if [ -d $$i ] ; then continue ; fi ; \
+ doc=`basename $$i .xml` ; \
+ for j in $(srcdir)/$$doc*.xsl ; do \
+ if [ ! -f $$j ] ; then continue ; fi ; \
+ if [ -d $$j ] ; then continue ; fi ; \
+ name=`basename $$j .xsl`; \
+ out=$(srcdir)/"$$name".out; \
+ err=$(srcdir)/"$$name".err; \
+ log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict $$j $$i \
+ > result.$$name 2>err.$$name; \
+ if [ ! -f $$out ] ; then \
+ cp result.$$name $$out ; \
+ if [ -s err.$$name ] ; then \
+ cp err.$$name $$err ; \
+ fi ; \
+ else \
+ diff $$out result.$$name; \
+ if [ -s $$err ] ; then \
+ diff $$err err.$$name; \
+ else \
+ diff /dev/null err.$$name; \
+ fi ; \
+ fi ; \
+ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
+ if [ -n "$$log" ] ; then \
+ echo $$name result ; \
+ echo $$log ; \
+ fi ; \
+ rm -f result.$$name err.$$name; \
+ done ; done)