diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-04-15 23:32:22 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-04-15 23:32:22 +0000 |
commit | f4e5576f8f34362b6bec9396ab073fac839dfb22 (patch) | |
tree | 078b3bcd3b37293e85044a0c7b802b4de530b380 /Makefile.am | |
parent | c58f4efbd44a4b155e5399cbe97525570ebc8385 (diff) | |
download | libxml2-f4e5576f8f34362b6bec9396ab073fac839dfb22.tar.gz |
implemented streaming of RelaxNG (when possible) on top of the xmlReader
* relaxng.c xmlreader.c xmllint.c include/libxml/relaxng.h
include/libxml/xmlreader.h: implemented streaming of
RelaxNG (when possible) on top of the xmlReader interface,
provided it as xmllint --stream --relaxng .rng .xml
This seems to mostly work.
* Makefile.am: updated to test RelaxNG streaming
Daniel
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index cb482f6b..216af1b7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -733,6 +733,33 @@ Relaxtests: xmllint$(EXEEXT) rm res.$$name err.$$name ; \ fi ; fi ; \ done; done) + @echo "##" + @echo "## Relax-NG streaming regression tests" + @echo "##" + -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ + name=`basename $$i | sed 's+\.rng++'`; \ + for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ + if [ -f $$j ] ; then \ + xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ + if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ + then \ + echo New test file "$$name"_"$$xno" ; \ + $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ + > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ + 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ + else \ + echo Testing "$$name"_"$$xno" ; \ + $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \ + > res.$$name 2> err.$$name;\ + grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ + diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \ + res.$$name;\ + diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ + err.$$name | grep -v "error detected at";\ + grep Unimplemented err.$$name; \ + rm res.$$name err.$$name ; \ + fi ; fi ; \ + done; done) dist-hook: libxml2.spec -cp libxml2.spec $(distdir) |