summaryrefslogtreecommitdiff
path: root/tests/docbook
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-05-23 12:14:10 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-05-23 12:14:10 +0000
commit5256b326bec1009b27fa4fb13399d4a949841ff8 (patch)
treee302006399f426ca9279431ea2d4bd750b9437d9 /tests/docbook
parent59cd2492c060b4e422f22578b6acb87cd21b6c35 (diff)
downloadlibxslt-5256b326bec1009b27fa4fb13399d4a949841ff8.tar.gz
libxslt-5256b326bec1009b27fa4fb13399d4a949841ff8.tar.bz2
libxslt-5256b326bec1009b27fa4fb13399d4a949841ff8.zip
- libxslt/xsltproc.c: added --xinclude in the option list,
patch from Raphael Hertzog - test/docbook/Makefile.am: force at least the gdp-handbook.xml test in the normal testsuite Daniel
Diffstat (limited to 'tests/docbook')
-rw-r--r--tests/docbook/Makefile.am24
1 files changed, 23 insertions, 1 deletions
diff --git a/tests/docbook/Makefile.am b/tests/docbook/Makefile.am
index a1735c02..db068b7c 100644
--- a/tests/docbook/Makefile.am
+++ b/tests/docbook/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-all: # Avoid doing the test in normal pass
+all: single # Avoid doing the test in normal pass
$(top_builddir)/libxslt/xsltproc:
@(cd ../../libxslt ; make xsltproc)
@@ -9,6 +9,28 @@ EXTRA_DIST = README VERSION
tests: html
+#
+# a single tests to check that stuff ain't broken
+#
+single:
+ @(echo > .memdump)
+ @(for i in $(srcdir)/test/gdp-handbook.xml ; do \
+ echo $$i ; \
+ out=$(srcdir)/result/html/`basename $$i .xml`.tst; \
+ html=$(srcdir)/result/html/`basename $$i .xml`.html; \
+ $(top_builddir)/libxslt/xsltproc --nonet $(srcdir)/html/docbook.xsl $$i > $$out ; \
+ if [ -f $$html ] ; then \
+ grep -v id < $$html > $$html.noid ; \
+ grep -v id < $$out > $$out.noid ; \
+ diff $$html.noid $$out.noid ; \
+ rm -f $$html.noid $$out.noid ; \
+ else mv $$out $$html ; fi ; \
+ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
+ rm -f $$out ; done )
+
+#
+# The full set of tests
+#
html: $(top_builddir)/libxslt/xsltproc
@(echo > .memdump)
@(for i in $(srcdir)/test/*.xml ; do \