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