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