added entities testing to the Thread test make the test reasonable fix the
* test/threads/*: added entities testing to the Thread test
* testThreads.c: make the test reasonable
* DOCBparser.c: fix the DTD public and system ID
* xmllint.c: added --sgml for SGML DocBook importing
* Makefile.am: added Docbtests target
Daniel
diff --git a/Makefile.am b/Makefile.am
index c87ca99..36dcce5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,5 @@
## Process this file with automake to produce Makefile.in
-# Dependancies are fucked in make distcheck could not find why :-(
-AUTOMAKE_OPTIONS=no-dependencies
-
SUBDIRS = include . doc example
INCLUDES = -I@srcdir@/include -I$(top_builddir)/include @THREAD_CFLAGS@ @Z_CFLAGS@
@@ -226,6 +223,26 @@
rm result.$$name result2.$$name ; \
fi ; fi ; done)
+Docbtests : xmllint
+ @(echo > .memdump)
+ @echo "##"
+ @echo "## SGML DocBook regression tests"
+ @echo "##"
+ @(for i in $(srcdir)/test/DocBook/*.sgm ; do \
+ name=`basename $$i .sgm`; \
+ if [ ! -d $$i ] ; then \
+ if [ ! -f $(srcdir)/result/DocBook/$$name.xml ] ; then \
+ echo New test file $$name ; \
+ $(top_builddir)/xmllint --sgml $$i > $(srcdir)/result/DocBook/$$name.xml ; \
+ $(top_builddir)/xmllint --valid --noout $(srcdir)/result/DocBook/$$name.xml ; \
+ else \
+ echo Testing $$name ; \
+ $(top_builddir)/xmllint --sgml $$i > result.$$name ; \
+ diff $(srcdir)/result/DocBook/$$name.xml result.$$name ; \
+ $(top_builddir)/xmllint --valid --noout result.$$name ; \
+ rm result.$$name ; \
+ fi ; fi ; done)
+
XMLenttests : xmllint
@(echo > .memdump)
@echo "##"