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