Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | 7704473 | 2001-06-29 21:31:07 +0000 | [diff] [blame] | 2 | |
Daniel Veillard | b1da40c | 2004-09-06 11:57:44 +0000 | [diff] [blame] | 3 | SUBDIRS = include . doc example xstc @PYTHON_SUBDIR@ |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 4 | |
Daniel Veillard | b1da40c | 2004-09-06 11:57:44 +0000 | [diff] [blame] | 5 | DIST_SUBDIRS = include . doc example python xstc |
Daniel Veillard | 7233615 | 2002-09-21 13:08:14 +0000 | [diff] [blame] | 6 | |
Daniel Veillard | 91ad879 | 2002-11-04 17:06:52 +0000 | [diff] [blame] | 7 | INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 8 | |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 9 | noinst_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \ |
Daniel Veillard | 877a7bd | 2003-09-13 00:16:32 +0000 | [diff] [blame] | 10 | testThreads testC14N testAutomata testRegexp \ |
Daniel Veillard | 36e5cd5 | 2004-11-02 14:52:23 +0000 | [diff] [blame] | 11 | testReader testapi |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 12 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 13 | bin_PROGRAMS = xmllint xmlcatalog |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 14 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 15 | bin_SCRIPTS=xml2-config |
| 16 | |
| 17 | lib_LTLIBRARIES = libxml2.la |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 18 | libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 19 | |
Daniel Veillard | d392ba7 | 2004-08-04 14:56:45 +0000 | [diff] [blame] | 20 | libxml2_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -version-info @LIBXML_VERSION_INFO@ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 21 | |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 22 | if WITH_TRIO_SOURCES |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 23 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 24 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 25 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 26 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
William M. Brack | a2e844a | 2004-01-06 11:52:13 +0000 | [diff] [blame] | 27 | catalog.c globals.c threads.c c14n.c xmlstring.c \ |
Daniel Veillard | 49d5af8 | 2002-05-23 11:55:49 +0000 | [diff] [blame] | 28 | xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 29 | triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \ |
Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 30 | xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 31 | else |
| 32 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 33 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 34 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 35 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
William M. Brack | a2e844a | 2004-01-06 11:52:13 +0000 | [diff] [blame] | 36 | catalog.c globals.c threads.c c14n.c xmlstring.c \ |
Daniel Veillard | e1ca503 | 2002-12-09 14:13:43 +0000 | [diff] [blame] | 37 | xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 38 | xmlreader.c relaxng.c dict.c SAX2.c \ |
Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 39 | xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 40 | endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 41 | |
| 42 | DEPS = $(top_builddir)/libxml2.la |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 43 | LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@ |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 44 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 45 | |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 46 | man_MANS = xml2-config.1 libxml.3 |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 47 | |
| 48 | m4datadir = $(datadir)/aclocal |
| 49 | m4data_DATA = libxml.m4 |
| 50 | |
| 51 | xmllint_SOURCES=xmllint.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 52 | xmllint_LDFLAGS = |
| 53 | xmllint_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 54 | xmllint_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 55 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 56 | testSAX_SOURCES=testSAX.c |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 57 | testSAX_LDFLAGS = |
| 58 | testSAX_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 59 | testSAX_LDADD= $(LDADDS) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 60 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 61 | testHTML_SOURCES=testHTML.c |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 62 | testHTML_LDFLAGS = |
| 63 | testHTML_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 64 | testHTML_LDADD= $(LDADDS) |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 65 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 66 | xmlcatalog_SOURCES=xmlcatalog.c |
| 67 | xmlcatalog_LDFLAGS = |
| 68 | xmlcatalog_DEPENDENCIES = $(DEPS) |
Daniel Veillard | 03f848d | 2001-11-07 12:53:46 +0000 | [diff] [blame] | 69 | xmlcatalog_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 70 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 71 | testXPath_SOURCES=testXPath.c |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 72 | testXPath_LDFLAGS = |
| 73 | testXPath_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 74 | testXPath_LDADD= $(LDADDS) |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 75 | |
Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 76 | testC14N_SOURCES=testC14N.c |
| 77 | testC14N_LDFLAGS = |
| 78 | testC14N_DEPENDENCIES = $(DEPS) |
| 79 | testC14N_LDADD= $(LDADDS) |
| 80 | |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 81 | testThreads_SOURCES=testThreads@THREADS_W32@.c |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 82 | testThreads_LDFLAGS = |
| 83 | testThreads_DEPENDENCIES = $(DEPS) |
| 84 | testThreads_LDADD= $(LDADDS) |
| 85 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 86 | testURI_SOURCES=testURI.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 87 | testURI_LDFLAGS = |
| 88 | testURI_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 89 | testURI_LDADD= $(LDADDS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 90 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 91 | testRegexp_SOURCES=testRegexp.c |
| 92 | testRegexp_LDFLAGS = |
| 93 | testRegexp_DEPENDENCIES = $(DEPS) |
| 94 | testRegexp_LDADD= $(LDADDS) |
| 95 | |
| 96 | testAutomata_SOURCES=testAutomata.c |
| 97 | testAutomata_LDFLAGS = |
| 98 | testAutomata_DEPENDENCIES = $(DEPS) |
| 99 | testAutomata_LDADD= $(LDADDS) |
| 100 | |
| 101 | testSchemas_SOURCES=testSchemas.c |
| 102 | testSchemas_LDFLAGS = |
| 103 | testSchemas_DEPENDENCIES = $(DEPS) |
| 104 | testSchemas_LDADD= $(LDADDS) |
| 105 | |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 106 | testRelax_SOURCES=testRelax.c |
| 107 | testRelax_LDFLAGS = |
| 108 | testRelax_DEPENDENCIES = $(DEPS) |
| 109 | testRelax_LDADD= $(LDADDS) |
| 110 | |
Daniel Veillard | e1ca503 | 2002-12-09 14:13:43 +0000 | [diff] [blame] | 111 | testReader_SOURCES=testReader.c |
| 112 | testReader_LDFLAGS = |
| 113 | testReader_DEPENDENCIES = $(DEPS) |
| 114 | testReader_LDADD= $(LDADDS) |
| 115 | |
Daniel Veillard | 36e5cd5 | 2004-11-02 14:52:23 +0000 | [diff] [blame] | 116 | testapi.c: gentest.py doc/libxml2-api.xml |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 117 | -@(if [ "$(PYTHON)" != "" ] ; then \ |
| 118 | $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi ) |
Daniel Veillard | 36e5cd5 | 2004-11-02 14:52:23 +0000 | [diff] [blame] | 119 | |
| 120 | testapi_SOURCES=testapi.c |
| 121 | testapi_LDFLAGS = |
| 122 | testapi_DEPENDENCIES = $(DEPS) |
| 123 | testapi_LDADD= $(LDADDS) |
| 124 | |
Daniel Veillard | de0a0a5 | 2003-04-24 17:12:57 +0000 | [diff] [blame] | 125 | #testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c |
| 126 | #testOOM_LDFLAGS = |
| 127 | #testOOM_DEPENDENCIES = $(DEPS) |
| 128 | #testOOM_LDADD= $(LDADDS) |
Daniel Veillard | a76fe5c | 2003-04-24 16:06:47 +0000 | [diff] [blame] | 129 | |
Daniel Veillard | a90de5e | 2004-05-09 18:06:20 +0000 | [diff] [blame] | 130 | check-local: all tests |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 131 | |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 132 | testall : tests SVGtests SAXtests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 133 | |
Daniel Veillard | d0cf7f6 | 2004-11-09 16:17:02 +0000 | [diff] [blame] | 134 | tests: XMLtests XMLenttests NStests IDtests Errtests APItests @READER_TEST@ @TEST_SAX@ @TEST_PUSH@ @TEST_HTML@ @TEST_PHTML@ @TEST_VALID@ URItests @TEST_XPATH@ @TEST_XPTR@ @TEST_XINCLUDE@ @TEST_C14N@ @TEST_DEBUG@ @TEST_CATALOG@ @TEST_REGEXPS@ @TEST_SCHEMAS@ @TEST_THREADS@ Timingtests @TEST_VTIME@ @PYTHON_TESTS@ |
William M. Brack | e9449c5 | 2004-07-11 14:41:20 +0000 | [diff] [blame] | 135 | @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; \ |
| 136 | $(MAKE) MAKEFLAGS+=--silent tests ; fi) |
| 137 | @(cd doc/examples ; $(MAKE) MAKEFLAGS+=--silent tests) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 138 | |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 139 | valgrind: |
| 140 | @echo '## Running the regression tests under Valgrind' |
| 141 | @echo '## Go get a cup of coffee it is gonna take a while ...' |
| 142 | $(MAKE) CHECKER='valgrind -q' tests |
| 143 | |
Daniel Veillard | d0cf7f6 | 2004-11-09 16:17:02 +0000 | [diff] [blame] | 144 | APItests: testapi$(EXEEXT) |
| 145 | @echo "## Running the API regression tests this may take a little while" |
| 146 | -@($(CHECKER) $(top_builddir)/testapi -q) |
| 147 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 148 | HTMLtests : testHTML$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 149 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 150 | @echo "## HTML regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 151 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 152 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 153 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 154 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 155 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 156 | $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 157 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 158 | log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 159 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 160 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 161 | diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 162 | $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 163 | diff result.$$name result2.$$name` ; \ |
| 164 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 165 | rm result.$$name result2.$$name error.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 166 | fi ; fi ; done) |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 167 | |
| 168 | HTMLPushtests : testHTML$(EXEEXT) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 169 | @echo "## Push HTML regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 170 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 171 | name=`basename $$i`; \ |
| 172 | if [ ! -d $$i ] ; then \ |
| 173 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 174 | echo New test file $$name ; \ |
William M. Brack | f20fbf7 | 2004-06-25 05:49:08 +0000 | [diff] [blame] | 175 | $(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 176 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 177 | log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 178 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 179 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
| 180 | cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ |
| 181 | cut -b 1-15 error.$$name > errorcut2.$$name; \ |
| 182 | diff -b errorcut.$$name errorcut2.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 183 | $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 184 | diff result.$$name result2.$$name` ; \ |
| 185 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 186 | rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ |
| 187 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 188 | @echo "## HTML SAX regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 189 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 190 | name=`basename $$i`; \ |
| 191 | if [ ! -d $$i ] ; then \ |
| 192 | if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ |
| 193 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 194 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 195 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 196 | log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 197 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 198 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \ |
| 199 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 200 | rm result.$$name.sax ; \ |
| 201 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 202 | @echo "## Push HTML SAX regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 203 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 204 | name=`basename $$i`; \ |
| 205 | if [ ! -d $$i ] ; then \ |
| 206 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 207 | echo New test file $$name ; \ |
William M. Brack | f20fbf7 | 2004-06-25 05:49:08 +0000 | [diff] [blame] | 208 | $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 209 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 210 | log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 211 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 212 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \ |
| 213 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 214 | rm result.$$name.sax ; \ |
| 215 | fi ; fi ; done) |
| 216 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 217 | XMLtests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 218 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 219 | @echo "## XML regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 220 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 221 | name=`basename $$i`; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 222 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 223 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 224 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 225 | $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 226 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 227 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 228 | log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 229 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 230 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 231 | $(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 232 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 233 | diff result.$$name result2.$$name` ;\ |
| 234 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 235 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 236 | fi ; fi ; done) |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 237 | @echo "## XML regression tests on memory" |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 238 | -@(for i in $(srcdir)/test/* ; do \ |
| 239 | name=`basename $$i`; \ |
| 240 | if [ ! -d $$i ] ; then \ |
| 241 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 242 | echo New test file $$name ; \ |
| 243 | $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ |
| 244 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 245 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 246 | log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 247 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 248 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 249 | $(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \ |
| 250 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`; \ |
| 251 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 252 | diff result.$$name result2.$$name ; \ |
| 253 | rm result.$$name result2.$$name ; \ |
| 254 | fi ; fi ; done) |
| 255 | |
| 256 | XMLPushtests: xmllint$(EXEEXT) |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 257 | @(echo > .memdump) |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 258 | @echo "## XML push regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 259 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 260 | name=`basename $$i`; \ |
| 261 | if [ ! -d $$i ] ; then \ |
| 262 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 263 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 264 | $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 265 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 266 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 267 | log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 268 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 269 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 270 | $(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 271 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 272 | diff result.$$name result2.$$name` ; \ |
| 273 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 274 | rm result.$$name result2.$$name ; \ |
| 275 | fi ; fi ; done) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 276 | |
Daniel Veillard | 3b7840c | 2003-09-11 23:42:01 +0000 | [diff] [blame] | 277 | NStests : xmllint$(EXEEXT) |
| 278 | @(echo > .memdump) |
Daniel Veillard | 3b7840c | 2003-09-11 23:42:01 +0000 | [diff] [blame] | 279 | @echo "## XML Namespaces regression tests" |
Daniel Veillard | 3b7840c | 2003-09-11 23:42:01 +0000 | [diff] [blame] | 280 | -@(for i in $(srcdir)/test/namespaces/* ; do \ |
| 281 | name=`basename $$i`; \ |
| 282 | if [ ! -d $$i ] ; then \ |
| 283 | if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \ |
| 284 | echo New test file $$name ; \ |
| 285 | $(CHECKER) $(top_builddir)/xmllint $$i \ |
| 286 | 2> $(srcdir)/result/namespaces/$$name.err \ |
| 287 | > $(srcdir)/result/namespaces/$$name ; \ |
| 288 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 289 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 290 | log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \ |
Daniel Veillard | 3b7840c | 2003-09-11 23:42:01 +0000 | [diff] [blame] | 291 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 292 | diff $(srcdir)/result/namespaces/$$name result.$$name ; \ |
Daniel Veillard | 03a53c3 | 2004-10-26 16:06:51 +0000 | [diff] [blame] | 293 | diff $(srcdir)/result/namespaces/$$name.err error.$$name`; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 294 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 3b7840c | 2003-09-11 23:42:01 +0000 | [diff] [blame] | 295 | rm result.$$name error.$$name ; \ |
| 296 | fi ; fi ; done) |
| 297 | |
Daniel Veillard | 67f8b1c | 2004-04-09 21:51:49 +0000 | [diff] [blame] | 298 | IDtests : xmllint$(EXEEXT) testXPath$(EXEEXT) |
| 299 | @(echo > .memdump) |
| 300 | @echo "## xml:id regression tests" |
| 301 | -@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \ |
| 302 | name=`basename $$i`; \ |
| 303 | if [ ! -d $$i ] ; then \ |
| 304 | if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \ |
| 305 | echo New test file $$name ; \ |
| 306 | $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \ |
| 307 | 2> $(srcdir)/result/xmlid/$$name.err \ |
| 308 | > $(srcdir)/result/xmlid/$$name ; \ |
| 309 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 310 | else \ |
| 311 | log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \ |
| 312 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 313 | diff $(srcdir)/result/xmlid/$$name result.$$name ; \ |
| 314 | diff $(srcdir)/result/xmlid/$$name.err error.$$name` ; \ |
| 315 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 316 | rm result.$$name error.$$name ; \ |
| 317 | fi ; fi ; done) |
| 318 | |
Daniel Veillard | 522bc60 | 2004-02-21 11:53:09 +0000 | [diff] [blame] | 319 | Errtests : xmllint$(EXEEXT) |
| 320 | @(echo > .memdump) |
| 321 | @echo "## Error cases regression tests" |
| 322 | -@(for i in $(srcdir)/test/errors/*.xml ; do \ |
| 323 | name=`basename $$i`; \ |
| 324 | if [ ! -d $$i ] ; then \ |
| 325 | if [ ! -f $(srcdir)/result/errors/$$name ] ; then \ |
| 326 | echo New test file $$name ; \ |
| 327 | $(CHECKER) $(top_builddir)/xmllint $$i \ |
| 328 | 2> $(srcdir)/result/errors/$$name.err \ |
| 329 | > $(srcdir)/result/errors/$$name ; \ |
| 330 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 331 | else \ |
| 332 | log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \ |
| 333 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 334 | diff $(srcdir)/result/errors/$$name result.$$name ; \ |
| 335 | diff $(srcdir)/result/errors/$$name.err error.$$name` ; \ |
| 336 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 337 | rm result.$$name error.$$name ; \ |
| 338 | fi ; fi ; done) |
| 339 | @echo "## Error cases stream regression tests" |
| 340 | -@(for i in $(srcdir)/test/errors/*.xml ; do \ |
| 341 | name=`basename $$i`; \ |
| 342 | if [ ! -d $$i ] ; then \ |
| 343 | if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \ |
| 344 | echo New test file $$name ; \ |
Daniel Veillard | 4a14fb8 | 2004-06-14 19:58:20 +0000 | [diff] [blame] | 345 | $(CHECKER) $(top_builddir)/xmllint --stream $$i \ |
Daniel Veillard | 522bc60 | 2004-02-21 11:53:09 +0000 | [diff] [blame] | 346 | 2> $(srcdir)/result/errors/$$name.str \ |
| 347 | > $(srcdir)/result/errors/$$name ; \ |
| 348 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 349 | else \ |
Daniel Veillard | 4a14fb8 | 2004-06-14 19:58:20 +0000 | [diff] [blame] | 350 | log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > result.$$name ; \ |
Daniel Veillard | 522bc60 | 2004-02-21 11:53:09 +0000 | [diff] [blame] | 351 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 352 | diff $(srcdir)/result/errors/$$name result.$$name ; \ |
| 353 | diff $(srcdir)/result/errors/$$name.str error.$$name` ; \ |
| 354 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 355 | rm result.$$name error.$$name ; \ |
| 356 | fi ; fi ; done) |
| 357 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 358 | Docbtests : xmllint$(EXEEXT) |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 359 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 360 | XMLenttests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 361 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 362 | @echo "## XML entity subst regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 363 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 364 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 365 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 366 | if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ |
| 367 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 368 | $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 369 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 370 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 371 | log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 372 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 373 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 374 | $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 375 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 376 | diff result.$$name result2.$$name` ; \ |
| 377 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 378 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 379 | fi ; fi ; done) |
| 380 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 381 | URItests : testURI$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 382 | @(echo > .memdump) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 383 | @echo "## URI module regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 384 | -@(for i in $(srcdir)/test/URI/*.data ; do \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 385 | name=`basename $$i`; \ |
| 386 | if [ ! -d $$i ] ; then \ |
| 387 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 388 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 389 | $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 390 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 391 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 392 | log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 393 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 394 | diff $(srcdir)/result/URI/$$name result.$$name` ; \ |
| 395 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 396 | rm result.$$name ; \ |
| 397 | fi ; fi ; done) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 398 | -@(for i in $(srcdir)/test/URI/*.uri ; do \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 399 | name=`basename $$i`; \ |
| 400 | if [ ! -d $$i ] ; then \ |
| 401 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 402 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 403 | $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 404 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 405 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 406 | log=`$(CHECKER) $(top_builddir)/testURI < $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 407 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 408 | diff $(srcdir)/result/URI/$$name result.$$name` ; \ |
| 409 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 410 | rm result.$$name ; \ |
| 411 | fi ; fi ; done) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 412 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 413 | XPathtests : testXPath$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 414 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 415 | @echo "## XPath regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 416 | -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 417 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 418 | for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 419 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 420 | if [ ! -d $$i ] ; then \ |
| 421 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 422 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 423 | $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 424 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 425 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 426 | log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 427 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 428 | diff $(srcdir)/result/XPath/expr/$$name result.$$name` ; \ |
| 429 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 430 | rm result.$$name ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 431 | fi ; fi ; done ; \ |
| 432 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 433 | if [ ! -d $$i ] ; then \ |
| 434 | doc=`basename $$i`; \ |
| 435 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 436 | if [ ! -f $$j ] ; then continue ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 437 | name=`basename $$j`; \ |
| 438 | if [ ! -d $$j ] ; then \ |
| 439 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 440 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 441 | $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 442 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 443 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 444 | log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j 2>&1 > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 445 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 446 | diff $(srcdir)/result/XPath/tests/$$name result.$$name` ; \ |
| 447 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 448 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 449 | fi ; fi ; done ; fi ; done) |
| 450 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 451 | XPtrtests : testXPath$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 452 | @(echo > .memdump) |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 453 | @echo "## XPointer regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 454 | -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 455 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 456 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 457 | if [ ! -d $$i ] ; then \ |
| 458 | doc=`basename $$i`; \ |
| 459 | for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ |
| 460 | if [ ! -f $$j ] ; then continue ; fi ; \ |
| 461 | name=`basename $$j`; \ |
| 462 | if [ ! -d $$j ] ; then \ |
| 463 | if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ |
| 464 | echo New test file $$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 465 | $(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ |
| 466 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 467 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 468 | log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j 2>&1 > result.$$name ; \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 469 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 470 | diff $(srcdir)/result/XPath/xptr/$$name result.$$name` ; \ |
| 471 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 472 | rm result.$$name ; \ |
| 473 | fi ; fi ; done ; fi ; done) |
| 474 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 475 | XIncludetests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 476 | @(echo > .memdump) |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 477 | @echo "## XInclude regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 478 | -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 479 | name=`basename $$i`; \ |
| 480 | if [ ! -d $$i ] ; then \ |
| 481 | if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ |
| 482 | echo New test file $$name ; \ |
Daniel Veillard | e74d2e1 | 2003-12-09 11:35:37 +0000 | [diff] [blame] | 483 | $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 484 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 485 | else \ |
Daniel Veillard | 1f8658a | 2004-08-14 21:46:31 +0000 | [diff] [blame] | 486 | log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 487 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | e74d2e1 | 2003-12-09 11:35:37 +0000 | [diff] [blame] | 488 | diff $(srcdir)/result/XInclude/$$name result.$$name ; \ |
| 489 | diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 490 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | e74d2e1 | 2003-12-09 11:35:37 +0000 | [diff] [blame] | 491 | rm result.$$name error.$$name ; \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 492 | fi ; fi ; done) |
Daniel Veillard | c14c389 | 2004-08-16 12:34:50 +0000 | [diff] [blame] | 493 | -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
| 494 | name=`basename $$i`; \ |
| 495 | if [ ! -d $$i ] ; then \ |
| 496 | if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ |
| 497 | echo New test file $$name ; \ |
| 498 | $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \ |
| 499 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 500 | else \ |
| 501 | log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > result.$$name 2>error.$$name ; \ |
| 502 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 503 | diff $(srcdir)/result/XInclude/$$name result.$$name ; \ |
| 504 | diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \ |
| 505 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 506 | rm result.$$name error.$$name ; \ |
| 507 | fi ; fi ; done) |
Daniel Veillard | 7899c5c | 2003-11-03 12:31:38 +0000 | [diff] [blame] | 508 | @(echo > .memdump) |
| 509 | @echo "## XInclude xmlReader regression tests" |
| 510 | -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
| 511 | name=`basename $$i`; \ |
| 512 | if [ ! -d $$i ] ; then \ |
| 513 | if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \ |
| 514 | echo New test file $$name ; \ |
William M. Brack | f20fbf7 | 2004-06-25 05:49:08 +0000 | [diff] [blame] | 515 | $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \ |
Daniel Veillard | 7899c5c | 2003-11-03 12:31:38 +0000 | [diff] [blame] | 516 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 517 | else \ |
Daniel Veillard | 1f8658a | 2004-08-14 21:46:31 +0000 | [diff] [blame] | 518 | log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | 7899c5c | 2003-11-03 12:31:38 +0000 | [diff] [blame] | 519 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | e74d2e1 | 2003-12-09 11:35:37 +0000 | [diff] [blame] | 520 | diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \ |
Daniel Veillard | 7899c5c | 2003-11-03 12:31:38 +0000 | [diff] [blame] | 521 | diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \ |
| 522 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | e74d2e1 | 2003-12-09 11:35:37 +0000 | [diff] [blame] | 523 | rm result.$$name error.$$name ; \ |
Daniel Veillard | 7899c5c | 2003-11-03 12:31:38 +0000 | [diff] [blame] | 524 | fi ; fi ; done) |
Daniel Veillard | c14c389 | 2004-08-16 12:34:50 +0000 | [diff] [blame] | 525 | -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
| 526 | name=`basename $$i`; \ |
| 527 | if [ ! -d $$i ] ; then \ |
| 528 | if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \ |
| 529 | echo New test file $$name ; \ |
| 530 | $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \ |
| 531 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 532 | else \ |
| 533 | log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \ |
| 534 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 535 | diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \ |
| 536 | diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \ |
| 537 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 538 | rm result.$$name error.$$name ; \ |
| 539 | fi ; fi ; done) |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 540 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 541 | Scripttests : xmllint$(EXEEXT) |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 542 | @(echo > .memdump) |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 543 | @echo "## Scripts regression tests" |
| 544 | @echo "## Some of the base computations may be different if srcdir != ." |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 545 | -@(for i in $(srcdir)/test/scripts/*.script ; do \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 546 | name=`basename $$i .script`; \ |
| 547 | xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \ |
| 548 | if [ -f $$xml ] ; then \ |
| 549 | if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \ |
| 550 | echo New test file $$name ; \ |
Daniel Veillard | 29b1748 | 2004-08-16 00:39:03 +0000 | [diff] [blame] | 551 | $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcdir)/result/scripts/$$name.err ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 552 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 553 | else \ |
Daniel Veillard | 29b1748 | 2004-08-16 00:39:03 +0000 | [diff] [blame] | 554 | log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ; \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 555 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 29b1748 | 2004-08-16 00:39:03 +0000 | [diff] [blame] | 556 | diff $(srcdir)/result/scripts/$$name result.$$name ; \ |
| 557 | diff $(srcdir)/result/scripts/$$name.err result.$$name.err` ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 558 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 29b1748 | 2004-08-16 00:39:03 +0000 | [diff] [blame] | 559 | rm result.$$name result.$$name.err ; \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 560 | fi ; fi ; done) |
| 561 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 562 | Catatests : xmlcatalog$(EXEEXT) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 563 | @(echo > .memdump) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 564 | @echo "## Catalog regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 565 | -@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 566 | name=`basename $$i .script`; \ |
| 567 | xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \ |
| 568 | if [ -f $$xml ] ; then \ |
| 569 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 570 | echo New test file $$name ; \ |
William M. Brack | f20fbf7 | 2004-06-25 05:49:08 +0000 | [diff] [blame] | 571 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 572 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 573 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 574 | log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 575 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 576 | diff $(srcdir)/result/catalogs/$$name result.$$name` ; \ |
| 577 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 578 | rm result.$$name ; \ |
| 579 | fi ; fi ; done) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 580 | -@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 581 | name=`basename $$i .script`; \ |
| 582 | sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \ |
| 583 | if [ -f $$sgml ] ; then \ |
| 584 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 585 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 586 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 587 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 588 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 589 | log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 590 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 591 | diff $(srcdir)/result/catalogs/$$name result.$$name` ; \ |
| 592 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 593 | rm result.$$name ; \ |
| 594 | fi ; fi ; done) |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 595 | @echo "## Add and del operations on XML Catalogs" |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 596 | -@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 597 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 598 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 599 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 600 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 601 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 602 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 603 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 604 | diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 605 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 606 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 607 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 608 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 609 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 610 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 611 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 612 | diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 613 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 614 | rm -f $(srcdir)/result/catalogs/mycatalog) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 615 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 616 | SVGtests : xmllint$(EXEEXT) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 617 | @echo "## SVG parsing regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 618 | -@(for i in $(srcdir)/test/SVG/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 619 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 620 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 621 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 622 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 623 | $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 624 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 625 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 626 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 627 | $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 628 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 629 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 630 | $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 631 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 632 | diff result.$$name result2.$$name ; \ |
| 633 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 634 | fi ; fi ; done) |
| 635 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 636 | Threadtests : testThreads$(EXEEXT) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 637 | @echo "## Threaded regression tests" |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 638 | -@($(CHECKER) $(top_builddir)/testThreads ; \ |
| 639 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 640 | exit 0) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 641 | |
Daniel Veillard | 81514ba | 2003-09-16 23:17:26 +0000 | [diff] [blame] | 642 | Readertests : xmllint$(EXEEXT) |
Daniel Veillard | 8a44e59 | 2003-09-15 14:50:06 +0000 | [diff] [blame] | 643 | @(echo > .memdump) |
Daniel Veillard | 8a44e59 | 2003-09-15 14:50:06 +0000 | [diff] [blame] | 644 | @echo "## Reader regression tests" |
Daniel Veillard | 8a44e59 | 2003-09-15 14:50:06 +0000 | [diff] [blame] | 645 | -@(for i in $(srcdir)/test/* ; do \ |
| 646 | name=`basename $$i`; \ |
| 647 | if [ ! -d $$i ] ; then \ |
| 648 | if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \ |
| 649 | echo New test file $$name ; \ |
| 650 | $(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \ |
| 651 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 652 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 653 | log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \ |
Daniel Veillard | 8a44e59 | 2003-09-15 14:50:06 +0000 | [diff] [blame] | 654 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 655 | diff $(srcdir)/result/$$name.rdr result.$$name` ; \ |
| 656 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 8a44e59 | 2003-09-15 14:50:06 +0000 | [diff] [blame] | 657 | rm result.$$name ; \ |
| 658 | fi ; fi ; done) |
Daniel Veillard | 5335055 | 2003-09-18 13:35:51 +0000 | [diff] [blame] | 659 | @echo "## Reader on memory regression tests" |
Daniel Veillard | 5335055 | 2003-09-18 13:35:51 +0000 | [diff] [blame] | 660 | -@(for i in $(srcdir)/test/* ; do \ |
| 661 | name=`basename $$i`; \ |
| 662 | if [ ! -d $$i ] ; then \ |
| 663 | if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \ |
| 664 | echo New test file $$name ; \ |
| 665 | $(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \ |
| 666 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 667 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 668 | log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \ |
Daniel Veillard | 5335055 | 2003-09-18 13:35:51 +0000 | [diff] [blame] | 669 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 670 | diff $(srcdir)/result/$$name.rdr result.$$name` ; \ |
| 671 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 5335055 | 2003-09-18 13:35:51 +0000 | [diff] [blame] | 672 | rm result.$$name ; \ |
| 673 | fi ; fi ; done) |
Daniel Veillard | 7899c5c | 2003-11-03 12:31:38 +0000 | [diff] [blame] | 674 | @(echo > .memdump) |
| 675 | @echo "## Walker regression tests" |
| 676 | -@(for i in $(srcdir)/test/* ; do \ |
| 677 | name=`basename $$i`; \ |
| 678 | if [ ! -d $$i ] ; then \ |
| 679 | if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \ |
| 680 | echo New test file $$name ; \ |
| 681 | $(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \ |
| 682 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 683 | else \ |
| 684 | log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > result.$$name 2>/dev/null ; \ |
| 685 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 686 | diff $(srcdir)/result/$$name.rdr result.$$name` ; \ |
| 687 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 688 | rm result.$$name ; \ |
| 689 | fi ; fi ; done) |
Daniel Veillard | 0df3bc3 | 2004-06-08 12:03:41 +0000 | [diff] [blame] | 690 | @echo "## Reader entities substitution regression tests" |
| 691 | -@(for i in $(srcdir)/test/* ; do \ |
| 692 | name=`basename $$i`; \ |
| 693 | if [ ! -d $$i ] ; then \ |
| 694 | if [ ! -f $(srcdir)/result/$$name.rde ] ; then \ |
| 695 | echo New test file $$name ; \ |
| 696 | $(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > $(srcdir)/result/$$name.rde 2>/dev/null ; \ |
| 697 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 698 | else \ |
| 699 | log=`$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \ |
| 700 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 701 | diff $(srcdir)/result/$$name.rde result.$$name` ; \ |
| 702 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
| 703 | rm result.$$name ; \ |
| 704 | fi ; fi ; done) |
| 705 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 706 | SAXtests : testSAX$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 707 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 708 | @echo "## SAX callbacks regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 709 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 710 | name=`basename $$i`; \ |
| 711 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | 4b1577f | 2003-09-03 13:10:37 +0000 | [diff] [blame] | 712 | if [ ! -f $(srcdir)/result/$$name.sax ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 713 | echo New test file $$name ; \ |
Daniel Veillard | f403d29 | 2003-10-05 13:51:35 +0000 | [diff] [blame] | 714 | $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/result/$$name.sax 2> /dev/null ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 715 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 716 | else \ |
Daniel Veillard | f403d29 | 2003-10-05 13:51:35 +0000 | [diff] [blame] | 717 | log=`$(CHECKER) $(top_builddir)/testSAX $$i > result.$$name 2> /dev/null ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 718 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 719 | diff $(srcdir)/result/$$name.sax result.$$name` ; \ |
| 720 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 721 | rm result.$$name ; \ |
| 722 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 723 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 724 | Validtests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 725 | @(echo > .memdump) |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 726 | @echo "## Valid documents regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 727 | -@(for i in $(srcdir)/test/VCM/* ; do \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 728 | name=`basename $$i`; \ |
| 729 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 730 | log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ |
| 731 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`;\ |
| 732 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 733 | fi ; done ; exit 0) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 734 | @echo "## Validity checking regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 735 | -@(for i in $(srcdir)/test/VC/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 736 | name=`basename $$i`; \ |
| 737 | if [ ! -d $$i ] ; then \ |
| 738 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 739 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 740 | $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 741 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 742 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 743 | log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 744 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 745 | diff $(srcdir)/result/VC/$$name result.$$name` ; \ |
| 746 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 747 | rm result.$$name ; \ |
| 748 | fi ; fi ; done) |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 749 | @echo "## General documents valid regression tests" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 750 | -@(for i in $(srcdir)/test/valid/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 751 | name=`basename $$i`; \ |
| 752 | if [ ! -d $$i ] ; then \ |
| 753 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 754 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 755 | $(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 756 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 757 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 758 | log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 759 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 760 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 761 | diff $(srcdir)/result/valid/$$name.err error.$$name` ; \ |
| 762 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 763 | rm result.$$name error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 764 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 765 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 766 | Regexptests: testRegexp$(EXEEXT) |
| 767 | @(echo > .memdump) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 768 | @echo "## Regexp regression tests" |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 769 | -@(for i in $(srcdir)/test/regexp/* ; do \ |
| 770 | name=`basename $$i`; \ |
| 771 | if [ ! -d $$i ] ; then \ |
| 772 | if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \ |
| 773 | echo New test file $$name ; \ |
| 774 | $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 775 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 776 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 777 | log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 778 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 779 | diff $(srcdir)/result/regexp/$$name result.$$name` ; \ |
| 780 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 781 | rm result.$$name ; \ |
| 782 | fi ; fi ; done) |
| 783 | |
| 784 | Automatatests: testAutomata$(EXEEXT) |
| 785 | @(echo > .memdump) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 786 | @echo "## Automata regression tests" |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 787 | -@(for i in $(srcdir)/test/automata/* ; do \ |
| 788 | name=`basename $$i`; \ |
| 789 | if [ ! -d $$i ] ; then \ |
| 790 | if [ ! -f $(srcdir)/result/automata/$$name ] ; then \ |
| 791 | echo New test file $$name ; \ |
| 792 | $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 793 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 794 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 795 | log=`$(CHECKER) $(top_builddir)/testAutomata $$i 2>&1 > result.$$name ; \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 796 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 797 | diff $(srcdir)/result/automata/$$name result.$$name` ; \ |
| 798 | if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 799 | rm result.$$name ; \ |
| 800 | fi ; fi ; done) |
| 801 | |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 802 | $(srcdir)/dba100000.xml: dbgenattr.pl |
| 803 | @echo "## generating dba100000.xml" |
William M. Brack | 1826d0a | 2004-07-21 09:03:57 +0000 | [diff] [blame] | 804 | @($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > $(srcdir)/dba100000.xml) |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 805 | |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 806 | Timingtests: xmllint$(EXEEXT) $(srcdir)/dba100000.xml |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 807 | @echo "## Timing tests to try to detect performance" |
| 808 | @echo "## as well a memory usage breakage when streaming" |
Daniel Veillard | e96a2a4 | 2003-09-24 21:23:56 +0000 | [diff] [blame] | 809 | @echo "## 1/ using the file interface" |
| 810 | @echo "## 2/ using the memory interface" |
| 811 | @echo "## 3/ repeated DOM parsing" |
| 812 | @echo "## 4/ repeated DOM validation" |
Daniel Veillard | c74859e | 2004-02-26 09:57:32 +0000 | [diff] [blame] | 813 | -@($(top_builddir)/xmllint --stream --timing $(srcdir)/dba100000.xml; \ |
Daniel Veillard | d9e9c9d | 2003-09-18 22:03:46 +0000 | [diff] [blame] | 814 | MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ |
| 815 | if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 816 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 817 | exit 0) |
Daniel Veillard | c74859e | 2004-02-26 09:57:32 +0000 | [diff] [blame] | 818 | -@($(top_builddir)/xmllint --stream --timing --memory $(srcdir)/dba100000.xml; \ |
Daniel Veillard | d9e9c9d | 2003-09-18 22:03:46 +0000 | [diff] [blame] | 819 | MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ |
| 820 | if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 821 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 822 | exit 0) |
Daniel Veillard | c74859e | 2004-02-26 09:57:32 +0000 | [diff] [blame] | 823 | -@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \ |
Daniel Veillard | e96a2a4 | 2003-09-24 21:23:56 +0000 | [diff] [blame] | 824 | MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ |
| 825 | if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ |
| 826 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 827 | exit 0) |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 828 | |
| 829 | VTimingtests: xmllint$(EXEEXT) |
Daniel Veillard | c74859e | 2004-02-26 09:57:32 +0000 | [diff] [blame] | 830 | -@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \ |
Daniel Veillard | e96a2a4 | 2003-09-24 21:23:56 +0000 | [diff] [blame] | 831 | MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ |
| 832 | if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ |
| 833 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 834 | exit 0) |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 835 | |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 836 | C14Ntests : testC14N$(EXEEXT) |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 837 | @echo "## C14N and XPath regression tests" |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 838 | -@(for m in with-comments without-comments exc-without-comments ; do \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 839 | for i in $(srcdir)/test/c14n/$$m/*.xml ; do \ |
| 840 | if [ ! -d $$i ] ; then \ |
| 841 | name=`basename $$i .xml`; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 842 | cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \ |
Daniel Veillard | 6318673 | 2002-10-15 08:43:17 +0000 | [diff] [blame] | 843 | if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 844 | cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \ |
Daniel Veillard | 6318673 | 2002-10-15 08:43:17 +0000 | [diff] [blame] | 845 | if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 846 | cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \ |
| 847 | fi; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 848 | fi; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 849 | $$cmdline > $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 850 | if [ $$? -eq 0 ]; then \ |
Aleksey Sanin | c57f9c1 | 2002-05-31 19:14:57 +0000 | [diff] [blame] | 851 | diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 852 | if [ $$? -ne 0 ]; then \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 853 | echo "Test $$m/$$name failed"; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 854 | cat $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 855 | fi; \ |
| 856 | else \ |
| 857 | echo "C14N failed"; \ |
| 858 | fi; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 859 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 860 | fi; \ |
| 861 | rm -f $(srcdir)/test/c14n/test.tmp; \ |
| 862 | done; \ |
| 863 | done) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 864 | |
| 865 | Schemastests: testSchemas$(EXEEXT) |
| 866 | @(echo > .memdump) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 867 | @echo "## Schemas regression tests" |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 868 | -@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \ |
| 869 | name=`basename $$i | sed 's+_.*++'`; \ |
| 870 | sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \ |
| 871 | for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \ |
Daniel Veillard | 5add868 | 2003-03-10 13:13:58 +0000 | [diff] [blame] | 872 | if [ -f $$j ] ; then \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 873 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 874 | if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \ |
| 875 | then \ |
Daniel Veillard | 6231e84 | 2002-04-18 11:54:04 +0000 | [diff] [blame] | 876 | echo New test file "$$name"_"$$sno"_"$$xno" ; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 877 | $(CHECKER) $(top_builddir)/testSchemas $$i $$j \ |
| 878 | > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ |
| 879 | 2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 880 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 881 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 882 | log=`$(CHECKER) $(top_builddir)/testSchemas $$i $$j \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 883 | > res.$$name 2> err.$$name;\ |
| 884 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 885 | diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ |
| 886 | res.$$name;\ |
| 887 | diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \ |
| 888 | err.$$name;\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 889 | grep Unimplemented err.$$name`; \ |
| 890 | if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo $$log ; fi ; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 891 | rm res.$$name err.$$name ; \ |
Daniel Veillard | 5add868 | 2003-03-10 13:13:58 +0000 | [diff] [blame] | 892 | fi ; fi ;\ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 893 | done; done) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 894 | |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 895 | Relaxtests: xmllint$(EXEEXT) |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 896 | @(echo > .memdump) |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 897 | @echo "## Relax-NG regression tests" |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 898 | -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ |
| 899 | name=`basename $$i | sed 's+\.rng++'`; \ |
Daniel Veillard | 231d791 | 2003-02-09 14:22:17 +0000 | [diff] [blame] | 900 | if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \ |
| 901 | echo New schemas $$name ; \ |
| 902 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \ |
| 903 | > $(srcdir)/result/relaxng/"$$name"_valid \ |
| 904 | 2> $(srcdir)/result/relaxng/"$$name"_err; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 905 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 231d791 | 2003-02-09 14:22:17 +0000 | [diff] [blame] | 906 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 907 | log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \ |
Daniel Veillard | 231d791 | 2003-02-09 14:22:17 +0000 | [diff] [blame] | 908 | > res.$$name 2> err.$$name;\ |
| 909 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 910 | diff $(srcdir)/result/relaxng/"$$name"_valid \ |
| 911 | res.$$name;\ |
| 912 | diff $(srcdir)/result/relaxng/"$$name"_err \ |
| 913 | err.$$name | grep -v "error detected at";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 914 | grep Unimplemented err.$$name`; \ |
| 915 | if [ -n "$$log" ] ; then echo schemas $$name result ; echo $$log ; fi ; \ |
Daniel Veillard | 231d791 | 2003-02-09 14:22:17 +0000 | [diff] [blame] | 916 | rm res.$$name err.$$name ; \ |
| 917 | fi; \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 918 | for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ |
| 919 | if [ -f $$j ] ; then \ |
| 920 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 921 | if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ |
| 922 | then \ |
| 923 | echo New test file "$$name"_"$$xno" ; \ |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 924 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 925 | > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 926 | 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 927 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 928 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 929 | log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 930 | > res.$$name 2> err.$$name;\ |
| 931 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 932 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 933 | res.$$name;\ |
| 934 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ |
Daniel Veillard | d41f4f4 | 2003-01-29 21:07:52 +0000 | [diff] [blame] | 935 | err.$$name | grep -v "error detected at";\ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 936 | grep Unimplemented err.$$name`; \ |
| 937 | if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 938 | rm res.$$name err.$$name ; \ |
| 939 | fi ; fi ; \ |
| 940 | done; done) |
Daniel Veillard | f4e5576 | 2003-04-15 23:32:22 +0000 | [diff] [blame] | 941 | @echo "## Relax-NG streaming regression tests" |
Daniel Veillard | f4e5576 | 2003-04-15 23:32:22 +0000 | [diff] [blame] | 942 | -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ |
| 943 | name=`basename $$i | sed 's+\.rng++'`; \ |
| 944 | for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ |
| 945 | if [ -f $$j ] ; then \ |
| 946 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 947 | if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ |
| 948 | then \ |
| 949 | echo New test file "$$name"_"$$xno" ; \ |
| 950 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ |
| 951 | > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 952 | 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ |
Daniel Veillard | 07cb822 | 2003-09-10 10:51:05 +0000 | [diff] [blame] | 953 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | f4e5576 | 2003-04-15 23:32:22 +0000 | [diff] [blame] | 954 | else \ |
Daniel Veillard | 2b8c4a1 | 2003-10-02 22:28:19 +0000 | [diff] [blame] | 955 | log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \ |
Daniel Veillard | f4e5576 | 2003-04-15 23:32:22 +0000 | [diff] [blame] | 956 | > res.$$name 2> err.$$name;\ |
| 957 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | bb5abab | 2003-10-03 22:21:51 +0000 | [diff] [blame] | 958 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno" res.$$name;\ |
| 959 | if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" ] ; then \ |
| 960 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ |
| 961 | err.$$name | grep -v "error detected at";\ |
| 962 | fi ; grep Unimplemented err.$$name`; \ |
William M. Brack | a0c48ad | 2004-04-16 15:58:29 +0000 | [diff] [blame] | 963 | if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \ |
Daniel Veillard | f4e5576 | 2003-04-15 23:32:22 +0000 | [diff] [blame] | 964 | rm res.$$name err.$$name ; \ |
| 965 | fi ; fi ; \ |
| 966 | done; done) |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 967 | |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 968 | RelaxNGPythonTests: |
| 969 | @(if [ -x $(PYTHON) ] ; then \ |
Daniel Veillard | 6d38c75 | 2004-05-10 00:40:51 +0000 | [diff] [blame] | 970 | PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH ; \ |
William M. Brack | f580674 | 2004-03-31 02:01:32 +0000 | [diff] [blame] | 971 | export PYTHONPATH; \ |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 972 | echo "## Relax-NG Python based test suite 1" ; \ |
Daniel Veillard | 252004d | 2004-03-23 12:32:32 +0000 | [diff] [blame] | 973 | $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite.py ; \ |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 974 | echo "## Relax-NG Python based test suite 2" ; \ |
Daniel Veillard | 252004d | 2004-03-23 12:32:32 +0000 | [diff] [blame] | 975 | $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite2.py ; \ |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 976 | fi) |
| 977 | |
| 978 | SchemasPythonTests: |
| 979 | @(if [ -x $(PYTHON) ] ; then \ |
Daniel Veillard | 6d38c75 | 2004-05-10 00:40:51 +0000 | [diff] [blame] | 980 | PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \ |
William M. Brack | f580674 | 2004-03-31 02:01:32 +0000 | [diff] [blame] | 981 | export PYTHONPATH; \ |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 982 | echo "## XML Schemas datatypes Python based test suite" ; \ |
Daniel Veillard | f34a20e | 2004-08-31 08:42:17 +0000 | [diff] [blame] | 983 | echo "## It is normal to see 6 errors reported" ; \ |
Daniel Veillard | 252004d | 2004-03-23 12:32:32 +0000 | [diff] [blame] | 984 | $(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \ |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 985 | fi) |
Daniel Veillard | 522780e | 2004-09-24 12:14:55 +0000 | [diff] [blame] | 986 | @(if [ -x $(PYTHON) -a -d xstc ] ; then cd xstc ; $(MAKE) CHECKER="$(CHECKER)" MAKEFLAGS+=--silent pytests ; fi) |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 987 | |
Daniel Veillard | 1a79241 | 2003-11-18 23:52:38 +0000 | [diff] [blame] | 988 | cleanup: |
| 989 | -@(find . -name .\#\* -exec rm {} \;) |
| 990 | |
| 991 | dist-hook: cleanup libxml2.spec |
Daniel Veillard | 580ced8 | 2003-03-21 21:22:48 +0000 | [diff] [blame] | 992 | -cp libxml2.spec $(distdir) |
Daniel Veillard | d3b0882 | 2001-12-05 12:03:33 +0000 | [diff] [blame] | 993 | (cd $(srcdir) ; tar -cf - --exclude CVS win32 macos vms test result SAXresult ) | (cd $(distdir); tar xf -) |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 994 | |
Daniel Veillard | 0bff36d | 2004-08-31 09:37:03 +0000 | [diff] [blame] | 995 | dist-source: distdir |
| 996 | $(AMTAR) -chof - --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz |
| 997 | |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 998 | cleantar: |
Daniel Veillard | 55253e2 | 2002-02-18 14:32:39 +0000 | [diff] [blame] | 999 | @(rm -f libxml*.tar.gz COPYING.LIB) |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 1000 | |
Daniel Veillard | 1a79241 | 2003-11-18 23:52:38 +0000 | [diff] [blame] | 1001 | rpm: cleanup cleantar |
Daniel Veillard | 0bff36d | 2004-08-31 09:37:03 +0000 | [diff] [blame] | 1002 | @(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 1003 | |
| 1004 | ## We create xml2Conf.sh here and not from configure because we want |
| 1005 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 1006 | ## the value NONE in configure if the user doesn't specify them (this |
| 1007 | ## is an autoconf feature, not a bug). |
| 1008 | |
Daniel Veillard | 06d2524 | 2004-02-25 13:01:42 +0000 | [diff] [blame] | 1009 | xml2Conf.sh: xml2Conf.sh.in Makefile |
| 1010 | ## Use sed and then mv to avoid problems if the user interrupts. |
| 1011 | sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 1012 | -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 1013 | -e 's?\@VERSION\@?$(VERSION)?g' \ |
| 1014 | -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
| 1015 | < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \ |
| 1016 | && mv xml2Conf.tmp xml2Conf.sh |
| 1017 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 1018 | CLEANFILES=xml2Conf.sh |
| 1019 | |
| 1020 | confexecdir=$(libdir) |
| 1021 | confexec_DATA = xml2Conf.sh |
Daniel Veillard | 7a5e0dd | 2004-09-17 08:45:25 +0000 | [diff] [blame] | 1022 | CVS_EXTRA_DIST= |
Daniel Veillard | 580ced8 | 2003-03-21 21:22:48 +0000 | [diff] [blame] | 1023 | EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \ |
Daniel Veillard | 96f6fe9 | 2004-11-04 10:52:50 +0000 | [diff] [blame] | 1024 | libxml.m4 Copyright check-xml-test-suite.py gentest.py \ |
Daniel Veillard | 252004d | 2004-03-23 12:32:32 +0000 | [diff] [blame] | 1025 | check-relaxng-test-suite.py check-relaxng-test-suite2.py \ |
| 1026 | check-xsddata-test-suite.py check-xinclude-test-suite.py \ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 1027 | example/Makefile.am example/gjobread.c example/gjobs.xml \ |
AEST 2003 Malcolm Tredinnick | 0643112 | 2003-09-30 02:36:08 +0000 | [diff] [blame] | 1028 | $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \ |
Bjorn Reese | 026d29f | 2002-01-19 15:40:18 +0000 | [diff] [blame] | 1029 | trionan.c trionan.h triostr.c triostr.h trio.c trio.h \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 1030 | triop.h triodef.h libxml.h elfgcchack.h \ |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 1031 | testThreadsWin32.c genUnicode.py TODO_SCHEMAS \ |
Daniel Veillard | dab93ea | 2004-08-20 16:47:10 +0000 | [diff] [blame] | 1032 | dbgen.pl dbgenattr.pl regressions.py regressions.xml \ |
| 1033 | $(CVS_EXTRA_DIST) |
Daniel Veillard | f6bc7c2 | 2003-09-17 22:33:22 +0000 | [diff] [blame] | 1034 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 1035 | |
| 1036 | pkgconfigdir = $(libdir)/pkgconfig |
| 1037 | pkgconfig_DATA = libxml-2.0.pc |
| 1038 | |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 1039 | # |
William M. Brack | f20fbf7 | 2004-06-25 05:49:08 +0000 | [diff] [blame] | 1040 | # Install the tests program sources as examples |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 1041 | # |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 1042 | BASE_DIR=$(datadir)/doc |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 1043 | DOC_MODULE=libxml2-$(VERSION) |
| 1044 | EXAMPLES_DIR=$(BASE_DIR)/$(DOC_MODULE)/examples |
| 1045 | |
| 1046 | install-data-local: |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 1047 | $(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
| 1048 | -@INSTALL@ -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 1049 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR) |
| 1050 | -@INSTALL@ -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR) |
| 1051 | -@INSTALL@ -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR) |
| 1052 | -@INSTALL@ -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR) |
| 1053 | -@INSTALL@ -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR) |
Daniel Veillard | da3b29a | 2004-08-14 11:15:13 +0000 | [diff] [blame] | 1054 | |
| 1055 | tst: tst.c |
| 1056 | $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz |