Rewrite/cleanup/tests of URI normalization:
- uri.c: rewrite of xmlNormalizeURIPath from Paul D. Smith
- test/URI/smith.uri result/URI/smith.uri Makefile.am:
added the new tests for URI normalization
- testURI.c: fixed stoopid bugs
- result/VC/OneID3 result/VC/UniqueElementTypeDeclaration:
the URI in the error messages are now properly normalized
Daniel
diff --git a/Makefile.am b/Makefile.am
index f920cd5..d67942a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -237,6 +237,19 @@
diff $(srcdir)/result/URI/$$name result.$$name ; \
rm result.$$name ; \
fi ; fi ; done)
+ @(for i in $(srcdir)/test/URI/*.uri ; do \
+ name=`basename $$i`; \
+ if [ ! -d $$i ] ; then \
+ if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
+ echo New test file $$name ; \
+ $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
+ else \
+ echo Testing $$name ; \
+ $(top_builddir)/testURI < $$i > result.$$name ; \
+ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
+ diff $(srcdir)/result/URI/$$name result.$$name ; \
+ rm result.$$name ; \
+ fi ; fi ; done)
XPathtests : testXPath
@echo "##"