URI work cleanup and regresssion tests,
- uri.c testUri.c: applied Wayne Davidson patches
- test/URI/uri.data result/URI/uri.data: first set of tests/results
- Makefile.in: added URItest and included thenin "make tests"
Daniel
diff --git a/Makefile.am b/Makefile.am
index 1f06fa6..f200249 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -98,7 +98,7 @@
testall : tests SVGtests SAXtests XPathtests
-tests: XMLtests XMLenttests HTMLtests Validtests
+tests: XMLtests XMLenttests HTMLtests Validtests URItests
HTMLtests : testHTML
@(rm -f .memdump ; touch .memdump)
@@ -214,6 +214,25 @@
rm result.$$name result2.$$name ; \
fi ; fi ; done)
+URItests : testURI
+ @(rm -f .memdump ; touch .memdump)
+ @echo "##"
+ @echo "## URI module regression tests"
+ @echo "##"
+ @(for i in $(srcdir)/test/URI/*.data ; do \
+ name=`basename $$i`; \
+ if [ ! -d $$i ] ; then \
+ if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
+ echo New test file $$name ; \
+ $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html#help' < $$i > $(srcdir)/result/URI/$$name ; \
+ else \
+ echo Testing $$name ; \
+ $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html#help' < $$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 "##"
@echo "## XPath regression tests"