Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
| 2 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 3 | SUBDIRS = . include doc example |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 4 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 5 | INCLUDES = -I@srcdir@/include -I./include @Z_CFLAGS@ @CORBA_CFLAGS@ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 6 | |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 7 | noinst_PROGRAMS=testSAX testHTML testXPath testURI testDocbook testCatalog |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 8 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 9 | bin_PROGRAMS = xmllint |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 10 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 11 | bin_SCRIPTS=xml2-config |
| 12 | |
| 13 | lib_LTLIBRARIES = libxml2.la |
Daniel Veillard | 6c83120 | 2001-03-07 15:57:53 +0000 | [diff] [blame] | 14 | libxml2_la_LIBADD = @Z_LIBS@ -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 15 | |
| 16 | libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 17 | |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 18 | if WITH_TRIO_SOURCES |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 19 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 20 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 21 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 22 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 23 | catalog.c strio.c trio.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 24 | |
| 25 | else |
| 26 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 27 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 28 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 29 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
| 30 | catalog.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 31 | |
| 32 | endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 33 | |
| 34 | DEPS = $(top_builddir)/libxml2.la |
Bjorn Reese | e1dc011 | 2001-03-03 12:09:03 +0000 | [diff] [blame] | 35 | LDADDS = $(top_builddir)/libxml2.la @Z_LIBS@ -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 36 | |
| 37 | man_MANS = xmllint.1 xml2-config.1 libxml.4 |
| 38 | |
| 39 | m4datadir = $(datadir)/aclocal |
| 40 | m4data_DATA = libxml.m4 |
| 41 | |
| 42 | xmllint_SOURCES=xmllint.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 43 | xmllint_LDFLAGS = |
| 44 | xmllint_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 45 | xmllint_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 46 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 47 | testSAX_SOURCES=testSAX.c |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 48 | testSAX_LDFLAGS = |
| 49 | testSAX_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 50 | testSAX_LDADD= $(LDADDS) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 51 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 52 | testHTML_SOURCES=testHTML.c |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 53 | testHTML_LDFLAGS = |
| 54 | testHTML_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 55 | testHTML_LDADD= $(LDADDS) |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 56 | |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 57 | testDocbook_SOURCES=testDocbook.c |
| 58 | testDocbook_LDFLAGS = |
| 59 | testDocbook_DEPENDENCIES = $(DEPS) |
| 60 | testDocbook_LDADD= $(LDADDS) |
| 61 | |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 62 | testCatalog_SOURCES=testCatalog.c |
| 63 | testCatalog_LDFLAGS = |
| 64 | testCatalog_DEPENDENCIES = $(DEPS) |
| 65 | testCatalog_LDADD= $(LDADDS) |
| 66 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 67 | testXPath_SOURCES=testXPath.c |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 68 | testXPath_LDFLAGS = |
| 69 | testXPath_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 70 | testXPath_LDADD= $(LDADDS) |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 71 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 72 | testURI_SOURCES=testURI.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 73 | testURI_LDFLAGS = |
| 74 | testURI_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 75 | testURI_LDADD= $(LDADDS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 76 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 77 | check-local: tests |
| 78 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 79 | $(srcdir)/libxml: |
Daniel Veillard | 146c912 | 2001-03-22 15:22:27 +0000 | [diff] [blame] | 80 | -$(RM) -f $(srcdir)/libxml |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 81 | ln -s $(srcdir)/. $(srcdir)/libxml |
| 82 | |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 83 | install-data: $(srcdir)/libxml |
| 84 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 85 | $(libxml2_la_SOURCES): $(srcdir)/libxml |
| 86 | |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 87 | testall : tests SVGtests SAXtests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 88 | |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 89 | tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 90 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 91 | HTMLtests : testHTML |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 92 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 93 | @echo "##" |
| 94 | @echo "## HTML regression tests" |
| 95 | @echo "##" |
| 96 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 97 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 98 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 99 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 100 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 101 | $(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] | 102 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 103 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 104 | $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 105 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 106 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 107 | diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 108 | $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 109 | diff result.$$name result2.$$name ; \ |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 110 | rm result.$$name result2.$$name error.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 111 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 112 | @echo "##" |
| 113 | @echo "## Push HTML regression tests" |
| 114 | @echo "##" |
| 115 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 116 | name=`basename $$i`; \ |
| 117 | if [ ! -d $$i ] ; then \ |
| 118 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 119 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 120 | $(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] | 121 | else \ |
| 122 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 123 | $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 124 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 125 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
| 126 | cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ |
| 127 | cut -b 1-15 error.$$name > errorcut2.$$name; \ |
| 128 | diff -b errorcut.$$name errorcut2.$$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 129 | $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 130 | diff result.$$name result2.$$name ; \ |
| 131 | rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ |
| 132 | fi ; fi ; done) |
| 133 | @echo "##" |
| 134 | @echo "## HTML SAX regression tests" |
| 135 | @echo "##" |
| 136 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 137 | name=`basename $$i`; \ |
| 138 | if [ ! -d $$i ] ; then \ |
| 139 | if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ |
| 140 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 141 | $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 142 | else \ |
| 143 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 144 | $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 145 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 146 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 147 | rm result.$$name.sax ; \ |
| 148 | fi ; fi ; done) |
| 149 | @echo "##" |
| 150 | @echo "## Push HTML SAX regression tests" |
| 151 | @echo "##" |
| 152 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 153 | name=`basename $$i`; \ |
| 154 | if [ ! -d $$i ] ; then \ |
| 155 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 156 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 157 | $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 158 | else \ |
| 159 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 160 | $(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 161 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 162 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 163 | rm result.$$name.sax ; \ |
| 164 | fi ; fi ; done) |
| 165 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 166 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 167 | XMLtests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 168 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 169 | @echo "##" |
| 170 | @echo "## XML regression tests" |
| 171 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 172 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 173 | @echo "##" |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 174 | @(for i in $(srcdir)/test/* ; do \ |
| 175 | name=`basename $$i`; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 176 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 177 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 178 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 179 | $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 180 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 181 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 182 | $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 183 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 184 | $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 185 | diff result.$$name result2.$$name ; \ |
| 186 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 187 | fi ; fi ; done) |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 188 | @echo "##" |
| 189 | @echo "## XML regression tests on memory" |
| 190 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 191 | @echo "## You should see two warnings on entity 'title.xml' for ent2" |
| 192 | @echo "##" |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 193 | @(for i in $(srcdir)/test/* ; do \ |
| 194 | name=`basename $$i`; \ |
| 195 | if [ ! -d $$i ] ; then \ |
| 196 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 197 | echo New test file $$name ; \ |
| 198 | $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ |
| 199 | else \ |
| 200 | echo Testing $$name ; \ |
| 201 | $(top_builddir)/xmllint --memory $$i > result.$$name ; \ |
| 202 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 203 | diff $(srcdir)/result/$$name result.$$name ; \ |
| 204 | $(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \ |
| 205 | diff result.$$name result2.$$name ; \ |
| 206 | rm result.$$name result2.$$name ; \ |
| 207 | fi ; fi ; done) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 208 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 209 | XMLenttests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 210 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 211 | @echo "##" |
| 212 | @echo "## XML entity subst regression tests" |
| 213 | @echo "##" |
| 214 | @(for i in $(srcdir)/test/* ; do \ |
| 215 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +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/noent/$$name ] ; then \ |
| 218 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 219 | $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 220 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 221 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 222 | $(top_builddir)/xmllint --noent $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 223 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 224 | $(top_builddir)/xmllint --noent 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 | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 227 | fi ; fi ; done) |
| 228 | |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 229 | URItests : testURI |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 230 | @(echo > .memdump) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 231 | @echo "##" |
| 232 | @echo "## URI module regression tests" |
| 233 | @echo "##" |
| 234 | @(for i in $(srcdir)/test/URI/*.data ; do \ |
| 235 | name=`basename $$i`; \ |
| 236 | if [ ! -d $$i ] ; then \ |
| 237 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 238 | echo New test file $$name ; \ |
Daniel Veillard | 90e1131 | 2000-09-05 10:42:32 +0000 | [diff] [blame] | 239 | $(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] | 240 | else \ |
| 241 | echo Testing $$name ; \ |
Daniel Veillard | 90e1131 | 2000-09-05 10:42:32 +0000 | [diff] [blame] | 242 | $(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] | 243 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 244 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 245 | rm result.$$name ; \ |
| 246 | fi ; fi ; done) |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 247 | @(for i in $(srcdir)/test/URI/*.uri ; do \ |
| 248 | name=`basename $$i`; \ |
| 249 | if [ ! -d $$i ] ; then \ |
| 250 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 251 | echo New test file $$name ; \ |
| 252 | $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ |
| 253 | else \ |
| 254 | echo Testing $$name ; \ |
| 255 | $(top_builddir)/testURI < $$i > result.$$name ; \ |
| 256 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 257 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 258 | rm result.$$name ; \ |
| 259 | fi ; fi ; done) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 260 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 261 | XPathtests : testXPath |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 262 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 263 | @echo "##" |
| 264 | @echo "## XPath regression tests" |
| 265 | @echo "##" |
| 266 | @(for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 267 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 268 | if [ ! -d $$i ] ; then \ |
| 269 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 270 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 271 | $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 272 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 273 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 274 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 275 | $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 276 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 277 | diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ |
| 278 | rm result.$$name ; \ |
| 279 | fi ; fi ; done) |
| 280 | @(for i in $(srcdir)/test/XPath/docs/* ; do \ |
| 281 | if [ ! -d $$i ] ; then \ |
| 282 | doc=`basename $$i`; \ |
| 283 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 284 | if [ ! -f $$j ] ; then continue ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 285 | name=`basename $$j`; \ |
| 286 | if [ ! -d $$j ] ; then \ |
| 287 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 288 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 289 | $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 290 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 291 | else \ |
| 292 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 293 | $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 294 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 295 | diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ |
| 296 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 297 | fi ; fi ; done ; fi ; done) |
| 298 | |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 299 | XPtrtests : testXPath |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 300 | @(echo > .memdump) |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 301 | @echo "##" |
| 302 | @echo "## XPointer regression tests" |
| 303 | @echo "##" |
| 304 | @(for i in $(srcdir)/test/XPath/docs/* ; do \ |
| 305 | if [ ! -d $$i ] ; then \ |
| 306 | doc=`basename $$i`; \ |
| 307 | for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ |
| 308 | if [ ! -f $$j ] ; then continue ; fi ; \ |
| 309 | name=`basename $$j`; \ |
| 310 | if [ ! -d $$j ] ; then \ |
| 311 | if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ |
| 312 | echo New test file $$name ; \ |
| 313 | ./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ |
| 314 | else \ |
| 315 | echo Testing $$name ; \ |
| 316 | ./testXPath -xptr -f -i $$i $$j > result.$$name ; \ |
| 317 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 318 | diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \ |
| 319 | rm result.$$name ; \ |
| 320 | fi ; fi ; done ; fi ; done) |
| 321 | |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 322 | XIncludetests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 323 | @(echo > .memdump) |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 324 | @echo "##" |
| 325 | @echo "## XInclude regression tests" |
| 326 | @echo "##" |
| 327 | @(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
| 328 | name=`basename $$i`; \ |
| 329 | if [ ! -d $$i ] ; then \ |
| 330 | if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ |
| 331 | echo New test file $$name ; \ |
| 332 | $(top_builddir)/xmllint --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \ |
| 333 | else \ |
| 334 | echo Testing $$name ; \ |
| 335 | $(top_builddir)/xmllint --xinclude $$i > result.$$name ; \ |
| 336 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 337 | diff $(srcdir)/result/XInclude/$$name result.$$name ; \ |
| 338 | rm result.$$name ; \ |
| 339 | fi ; fi ; done) |
| 340 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 341 | SVGtests : xmllint |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 342 | @echo "##" |
| 343 | @echo "## SVG parsing regression tests" |
| 344 | @echo "##" |
| 345 | @(for i in $(srcdir)/test/SVG/* ; do \ |
| 346 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 347 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 348 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 349 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 350 | $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 351 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 352 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 353 | $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 354 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 355 | $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 356 | diff result.$$name result2.$$name ; \ |
| 357 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 358 | fi ; fi ; done) |
| 359 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 360 | SAXtests : testSAX |
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 "##" |
| 363 | @echo "## SAX callbacks regression tests" |
| 364 | @echo "##" |
| 365 | @(for i in $(srcdir)/test/* ; do \ |
| 366 | name=`basename $$i`; \ |
| 367 | if [ ! -d $$i ] ; then \ |
| 368 | if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ |
| 369 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 370 | $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 371 | else \ |
| 372 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 373 | $(top_builddir)/testSAX $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 374 | diff $(srcdir)/SAXresult/$$name result.$$name ; \ |
| 375 | rm result.$$name ; \ |
| 376 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 377 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 378 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 379 | Validtests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 380 | @(echo > .memdump) |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 381 | @echo "##" |
| 382 | @echo "## Valid documents regression tests" |
| 383 | @echo "##" |
| 384 | @(for i in $(srcdir)/test/VCM/* ; do \ |
| 385 | name=`basename $$i`; \ |
| 386 | if [ ! -d $$i ] ; then \ |
| 387 | echo Testing $$name ; \ |
Daniel Veillard | 4de4d3b | 2001-05-07 20:50:47 +0000 | [diff] [blame] | 388 | $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 389 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 390 | fi ; done ; exit 0) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 391 | @echo "##" |
| 392 | @echo "## Validity checking regression tests" |
| 393 | @echo "##" |
| 394 | @(for i in $(srcdir)/test/VC/* ; do \ |
| 395 | name=`basename $$i`; \ |
| 396 | if [ ! -d $$i ] ; then \ |
| 397 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 398 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 399 | $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 400 | else \ |
| 401 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 402 | $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 403 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 404 | diff $(srcdir)/result/VC/$$name result.$$name ; \ |
| 405 | rm result.$$name ; \ |
| 406 | fi ; fi ; done) |
| 407 | @echo "##" |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 408 | @echo "## General documents valid regression tests" |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 409 | @echo "##" |
| 410 | @(for i in $(srcdir)/test/valid/* ; do \ |
| 411 | name=`basename $$i`; \ |
| 412 | if [ ! -d $$i ] ; then \ |
| 413 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 414 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 415 | $(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] | 416 | else \ |
| 417 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 418 | $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 419 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 420 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 421 | diff $(srcdir)/result/valid/$$name.err error.$$name ; \ |
| 422 | rm result.$$name error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 423 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 424 | |
Elliot Lee | ca84847 | 1999-09-24 16:18:00 +0000 | [diff] [blame] | 425 | dist-hook: libxml.spec |
Daniel Veillard | 9ec78f7 | 2000-01-05 16:31:25 +0000 | [diff] [blame] | 426 | -cp libxml.spec $(distdir) |
| 427 | (cd $(srcdir) ; tar -cf - --exclude CVS test result SAXresult ) | (cd $(distdir); tar xf -) |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 428 | |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 429 | cleantar: |
| 430 | @(rm -f libxslt*.tar.gz) |
| 431 | |
| 432 | rpm: cleantar distcheck |
Daniel Veillard | c2df4cd | 2000-10-12 23:15:24 +0000 | [diff] [blame] | 433 | rpm -ta $(distdir).tar.gz |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 434 | |
| 435 | ## We create xml2Conf.sh here and not from configure because we want |
| 436 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 437 | ## the value NONE in configure if the user doesn't specify them (this |
| 438 | ## is an autoconf feature, not a bug). |
| 439 | |
| 440 | confexecdir=$(libdir) |
| 441 | confexec_DATA = xml2Conf.sh |
| 442 | |
| 443 | CLEANFILES=xml2Conf.sh |
| 444 | |
| 445 | confexecdir=$(libdir) |
| 446 | confexec_DATA = xml2Conf.sh |
| 447 | EXTRA_DIST = xml2Conf.sh.in libxml.spec.in libxml.spec libxml.m4 \ |
| 448 | example/Makefile.am example/gjobread.c example/gjobs.xml \ |
| 449 | $(man_MANS) libxml-2.0.pc.in xmlversion.h.in \ |
| 450 | win32/README.MSDev win32/Makefile.mingw \ |
| 451 | win32/libxml2/libxml2.dsp win32/libxml2/libxml2_so.dsp \ |
Daniel Veillard | 2d90de4 | 2001-04-16 17:46:18 +0000 | [diff] [blame] | 452 | win32/libxml2/libxml2_a.dsp win32/libxml2/xmllint.dsp \ |
| 453 | win32/libxml2/libxml2.def.src \ |
Daniel Veillard | 2a0d2e6 | 2001-05-02 17:11:36 +0000 | [diff] [blame] | 454 | vms/build_libxml.com vms/config.vms \ |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 455 | strio.c strio.h trio.c trio.h triop.h libxml.h |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 456 | |
| 457 | pkgconfigdir = $(libdir)/pkgconfig |
| 458 | pkgconfig_DATA = libxml-2.0.pc |
| 459 | |
| 460 | #xml2Conf.sh: xml2Conf.sh.in Makefile |
| 461 | ### Use sed and then mv to avoid problems if the user interrupts. |
| 462 | # sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 463 | # -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 464 | # -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
| 465 | # -e 's?\@VERSION\@?$(VERSION)?g' \ |
| 466 | # < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \ |
| 467 | # && mv xml2Conf.tmp xml2Conf.sh |