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