mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-10 09:03:02 +03:00
Major enhancement to "make tests". All but Python tests cleaned up to
* Makefile.am, tests/Makefile.am, tests/REC/Makefile.am, tests/REC1/Makefile.am, tests/REC2/Makefile.am, tests/XSLTMark/Makefile.am, tests/docbook/Makefile.am, tests/exslt/common/Makefile.am, tests/exslt/date/Makefile.am, tests/exslt/functions/Makefile.am, tests/exslt/math/Makefile.am, tests/exslt/sets/Makefile.am, tests/exslt/strings/Makefile.am, tests/extensions/Makefile.am, tests/general/Makefile.am, tests/keys/Makefile.am, tests/multiple/Makefile.am, tests/namespaces/Makefile.am, tests/numbers/Makefile.am, tests/reports/Makefile.am, test/xmlspec/Makefile.am, tests/general/bug-60.err, tests/docbook/result/html/gdp-handbook.err, tests/REC/test-2.5-1.err: Major enhancement to "make tests". All but Python tests cleaned up to produce minimum summary output if no problems. * tests/general/bug-145.xsl, tests/general/bug-145.err, tests/docs/Makefile.am, tests/docs/bug-145.xml: Added test case for bugzilla bug 135938
This commit is contained in:
20
ChangeLog
20
ChangeLog
@@ -1,3 +1,23 @@
|
|||||||
|
Sat Mar 6 23:05:11 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* Makefile.am, tests/Makefile.am, tests/REC/Makefile.am,
|
||||||
|
tests/REC1/Makefile.am, tests/REC2/Makefile.am,
|
||||||
|
tests/XSLTMark/Makefile.am, tests/docbook/Makefile.am,
|
||||||
|
tests/exslt/common/Makefile.am, tests/exslt/date/Makefile.am,
|
||||||
|
tests/exslt/functions/Makefile.am, tests/exslt/math/Makefile.am,
|
||||||
|
tests/exslt/sets/Makefile.am, tests/exslt/strings/Makefile.am,
|
||||||
|
tests/extensions/Makefile.am, tests/general/Makefile.am,
|
||||||
|
tests/keys/Makefile.am, tests/multiple/Makefile.am,
|
||||||
|
tests/namespaces/Makefile.am, tests/numbers/Makefile.am,
|
||||||
|
tests/reports/Makefile.am, test/xmlspec/Makefile.am,
|
||||||
|
tests/general/bug-60.err, tests/docbook/result/html/gdp-handbook.err,
|
||||||
|
tests/REC/test-2.5-1.err:
|
||||||
|
Major enhancement to "make tests". All but Python tests
|
||||||
|
cleaned up to produce minimum summary output if no problems.
|
||||||
|
* tests/general/bug-145.xsl, tests/general/bug-145.err,
|
||||||
|
tests/docs/Makefile.am, tests/docs/bug-145.xml:
|
||||||
|
Added test case for bugzilla bug 135938
|
||||||
|
|
||||||
Thu Mar 4 23:02:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
Thu Mar 4 23:02:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
* libxslt/xsltutils.h, libxslt/xsltutils.c, libxslt/preproc.c:
|
* libxslt/xsltutils.h, libxslt/xsltutils.c, libxslt/preproc.c:
|
||||||
|
@@ -42,8 +42,9 @@ check-local: tests
|
|||||||
dummy:
|
dummy:
|
||||||
|
|
||||||
tests: dummy
|
tests: dummy
|
||||||
@(cd tests ; $(MAKE) tests)
|
@echo '## Running the regression test suite'
|
||||||
@(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) tests ; fi)
|
@(cd tests ; $(MAKE) MAKEFLAGS+=--silent tests)
|
||||||
|
@(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) MAKEFLAGS+=--silent tests ; fi)
|
||||||
|
|
||||||
valgrind:
|
valgrind:
|
||||||
@echo '## Running the regression tests under Valgrind'
|
@echo '## Running the regression tests under Valgrind'
|
||||||
|
@@ -5,6 +5,11 @@ SUBDIRS=docs REC1 REC2 REC general namespaces keys numbers documents \
|
|||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
|
# Each subdirectory has it's own Makefile to cater for the unique
|
||||||
|
# requirements of that subdirectory. In general, xsltproc will be
|
||||||
|
# run on the *.xsl / *.xml file combinations, and the output of that
|
||||||
|
# run will be compared with the "expected" output contained in *.out
|
||||||
|
# and (if errors are expected) in *.err
|
||||||
test tests:
|
test tests:
|
||||||
@(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done)
|
@(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done)
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@ EXTRA_DIST = \
|
|||||||
test-16.1-2.out test-16.1-2.xml test-16.1-2.xsl \
|
test-16.1-2.out test-16.1-2.xml test-16.1-2.xsl \
|
||||||
test-2.3-1.out test-2.3-1.xml test-2.3-1.xsl \
|
test-2.3-1.out test-2.3-1.xml test-2.3-1.xsl \
|
||||||
test-2.3-2.out test-2.3-2.xml test-2.3-2.xsl \
|
test-2.3-2.out test-2.3-2.xml test-2.3-2.xsl \
|
||||||
test-2.5-1.out test-2.5-1.xml test-2.5-1.xsl \
|
test-2.5-1.out test-2.5-1.xml test-2.5-1.xsl test-2.5-1.err \
|
||||||
test-2.6.2-1.out test-2.6.2-1.xml test-2.6.2-1.xsl \
|
test-2.6.2-1.out test-2.6.2-1.xml test-2.6.2-1.xsl \
|
||||||
test-5.2-1.out test-5.2-1.xml test-5.2-1.xsl \
|
test-5.2-1.out test-5.2-1.xml test-5.2-1.xsl \
|
||||||
test-5.2-2.out test-5.2-2.xml test-5.2-2.xsl \
|
test-5.2-2.out test-5.2-2.xml test-5.2-2.xsl \
|
||||||
@@ -80,25 +80,66 @@ valgrind:
|
|||||||
|
|
||||||
test tests: $(top_builddir)/xsltproc/xsltproc
|
test tests: $(top_builddir)/xsltproc/xsltproc
|
||||||
@(echo > .memdump)
|
@(echo > .memdump)
|
||||||
@(for i in $(srcdir)/*.xsl ; do \
|
@echo '## Running REC tests'
|
||||||
|
-@(for i in $(srcdir)/*.xsl ; do \
|
||||||
name=`basename $$i .xsl` ; \
|
name=`basename $$i .xsl` ; \
|
||||||
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
|
if [ ! -f $(srcdir)/$$name.xml ] ; then \
|
||||||
echo $$name.xml ; \
|
continue ; \
|
||||||
$(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
|
fi ; \
|
||||||
if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
|
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
|
||||||
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
|
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml \
|
||||||
else diff $(srcdir)/$$name.out $$name.res ; fi ; fi; \
|
> $$name.res 2>$$name.bad ; \
|
||||||
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
|
if [ ! -f $(srcdir)/$$name.out ] ; then \
|
||||||
rm -f $$name.res ; \
|
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)
|
done)
|
||||||
@(for i in $(srcdir)/stand*.xml ; do \
|
@(for i in $(srcdir)/stand*.xml ; do \
|
||||||
name=`basename $$i .xml` ; \
|
name=`basename $$i .xml` ; \
|
||||||
echo $$name.xml ; \
|
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
|
||||||
$(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xml > $$name.res;\
|
$(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\
|
||||||
if [ ! -f $(srcdir)/$$name.stand.out ] ; then cp $$name.res $(srcdir)/$$name.stand.out ; \
|
if [ ! -f $(srcdir)/$$name.stand.out ] ; then \
|
||||||
else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
|
cp $$name.res $(srcdir)/$$name.stand.out ; \
|
||||||
else diff $(srcdir)/$$name.stand.out $$name.res ; fi ; fi; \
|
if [ -s $$name.bad ] ; then \
|
||||||
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
|
cp $$name.bad $(srcdir)/$$name.stand.err ; \
|
||||||
rm -f $$name.res ; \
|
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)
|
done)
|
||||||
|
|
||||||
|
4
tests/REC/test-2.5-1.err
Normal file
4
tests/REC/test-2.5-1.err
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
compilation error: file ./test-2.5-1.xsl line 6 element exciting-new-1.8-feature
|
||||||
|
xsltStylePreCompute: unknown xsl:exciting-new-1.8-feature
|
||||||
|
compilation error: file ./test-2.5-1.xsl line 2 element stylesheet
|
||||||
|
xsl:version: only 1.0 features are supported
|
@@ -11,10 +11,13 @@ valgrind:
|
|||||||
@echo '## Running the regression tests under Valgrind'
|
@echo '## Running the regression tests under Valgrind'
|
||||||
$(MAKE) CHECKER='valgrind -q' tests
|
$(MAKE) CHECKER='valgrind -q' tests
|
||||||
|
|
||||||
|
# No special stuff here, just a single test that either works or doesn't!
|
||||||
test tests: $(top_builddir)/xsltproc/xsltproc
|
test tests: $(top_builddir)/xsltproc/xsltproc
|
||||||
|
@echo '## Running REC1 tests'
|
||||||
@(echo > .memdump)
|
@(echo > .memdump)
|
||||||
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/doc.xsl $(srcdir)/doc.xml > doc.res ; \
|
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc \
|
||||||
|
$(srcdir)/doc.xsl $(srcdir)/doc.xml > doc.res ; \
|
||||||
diff $(srcdir)/result.xml doc.res ; \
|
diff $(srcdir)/result.xml doc.res ; \
|
||||||
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true; \
|
||||||
rm -f doc.res)
|
rm -f doc.res)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user