Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 2 | # AUTOMAKE_ OPTIONS=no-dependencies |
Daniel Veillard | 7704473 | 2001-06-29 21:31:07 +0000 | [diff] [blame] | 3 | |
Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 4 | SUBDIRS = include . doc example @PYTHON_SUBDIR@ |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 5 | |
Daniel Veillard | 7233615 | 2002-09-21 13:08:14 +0000 | [diff] [blame] | 6 | DIST_SUBDIRS = include . doc example python |
| 7 | |
Daniel Veillard | 91ad879 | 2002-11-04 17:06:52 +0000 | [diff] [blame] | 8 | INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 9 | |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 10 | noinst_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \ |
| 11 | testDocbook testThreads testC14N testAutomata testRegexp \ |
| 12 | testReader |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 13 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 14 | bin_PROGRAMS = xmllint xmlcatalog |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 15 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 16 | bin_SCRIPTS=xml2-config |
| 17 | |
| 18 | lib_LTLIBRARIES = libxml2.la |
Daniel Veillard | fdc9156 | 2002-07-01 21:52:03 +0000 | [diff] [blame] | 19 | libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 20 | |
| 21 | libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 22 | |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 23 | if WITH_TRIO_SOURCES |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 24 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 25 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 26 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 27 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 28 | catalog.c globals.c threads.c c14n.c \ |
Daniel Veillard | 49d5af8 | 2002-05-23 11:55:49 +0000 | [diff] [blame] | 29 | xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 30 | triostr.c trio.c xmlreader.c relaxng.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 \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 36 | catalog.c globals.c threads.c c14n.c \ |
Daniel Veillard | e1ca503 | 2002-12-09 14:13:43 +0000 | [diff] [blame] | 37 | xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 38 | xmlreader.c relaxng.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 39 | endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 40 | |
| 41 | DEPS = $(top_builddir)/libxml2.la |
Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 42 | LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 43 | |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 44 | man_MANS = xml2-config.1 libxml.3 |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 45 | |
| 46 | m4datadir = $(datadir)/aclocal |
| 47 | m4data_DATA = libxml.m4 |
| 48 | |
| 49 | xmllint_SOURCES=xmllint.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 50 | xmllint_LDFLAGS = |
| 51 | xmllint_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 52 | xmllint_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 53 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 54 | testSAX_SOURCES=testSAX.c |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 55 | testSAX_LDFLAGS = |
| 56 | testSAX_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 57 | testSAX_LDADD= $(LDADDS) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 58 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 59 | testHTML_SOURCES=testHTML.c |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 60 | testHTML_LDFLAGS = |
| 61 | testHTML_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 62 | testHTML_LDADD= $(LDADDS) |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 63 | |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 64 | testDocbook_SOURCES=testDocbook.c |
| 65 | testDocbook_LDFLAGS = |
| 66 | testDocbook_DEPENDENCIES = $(DEPS) |
| 67 | testDocbook_LDADD= $(LDADDS) |
| 68 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 69 | xmlcatalog_SOURCES=xmlcatalog.c |
| 70 | xmlcatalog_LDFLAGS = |
| 71 | xmlcatalog_DEPENDENCIES = $(DEPS) |
Daniel Veillard | 03f848d | 2001-11-07 12:53:46 +0000 | [diff] [blame] | 72 | xmlcatalog_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 73 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 74 | testXPath_SOURCES=testXPath.c |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 75 | testXPath_LDFLAGS = |
| 76 | testXPath_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 77 | testXPath_LDADD= $(LDADDS) |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 78 | |
Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 79 | testC14N_SOURCES=testC14N.c |
| 80 | testC14N_LDFLAGS = |
| 81 | testC14N_DEPENDENCIES = $(DEPS) |
| 82 | testC14N_LDADD= $(LDADDS) |
| 83 | |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 84 | testThreads_SOURCES=testThreads.c |
| 85 | testThreads_LDFLAGS = |
| 86 | testThreads_DEPENDENCIES = $(DEPS) |
| 87 | testThreads_LDADD= $(LDADDS) |
| 88 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 89 | testURI_SOURCES=testURI.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 90 | testURI_LDFLAGS = |
| 91 | testURI_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 92 | testURI_LDADD= $(LDADDS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 93 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 94 | testRegexp_SOURCES=testRegexp.c |
| 95 | testRegexp_LDFLAGS = |
| 96 | testRegexp_DEPENDENCIES = $(DEPS) |
| 97 | testRegexp_LDADD= $(LDADDS) |
| 98 | |
| 99 | testAutomata_SOURCES=testAutomata.c |
| 100 | testAutomata_LDFLAGS = |
| 101 | testAutomata_DEPENDENCIES = $(DEPS) |
| 102 | testAutomata_LDADD= $(LDADDS) |
| 103 | |
| 104 | testSchemas_SOURCES=testSchemas.c |
| 105 | testSchemas_LDFLAGS = |
| 106 | testSchemas_DEPENDENCIES = $(DEPS) |
| 107 | testSchemas_LDADD= $(LDADDS) |
| 108 | |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 109 | testRelax_SOURCES=testRelax.c |
| 110 | testRelax_LDFLAGS = |
| 111 | testRelax_DEPENDENCIES = $(DEPS) |
| 112 | testRelax_LDADD= $(LDADDS) |
| 113 | |
Daniel Veillard | e1ca503 | 2002-12-09 14:13:43 +0000 | [diff] [blame] | 114 | testReader_SOURCES=testReader.c |
| 115 | testReader_LDFLAGS = |
| 116 | testReader_DEPENDENCIES = $(DEPS) |
| 117 | testReader_LDADD= $(LDADDS) |
| 118 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 119 | check-local: tests |
| 120 | |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 121 | testall : tests SVGtests SAXtests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 122 | |
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 123 | tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests C14Ntests Scripttests Catatests @TEST_REGEXPS@ @TEST_SCHEMAS@ @TEST_THREADS@ |
Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 124 | @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) tests ; fi) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 125 | |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 126 | valgrind: |
| 127 | @echo '## Running the regression tests under Valgrind' |
| 128 | @echo '## Go get a cup of coffee it is gonna take a while ...' |
| 129 | $(MAKE) CHECKER='valgrind -q' tests |
| 130 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 131 | HTMLtests : testHTML$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 132 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 133 | @echo "##" |
| 134 | @echo "## HTML regression tests" |
| 135 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 136 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 137 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 138 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 139 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 140 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 141 | $(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] | 142 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 143 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 144 | $(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 145 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 146 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 147 | diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 148 | $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 149 | diff result.$$name result2.$$name ; \ |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 150 | rm result.$$name result2.$$name error.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 151 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 152 | @echo "##" |
| 153 | @echo "## Push HTML regression tests" |
| 154 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 155 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 156 | name=`basename $$i`; \ |
| 157 | if [ ! -d $$i ] ; then \ |
| 158 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 159 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 160 | $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 161 | else \ |
| 162 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 163 | $(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 164 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 165 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
| 166 | cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ |
| 167 | cut -b 1-15 error.$$name > errorcut2.$$name; \ |
| 168 | diff -b errorcut.$$name errorcut2.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 169 | $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 170 | diff result.$$name result2.$$name ; \ |
| 171 | rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ |
| 172 | fi ; fi ; done) |
| 173 | @echo "##" |
| 174 | @echo "## HTML SAX regression tests" |
| 175 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 176 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 177 | name=`basename $$i`; \ |
| 178 | if [ ! -d $$i ] ; then \ |
| 179 | if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ |
| 180 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 181 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 182 | else \ |
| 183 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 184 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 185 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 186 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 187 | rm result.$$name.sax ; \ |
| 188 | fi ; fi ; done) |
| 189 | @echo "##" |
| 190 | @echo "## Push HTML SAX regression tests" |
| 191 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 192 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 193 | name=`basename $$i`; \ |
| 194 | if [ ! -d $$i ] ; then \ |
| 195 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 196 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 197 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 198 | else \ |
| 199 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 200 | $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 201 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 202 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 203 | rm result.$$name.sax ; \ |
| 204 | fi ; fi ; done) |
| 205 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 206 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 207 | XMLtests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 208 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 209 | @echo "##" |
| 210 | @echo "## XML regression tests" |
| 211 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 212 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 213 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 214 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 215 | name=`basename $$i`; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 216 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 217 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 218 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 219 | $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 220 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 221 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 222 | $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 223 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 224 | $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 225 | diff result.$$name result2.$$name ; \ |
| 226 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 227 | fi ; fi ; done) |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 228 | @(echo > .memdump) |
| 229 | @echo "##" |
| 230 | @echo "## XML push regression tests" |
| 231 | @echo "##" |
| 232 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 233 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 234 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 235 | name=`basename $$i`; \ |
| 236 | if [ ! -d $$i ] ; then \ |
| 237 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 238 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 239 | $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 240 | else \ |
| 241 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 242 | $(CHECKER) $(top_builddir)/xmllint --push $$i > result.$$name ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 243 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 244 | $(CHECKER) $(top_builddir)/xmllint --push result.$$name > result2.$$name ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 245 | diff result.$$name result2.$$name ; \ |
| 246 | rm result.$$name result2.$$name ; \ |
| 247 | fi ; fi ; done) |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 248 | @echo "##" |
| 249 | @echo "## XML regression tests on memory" |
| 250 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 251 | @echo "## You should see two warnings on entity 'title.xml' for ent2" |
| 252 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 253 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 254 | name=`basename $$i`; \ |
| 255 | if [ ! -d $$i ] ; then \ |
| 256 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 257 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 258 | $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 259 | else \ |
| 260 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 261 | $(CHECKER) $(top_builddir)/xmllint --memory $$i > result.$$name ; \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 262 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 263 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 264 | $(CHECKER) $(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 265 | diff result.$$name result2.$$name ; \ |
| 266 | rm result.$$name result2.$$name ; \ |
| 267 | fi ; fi ; done) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 268 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 269 | Docbtests : xmllint$(EXEEXT) |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 270 | @(echo > .memdump) |
| 271 | @echo "##" |
| 272 | @echo "## SGML DocBook regression tests" |
| 273 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 274 | -@(for i in $(srcdir)/test/DocBook/*.sgm ; do \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 275 | name=`basename $$i .sgm`; \ |
| 276 | if [ ! -d $$i ] ; then \ |
| 277 | if [ ! -f $(srcdir)/result/DocBook/$$name.xml ] ; then \ |
| 278 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 279 | $(CHECKER) $(top_builddir)/xmllint --sgml $$i > $(srcdir)/result/DocBook/$$name.xml ; \ |
| 280 | $(CHECKER) $(top_builddir)/xmllint --valid --noout $(srcdir)/result/DocBook/$$name.xml ; \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 281 | else \ |
| 282 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 283 | $(CHECKER) $(top_builddir)/xmllint --sgml $$i > result.$$name ; \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 284 | diff $(srcdir)/result/DocBook/$$name.xml result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 285 | $(CHECKER) $(top_builddir)/xmllint --valid --noout result.$$name ; \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 286 | rm result.$$name ; \ |
| 287 | fi ; fi ; done) |
| 288 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 289 | XMLenttests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 290 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 291 | @echo "##" |
| 292 | @echo "## XML entity subst regression tests" |
| 293 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 294 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 295 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 296 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 297 | if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ |
| 298 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 299 | $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 300 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 301 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 302 | $(CHECKER) $(top_builddir)/xmllint --noent $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 303 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 304 | $(CHECKER) $(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 305 | diff result.$$name result2.$$name ; \ |
| 306 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 307 | fi ; fi ; done) |
| 308 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 309 | URItests : testURI$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 310 | @(echo > .memdump) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 311 | @echo "##" |
| 312 | @echo "## URI module regression tests" |
| 313 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 314 | -@(for i in $(srcdir)/test/URI/*.data ; do \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 315 | name=`basename $$i`; \ |
| 316 | if [ ! -d $$i ] ; then \ |
| 317 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 318 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 319 | $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 320 | else \ |
| 321 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 322 | $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > result.$$name ; \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 323 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 324 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 325 | rm result.$$name ; \ |
| 326 | fi ; fi ; done) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 327 | -@(for i in $(srcdir)/test/URI/*.uri ; do \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 328 | name=`basename $$i`; \ |
| 329 | if [ ! -d $$i ] ; then \ |
| 330 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 331 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 332 | $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 333 | else \ |
| 334 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 335 | $(CHECKER) $(top_builddir)/testURI < $$i > result.$$name ; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 336 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 337 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 338 | rm result.$$name ; \ |
| 339 | fi ; fi ; done) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 340 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 341 | XPathtests : testXPath$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 342 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 343 | @echo "##" |
| 344 | @echo "## XPath regression tests" |
| 345 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 346 | -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 347 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 348 | for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 349 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 350 | if [ ! -d $$i ] ; then \ |
| 351 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 352 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 353 | $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 354 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 355 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 356 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 357 | $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 358 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 359 | diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ |
| 360 | rm result.$$name ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 361 | fi ; fi ; done ; \ |
| 362 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 363 | if [ ! -d $$i ] ; then \ |
| 364 | doc=`basename $$i`; \ |
| 365 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 366 | if [ ! -f $$j ] ; then continue ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 367 | name=`basename $$j`; \ |
| 368 | if [ ! -d $$j ] ; then \ |
| 369 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 370 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 371 | $(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] | 372 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 373 | else \ |
| 374 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 375 | $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 376 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 377 | diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ |
| 378 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 379 | fi ; fi ; done ; fi ; done) |
| 380 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 381 | XPtrtests : testXPath$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 382 | @(echo > .memdump) |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 383 | @echo "##" |
| 384 | @echo "## XPointer regression tests" |
| 385 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 386 | -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 387 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 388 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 389 | if [ ! -d $$i ] ; then \ |
| 390 | doc=`basename $$i`; \ |
| 391 | for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ |
| 392 | if [ ! -f $$j ] ; then continue ; fi ; \ |
| 393 | name=`basename $$j`; \ |
| 394 | if [ ! -d $$j ] ; then \ |
| 395 | if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ |
| 396 | echo New test file $$name ; \ |
| 397 | ./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ |
| 398 | else \ |
| 399 | echo Testing $$name ; \ |
| 400 | ./testXPath -xptr -f -i $$i $$j > result.$$name ; \ |
| 401 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 402 | diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \ |
| 403 | rm result.$$name ; \ |
| 404 | fi ; fi ; done ; fi ; done) |
| 405 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 406 | XIncludetests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 407 | @(echo > .memdump) |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 408 | @echo "##" |
| 409 | @echo "## XInclude regression tests" |
| 410 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 411 | -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 412 | name=`basename $$i`; \ |
| 413 | if [ ! -d $$i ] ; then \ |
| 414 | if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ |
| 415 | echo New test file $$name ; \ |
Daniel Veillard | e3b7d9a | 2002-08-14 14:11:30 +0000 | [diff] [blame] | 416 | $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 417 | else \ |
| 418 | echo Testing $$name ; \ |
Daniel Veillard | e3b7d9a | 2002-08-14 14:11:30 +0000 | [diff] [blame] | 419 | $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name ; \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 420 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 421 | diff $(srcdir)/result/XInclude/$$name result.$$name ; \ |
| 422 | rm result.$$name ; \ |
| 423 | fi ; fi ; done) |
| 424 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 425 | Scripttests : xmllint$(EXEEXT) |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 426 | @(echo > .memdump) |
| 427 | @echo "##" |
| 428 | @echo "## Scripts regression tests" |
| 429 | @echo "## Some of the base computations may be different if srcdir != ." |
| 430 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 431 | -@(for i in $(srcdir)/test/scripts/*.script ; do \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 432 | name=`basename $$i .script`; \ |
| 433 | xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \ |
| 434 | if [ -f $$xml ] ; then \ |
| 435 | if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \ |
| 436 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 437 | $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name ; \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 438 | else \ |
| 439 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 440 | $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name ; \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 441 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 442 | diff $(srcdir)/result/scripts/$$name result.$$name ; \ |
| 443 | rm result.$$name ; \ |
| 444 | fi ; fi ; done) |
| 445 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 446 | Catatests : xmlcatalog$(EXEEXT) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 447 | @(echo > .memdump) |
| 448 | @echo "##" |
| 449 | @echo "## Catalog regression tests" |
| 450 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 451 | -@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 452 | name=`basename $$i .script`; \ |
| 453 | xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \ |
| 454 | if [ -f $$xml ] ; then \ |
| 455 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 456 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 457 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i > $(srcdir)/result/catalogs/$$name ; \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 458 | else \ |
| 459 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 460 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i > result.$$name ; \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 461 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 462 | diff $(srcdir)/result/catalogs/$$name result.$$name ; \ |
| 463 | rm result.$$name ; \ |
| 464 | fi ; fi ; done) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 465 | -@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 466 | name=`basename $$i .script`; \ |
| 467 | sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \ |
| 468 | if [ -f $$sgml ] ; then \ |
| 469 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 470 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 471 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 472 | else \ |
| 473 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 474 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 475 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 476 | diff $(srcdir)/result/catalogs/$$name result.$$name ; \ |
| 477 | rm result.$$name ; \ |
| 478 | fi ; fi ; done) |
| 479 | @echo "Add and del operations on XML Catalogs" |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 480 | -@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 481 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 482 | $(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] | 483 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 484 | $(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] | 485 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 486 | $(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] | 487 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 488 | diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 489 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 490 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 491 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 492 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 493 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 494 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 495 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 496 | diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 497 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 66651aa | 2002-11-15 11:21:43 +0000 | [diff] [blame] | 498 | rm -f $(srcdir)/result/catalogs/mycatalog) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 499 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 500 | SVGtests : xmllint$(EXEEXT) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 501 | @echo "##" |
| 502 | @echo "## SVG parsing regression tests" |
| 503 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 504 | -@(for i in $(srcdir)/test/SVG/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 505 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 506 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 507 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 508 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 509 | $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 510 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 511 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 512 | $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 513 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 514 | $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 515 | diff result.$$name result2.$$name ; \ |
| 516 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 517 | fi ; fi ; done) |
| 518 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 519 | Threadtests : testThreads$(EXEEXT) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 520 | @echo "##" |
| 521 | @echo "## Threaded regression tests" |
| 522 | @echo "##" |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 523 | $(CHECKER) $(top_builddir)/testThreads |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 524 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 525 | SAXtests : testSAX$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 526 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 527 | @echo "##" |
| 528 | @echo "## SAX callbacks regression tests" |
| 529 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 530 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 531 | name=`basename $$i`; \ |
| 532 | if [ ! -d $$i ] ; then \ |
| 533 | if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ |
| 534 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 535 | $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 536 | else \ |
| 537 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 538 | $(CHECKER) $(top_builddir)/testSAX $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 539 | diff $(srcdir)/SAXresult/$$name result.$$name ; \ |
| 540 | rm result.$$name ; \ |
| 541 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 542 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 543 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 544 | Validtests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 545 | @(echo > .memdump) |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 546 | @echo "##" |
| 547 | @echo "## Valid documents regression tests" |
| 548 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 549 | -@(for i in $(srcdir)/test/VCM/* ; do \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 550 | name=`basename $$i`; \ |
| 551 | if [ ! -d $$i ] ; then \ |
| 552 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 553 | $(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 554 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 555 | fi ; done ; exit 0) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 556 | @echo "##" |
| 557 | @echo "## Validity checking regression tests" |
| 558 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 559 | -@(for i in $(srcdir)/test/VC/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 560 | name=`basename $$i`; \ |
| 561 | if [ ! -d $$i ] ; then \ |
| 562 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 563 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 564 | $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 565 | else \ |
| 566 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 567 | $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 568 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 569 | diff $(srcdir)/result/VC/$$name result.$$name ; \ |
| 570 | rm result.$$name ; \ |
| 571 | fi ; fi ; done) |
| 572 | @echo "##" |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 573 | @echo "## General documents valid regression tests" |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 574 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 575 | -@(for i in $(srcdir)/test/valid/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 576 | name=`basename $$i`; \ |
| 577 | if [ ! -d $$i ] ; then \ |
| 578 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 579 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 580 | $(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 581 | else \ |
| 582 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 583 | $(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 584 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 585 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 586 | diff $(srcdir)/result/valid/$$name.err error.$$name ; \ |
| 587 | rm result.$$name error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 588 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 589 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 590 | Regexptests: testRegexp$(EXEEXT) |
| 591 | @(echo > .memdump) |
| 592 | @echo "##" |
| 593 | @echo "## Regexp regression tests" |
| 594 | @echo "##" |
| 595 | -@(for i in $(srcdir)/test/regexp/* ; do \ |
| 596 | name=`basename $$i`; \ |
| 597 | if [ ! -d $$i ] ; then \ |
| 598 | if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \ |
| 599 | echo New test file $$name ; \ |
| 600 | $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \ |
| 601 | else \ |
| 602 | echo Testing $$name ; \ |
| 603 | $(CHECKER) $(top_builddir)/testRegexp -i $$i > result.$$name ; \ |
| 604 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 605 | diff $(srcdir)/result/regexp/$$name result.$$name ; \ |
| 606 | rm result.$$name ; \ |
| 607 | fi ; fi ; done) |
| 608 | |
| 609 | Automatatests: testAutomata$(EXEEXT) |
| 610 | @(echo > .memdump) |
| 611 | @echo "##" |
| 612 | @echo "## Automata regression tests" |
| 613 | @echo "##" |
| 614 | -@(for i in $(srcdir)/test/automata/* ; do \ |
| 615 | name=`basename $$i`; \ |
| 616 | if [ ! -d $$i ] ; then \ |
| 617 | if [ ! -f $(srcdir)/result/automata/$$name ] ; then \ |
| 618 | echo New test file $$name ; \ |
| 619 | $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \ |
| 620 | else \ |
| 621 | echo Testing $$name ; \ |
| 622 | $(CHECKER) $(top_builddir)/testAutomata $$i > result.$$name ; \ |
| 623 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 624 | diff $(srcdir)/result/automata/$$name result.$$name ; \ |
| 625 | rm result.$$name ; \ |
| 626 | fi ; fi ; done) |
| 627 | |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 628 | C14Ntests : testC14N$(EXEEXT) |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 629 | @echo "##" |
| 630 | @echo "## C14N and XPath regression tests" |
| 631 | @echo "##" |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 632 | -@(for m in with-comments without-comments exc-without-comments ; do \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 633 | for i in $(srcdir)/test/c14n/$$m/*.xml ; do \ |
| 634 | if [ ! -d $$i ] ; then \ |
| 635 | name=`basename $$i .xml`; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 636 | echo Testing $$m/$$name; \ |
| 637 | cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \ |
Daniel Veillard | 6318673 | 2002-10-15 08:43:17 +0000 | [diff] [blame] | 638 | if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 639 | cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \ |
Daniel Veillard | 6318673 | 2002-10-15 08:43:17 +0000 | [diff] [blame] | 640 | if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 641 | cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \ |
| 642 | fi; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 643 | fi; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 644 | $$cmdline > $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 645 | if [ $$? -eq 0 ]; then \ |
Aleksey Sanin | c57f9c1 | 2002-05-31 19:14:57 +0000 | [diff] [blame] | 646 | diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 647 | if [ $$? -ne 0 ]; then \ |
| 648 | echo "Test failed"; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 649 | cat $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 650 | fi; \ |
| 651 | else \ |
| 652 | echo "C14N failed"; \ |
| 653 | fi; \ |
| 654 | fi; \ |
| 655 | rm -f $(srcdir)/test/c14n/test.tmp; \ |
| 656 | done; \ |
| 657 | done) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 658 | |
| 659 | Schemastests: testSchemas$(EXEEXT) |
| 660 | @(echo > .memdump) |
| 661 | @echo "##" |
| 662 | @echo "## Schemas regression tests" |
| 663 | @echo "##" |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 664 | -@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \ |
| 665 | name=`basename $$i | sed 's+_.*++'`; \ |
| 666 | sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \ |
| 667 | for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \ |
Daniel Veillard | 5add868 | 2003-03-10 13:13:58 +0000 | [diff] [blame] | 668 | if [ -f $$j ] ; then \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 669 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 670 | if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \ |
| 671 | then \ |
Daniel Veillard | 6231e84 | 2002-04-18 11:54:04 +0000 | [diff] [blame] | 672 | echo New test file "$$name"_"$$sno"_"$$xno" ; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 673 | $(CHECKER) $(top_builddir)/testSchemas $$i $$j \ |
| 674 | > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ |
| 675 | 2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \ |
| 676 | else \ |
Daniel Veillard | 6231e84 | 2002-04-18 11:54:04 +0000 | [diff] [blame] | 677 | echo Testing "$$name"_"$$sno"_"$$xno" ; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 678 | $(CHECKER) $(top_builddir)/testSchemas $$i $$j \ |
| 679 | > res.$$name 2> err.$$name;\ |
| 680 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 681 | diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ |
| 682 | res.$$name;\ |
| 683 | diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \ |
| 684 | err.$$name;\ |
Daniel Veillard | 88c5891 | 2002-04-23 07:12:20 +0000 | [diff] [blame] | 685 | grep Unimplemented err.$$name; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 686 | rm res.$$name err.$$name ; \ |
Daniel Veillard | 5add868 | 2003-03-10 13:13:58 +0000 | [diff] [blame] | 687 | fi ; fi ;\ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 688 | done; done) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 689 | |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 690 | Relaxtests: xmllint$(EXEEXT) |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 691 | @(echo > .memdump) |
| 692 | @echo "##" |
| 693 | @echo "## Relax-NG regression tests" |
| 694 | @echo "##" |
| 695 | -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ |
| 696 | name=`basename $$i | sed 's+\.rng++'`; \ |
Daniel Veillard | 231d791 | 2003-02-09 14:22:17 +0000 | [diff] [blame] | 697 | if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \ |
| 698 | echo New schemas $$name ; \ |
| 699 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \ |
| 700 | > $(srcdir)/result/relaxng/"$$name"_valid \ |
| 701 | 2> $(srcdir)/result/relaxng/"$$name"_err; \ |
| 702 | else \ |
| 703 | echo Checking schemas $$name ; \ |
| 704 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \ |
| 705 | > res.$$name 2> err.$$name;\ |
| 706 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 707 | diff $(srcdir)/result/relaxng/"$$name"_valid \ |
| 708 | res.$$name;\ |
| 709 | diff $(srcdir)/result/relaxng/"$$name"_err \ |
| 710 | err.$$name | grep -v "error detected at";\ |
| 711 | grep Unimplemented err.$$name; \ |
| 712 | rm res.$$name err.$$name ; \ |
| 713 | fi; \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 714 | for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ |
| 715 | if [ -f $$j ] ; then \ |
| 716 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 717 | if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ |
| 718 | then \ |
| 719 | echo New test file "$$name"_"$$xno" ; \ |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 720 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 721 | > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 722 | 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ |
| 723 | else \ |
| 724 | echo Testing "$$name"_"$$xno" ; \ |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 725 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 726 | > res.$$name 2> err.$$name;\ |
| 727 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 728 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 729 | res.$$name;\ |
| 730 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ |
Daniel Veillard | d41f4f4 | 2003-01-29 21:07:52 +0000 | [diff] [blame] | 731 | err.$$name | grep -v "error detected at";\ |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 732 | grep Unimplemented err.$$name; \ |
| 733 | rm res.$$name err.$$name ; \ |
| 734 | fi ; fi ; \ |
| 735 | done; done) |
Daniel Veillard | f4e5576 | 2003-04-15 23:32:22 +0000 | [diff] [blame] | 736 | @echo "##" |
| 737 | @echo "## Relax-NG streaming regression tests" |
| 738 | @echo "##" |
| 739 | -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ |
| 740 | name=`basename $$i | sed 's+\.rng++'`; \ |
| 741 | for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ |
| 742 | if [ -f $$j ] ; then \ |
| 743 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 744 | if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ |
| 745 | then \ |
| 746 | echo New test file "$$name"_"$$xno" ; \ |
| 747 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ |
| 748 | > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 749 | 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ |
| 750 | else \ |
| 751 | echo Testing "$$name"_"$$xno" ; \ |
| 752 | $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \ |
| 753 | > res.$$name 2> err.$$name;\ |
| 754 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 755 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \ |
| 756 | res.$$name;\ |
| 757 | diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ |
| 758 | err.$$name | grep -v "error detected at";\ |
| 759 | grep Unimplemented err.$$name; \ |
| 760 | rm res.$$name err.$$name ; \ |
| 761 | fi ; fi ; \ |
| 762 | done; done) |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 763 | |
Daniel Veillard | 580ced8 | 2003-03-21 21:22:48 +0000 | [diff] [blame] | 764 | dist-hook: libxml2.spec |
| 765 | -cp libxml2.spec $(distdir) |
Daniel Veillard | d3b0882 | 2001-12-05 12:03:33 +0000 | [diff] [blame] | 766 | (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] | 767 | |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 768 | cleantar: |
Daniel Veillard | 55253e2 | 2002-02-18 14:32:39 +0000 | [diff] [blame] | 769 | @(rm -f libxml*.tar.gz COPYING.LIB) |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 770 | |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 771 | rpm: cleantar |
Daniel Veillard | 6318673 | 2002-10-15 08:43:17 +0000 | [diff] [blame] | 772 | @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 773 | |
| 774 | ## We create xml2Conf.sh here and not from configure because we want |
| 775 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 776 | ## the value NONE in configure if the user doesn't specify them (this |
| 777 | ## is an autoconf feature, not a bug). |
| 778 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 779 | CLEANFILES=xml2Conf.sh |
| 780 | |
| 781 | confexecdir=$(libdir) |
| 782 | confexec_DATA = xml2Conf.sh |
Daniel Veillard | 580ced8 | 2003-03-21 21:22:48 +0000 | [diff] [blame] | 783 | EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \ |
Daniel Veillard | 55253e2 | 2002-02-18 14:32:39 +0000 | [diff] [blame] | 784 | libxml.m4 Copyright check-xml-test-suite.py \ |
Daniel Veillard | 869fb32 | 2003-02-10 16:24:45 +0000 | [diff] [blame] | 785 | check-relaxng-test-suite.py check-xinclude-test-suite.py \ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 786 | example/Makefile.am example/gjobread.c example/gjobs.xml \ |
Daniel Veillard | 07385fd | 2001-06-23 21:55:48 +0000 | [diff] [blame] | 787 | $(man_MANS) libxml-2.0.pc.in \ |
Bjorn Reese | 026d29f | 2002-01-19 15:40:18 +0000 | [diff] [blame] | 788 | trionan.c trionan.h triostr.c triostr.h trio.c trio.h \ |
Daniel Veillard | db0eb8d | 2002-01-13 13:35:00 +0000 | [diff] [blame] | 789 | triop.h triodef.h libxml.h \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 790 | testThreadsWin32.c genUnicode.py TODO_SCHEMAS |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 791 | |
| 792 | pkgconfigdir = $(libdir)/pkgconfig |
| 793 | pkgconfig_DATA = libxml-2.0.pc |
| 794 | |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 795 | # |
| 796 | # Instll the tests program sources as examples |
| 797 | # |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 798 | BASE_DIR=$(datadir)/doc |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 799 | DOC_MODULE=libxml2-$(VERSION) |
| 800 | EXAMPLES_DIR=$(BASE_DIR)/$(DOC_MODULE)/examples |
| 801 | |
| 802 | install-data-local: |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 803 | $(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
| 804 | -@INSTALL@ -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 805 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR) |
| 806 | -@INSTALL@ -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR) |
| 807 | -@INSTALL@ -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR) |
| 808 | -@INSTALL@ -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR) |
| 809 | -@INSTALL@ -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR) |