Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
| 2 | |
Daniel Veillard | be9e595 | 1999-07-12 09:16:45 +0000 | [diff] [blame] | 3 | SUBDIRS = doc |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 4 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 5 | INCLUDES = -I@srcdir@ @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 | |
Daniel Veillard | a6e1d12 | 1998-10-04 14:41:05 +0000 | [diff] [blame] | 11 | bin_SCRIPTS=xml-config |
| 12 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 13 | lib_LTLIBRARIES = libxml.la |
Tomasz Kłoczko | ae7cb7f | 2000-02-02 23:51:10 +0000 | [diff] [blame] | 14 | libxml_la_LIBADD = @Z_LIBS@ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 15 | |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 16 | libxml_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 17 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 18 | libxml_la_SOURCES = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 19 | SAX.c \ |
| 20 | entities.c \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 21 | encoding.c \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 22 | error.c \ |
| 23 | parser.c \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 24 | tree.c \ |
| 25 | xmlIO.c \ |
| 26 | xmlmemory.c \ |
| 27 | uri.c \ |
| 28 | valid.c \ |
| 29 | xlink.c \ |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 30 | HTMLparser.c \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 31 | HTMLtree.c \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 32 | debugXML.c \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 33 | xpath.c \ |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 34 | nanohttp.c \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 35 | nanoftp.c |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 36 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 37 | xmlincdir = $(includedir)/libxml |
Tom Tromey | c19653d | 1998-08-14 01:22:43 +0000 | [diff] [blame] | 38 | xmlinc_HEADERS = \ |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 39 | SAX.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 40 | entities.h \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 41 | encoding.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 42 | parser.h \ |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 43 | parserInternals.h \ |
| 44 | xml-error.h \ |
Daniel Veillard | 5233ffc | 1999-07-06 22:25:25 +0000 | [diff] [blame] | 45 | HTMLparser.h \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 46 | HTMLtree.h \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 47 | debugXML.h \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 48 | tree.h \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 49 | xpath.h \ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 50 | xmlIO.h \ |
Daniel Veillard | 6454aec | 1999-09-02 22:04:43 +0000 | [diff] [blame] | 51 | xmlmemory.h \ |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 52 | nanohttp.h \ |
James Henstridge | f3be931 | 2000-01-28 13:59:21 +0000 | [diff] [blame] | 53 | nanoftp.h \ |
Daniel Veillard | 3dd82e7 | 2000-03-20 11:48:04 +0000 | [diff] [blame] | 54 | uri.h \ |
Daniel Veillard | 10a2c65 | 1999-12-12 13:03:50 +0000 | [diff] [blame] | 55 | valid.h \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 56 | xlink.h \ |
| 57 | xmlversion.h |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 58 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 59 | DEPS = $(top_builddir)/libxml.la |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 60 | LDADDS = $(top_builddir)/libxml.la @Z_LIBS@ @M_LIBS@ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 61 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 62 | xmllint_SOURCES=xmllint.c |
| 63 | xmllint_LDFLAGS = |
| 64 | xmllint_DEPENDENCIES = $(DEPS) |
| 65 | xmllint_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 66 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 67 | testSAX_SOURCES=testSAX.c |
| 68 | testSAX_LDFLAGS = |
| 69 | testSAX_DEPENDENCIES = $(DEPS) |
| 70 | testSAX_LDADD= $(LDADDS) |
| 71 | |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 72 | testHTML_SOURCES=testHTML.c |
| 73 | testHTML_LDFLAGS = |
| 74 | testHTML_DEPENDENCIES = $(DEPS) |
| 75 | testHTML_LDADD= $(LDADDS) |
| 76 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 77 | testXPath_SOURCES=testXPath.c |
| 78 | testXPath_LDFLAGS = |
| 79 | testXPath_DEPENDENCIES = $(DEPS) |
| 80 | testXPath_LDADD= $(LDADDS) |
| 81 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 82 | testURI_SOURCES=testURI.c |
| 83 | testURI_LDFLAGS = |
| 84 | testURI_DEPENDENCIES = $(DEPS) |
| 85 | testURI_LDADD= $(LDADDS) |
| 86 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 87 | check-local: tests |
| 88 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 89 | $(srcdir)/libxml: |
| 90 | -$(RM) $(srcdir)/libxml |
| 91 | ln -s $(srcdir)/. $(srcdir)/libxml |
| 92 | |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 93 | install-data: $(srcdir)/libxml |
| 94 | |
| 95 | $(libxml_la_SOURCES): $(srcdir)/libxml |
| 96 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 97 | testall : tests SVGtests SAXtests XPathtests XMLenttests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 98 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 99 | tests: XMLtests HTMLtests Validtests |
| 100 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 101 | HTMLtests : testHTML |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 102 | @(rm -f .memdump ; touch .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 103 | @echo "##" |
| 104 | @echo "## HTML regression tests" |
| 105 | @echo "##" |
| 106 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 107 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 108 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 109 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 110 | echo New test file $$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 111 | testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 112 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 113 | echo Testing $$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 114 | testHTML $$i > result.$$name 2> error.$$name ; \ |
| 115 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 116 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 117 | diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ |
| 118 | testHTML result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 119 | diff result.$$name result2.$$name ; \ |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 120 | rm result.$$name result2.$$name error.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 121 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 122 | @echo "##" |
| 123 | @echo "## Push HTML regression tests" |
| 124 | @echo "##" |
| 125 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 126 | name=`basename $$i`; \ |
| 127 | if [ ! -d $$i ] ; then \ |
| 128 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 129 | echo New test file $$name ; \ |
| 130 | testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ |
| 131 | else \ |
| 132 | echo Testing $$name ; \ |
| 133 | testHTML --push $$i > result.$$name 2> error.$$name ; \ |
| 134 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 135 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
| 136 | cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ |
| 137 | cut -b 1-15 error.$$name > errorcut2.$$name; \ |
| 138 | diff -b errorcut.$$name errorcut2.$$name ; \ |
| 139 | testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ |
| 140 | diff result.$$name result2.$$name ; \ |
| 141 | rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ |
| 142 | fi ; fi ; done) |
| 143 | @echo "##" |
| 144 | @echo "## HTML SAX regression tests" |
| 145 | @echo "##" |
| 146 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 147 | name=`basename $$i`; \ |
| 148 | if [ ! -d $$i ] ; then \ |
| 149 | if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ |
| 150 | echo New test file $$name ; \ |
| 151 | testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
| 152 | else \ |
| 153 | echo Testing $$name ; \ |
| 154 | testHTML --sax $$i > result.$$name.sax ; \ |
| 155 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 156 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 157 | rm result.$$name.sax ; \ |
| 158 | fi ; fi ; done) |
| 159 | @echo "##" |
| 160 | @echo "## Push HTML SAX regression tests" |
| 161 | @echo "##" |
| 162 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 163 | name=`basename $$i`; \ |
| 164 | if [ ! -d $$i ] ; then \ |
| 165 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 166 | echo New test file $$name ; \ |
| 167 | testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
| 168 | else \ |
| 169 | echo Testing $$name ; \ |
| 170 | testHTML --push --sax $$i > result.$$name.sax ; \ |
| 171 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 172 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 173 | rm result.$$name.sax ; \ |
| 174 | fi ; fi ; done) |
| 175 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 176 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 177 | XMLtests : xmllint |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 178 | @echo "##" |
| 179 | @echo "## XML regression tests" |
| 180 | @echo "##" |
| 181 | @(for i in $(srcdir)/test/* ; do \ |
| 182 | name=`basename $$i`; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 183 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 184 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 185 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 186 | $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 187 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 188 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 189 | $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 190 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 191 | $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 192 | diff result.$$name result2.$$name ; \ |
| 193 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 194 | fi ; fi ; done) |
| 195 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 196 | XMLenttests : xmllint |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 197 | @echo "##" |
| 198 | @echo "## XML entity subst regression tests" |
| 199 | @echo "##" |
| 200 | @(for i in $(srcdir)/test/* ; do \ |
| 201 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 202 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 203 | if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ |
| 204 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 205 | $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 206 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 207 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 208 | $(top_builddir)/xmllint --noent $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 209 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 210 | $(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 211 | diff result.$$name result2.$$name ; \ |
| 212 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 213 | fi ; fi ; done) |
| 214 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 215 | XPathtests : testXPath |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 216 | @echo "##" |
| 217 | @echo "## XPath regression tests" |
| 218 | @echo "##" |
| 219 | @(for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 220 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 221 | if [ ! -d $$i ] ; then \ |
| 222 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 223 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 224 | $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 225 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 226 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 227 | $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 228 | diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ |
| 229 | rm result.$$name ; \ |
| 230 | fi ; fi ; done) |
| 231 | @(for i in $(srcdir)/test/XPath/docs/* ; do \ |
| 232 | if [ ! -d $$i ] ; then \ |
| 233 | doc=`basename $$i`; \ |
| 234 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
| 235 | name=`basename $$j`; \ |
| 236 | if [ ! -d $$j ] ; then \ |
| 237 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 238 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 239 | $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 240 | else \ |
| 241 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 242 | $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 243 | diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ |
| 244 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 245 | fi ; fi ; done ; fi ; done) |
| 246 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 247 | SVGtests : xmllint |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 248 | @echo "##" |
| 249 | @echo "## SVG parsing regression tests" |
| 250 | @echo "##" |
| 251 | @(for i in $(srcdir)/test/SVG/* ; do \ |
| 252 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 253 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 254 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 255 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 256 | $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 257 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 258 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 259 | $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 260 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 261 | $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 262 | diff result.$$name result2.$$name ; \ |
| 263 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 264 | fi ; fi ; done) |
| 265 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 266 | SAXtests : testSAX |
| 267 | @echo "##" |
| 268 | @echo "## SAX callbacks regression tests" |
| 269 | @echo "##" |
| 270 | @(for i in $(srcdir)/test/* ; do \ |
| 271 | name=`basename $$i`; \ |
| 272 | if [ ! -d $$i ] ; then \ |
| 273 | if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ |
| 274 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 275 | $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 276 | else \ |
| 277 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 278 | $(top_builddir)/testSAX $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 279 | diff $(srcdir)/SAXresult/$$name result.$$name ; \ |
| 280 | rm result.$$name ; \ |
| 281 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 282 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 283 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 284 | Validtests : xmllint |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 285 | @echo "##" |
| 286 | @echo "## Validity checking regression tests" |
| 287 | @echo "##" |
| 288 | @(for i in $(srcdir)/test/VC/* ; do \ |
| 289 | name=`basename $$i`; \ |
| 290 | if [ ! -d $$i ] ; then \ |
| 291 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 292 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 293 | $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 294 | else \ |
| 295 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 296 | $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 297 | diff $(srcdir)/result/VC/$$name result.$$name ; \ |
| 298 | rm result.$$name ; \ |
| 299 | fi ; fi ; done) |
| 300 | @echo "##" |
| 301 | @echo "## Valid documents regression tests" |
| 302 | @echo "##" |
| 303 | @(for i in $(srcdir)/test/valid/* ; do \ |
| 304 | name=`basename $$i`; \ |
| 305 | if [ ! -d $$i ] ; then \ |
| 306 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 307 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 308 | $(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] | 309 | else \ |
| 310 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 311 | $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 312 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 313 | diff $(srcdir)/result/valid/$$name.err error.$$name ; \ |
| 314 | rm result.$$name error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 315 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 316 | |
Elliot Lee | ca84847 | 1999-09-24 16:18:00 +0000 | [diff] [blame] | 317 | dist-hook: libxml.spec |
Daniel Veillard | 9ec78f7 | 2000-01-05 16:31:25 +0000 | [diff] [blame] | 318 | -cp libxml.spec $(distdir) |
| 319 | (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] | 320 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 321 | ## We create xmlConf.sh here and not from configure because we want |
| 322 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 323 | ## the value NONE in configure if the user doesn't specify them (this |
| 324 | ## is an autoconf feature, not a bug). |
| 325 | |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 326 | confexecdir=$(libdir) |
| 327 | confexec_DATA = xmlConf.sh |
| 328 | |
Elliot Lee | 56316b0 | 1999-08-23 18:18:32 +0000 | [diff] [blame] | 329 | CLEANFILES=xmlConf.sh |
| 330 | |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 331 | confexecdir=$(libdir) |
| 332 | confexec_DATA = xmlConf.sh |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 333 | EXTRA_DIST = xmlConf.sh.in libxml.spec.in libxml.spec \ |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 334 | example/Makefile.am example/gjobread.c example/gjobs.xml |
| 335 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 336 | xmlConf.sh: xmlConf.sh.in Makefile |
| 337 | ## Use sed and then mv to avoid problems if the user interrupts. |
Miguel de Icaza | 60681bd | 1998-09-30 19:28:59 +0000 | [diff] [blame] | 338 | sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 339 | -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 340 | -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
Daniel Veillard | 6077d03 | 1999-10-09 09:11:45 +0000 | [diff] [blame] | 341 | -e 's?\@VERSION\@?$(VERSION)?g' \ |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 342 | < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \ |
| 343 | && mv xmlConf.tmp xmlConf.sh |