Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | 7704473 | 2001-06-29 21:31:07 +0000 | [diff] [blame] | 2 | |
| 3 | # Dependancies are fucked in make distcheck could not find why :-( |
Daniel Veillard | f524d6e | 2001-07-05 23:41:40 +0000 | [diff] [blame] | 4 | AUTOMAKE_OPTIONS=no-dependencies |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 5 | |
Daniel Veillard | 6278fb5 | 2001-05-25 07:38:41 +0000 | [diff] [blame] | 6 | SUBDIRS = include . doc example |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 7 | |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 8 | INCLUDES = -I@srcdir@/include -I$(top_builddir)/include @Z_CFLAGS@ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 9 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 10 | noinst_PROGRAMS=testSAX testHTML testXPath testURI testDocbook |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 11 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 12 | bin_PROGRAMS = xmllint xmlcatalog |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 13 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 14 | bin_SCRIPTS=xml2-config |
| 15 | |
| 16 | lib_LTLIBRARIES = libxml2.la |
Daniel Veillard | 6c83120 | 2001-03-07 15:57:53 +0000 | [diff] [blame] | 17 | libxml2_la_LIBADD = @Z_LIBS@ -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 18 | |
| 19 | libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 20 | |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 21 | if WITH_TRIO_SOURCES |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 22 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 23 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 24 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 25 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 26 | catalog.c strio.c trio.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 27 | |
| 28 | else |
| 29 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 30 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 31 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 32 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 33 | catalog.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 34 | |
| 35 | endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 36 | |
| 37 | DEPS = $(top_builddir)/libxml2.la |
Daniel Veillard | 96ed583 | 2001-06-15 22:22:04 +0000 | [diff] [blame] | 38 | LDADDS = $(top_builddir)/libxml2.la @Z_LIBS@ $(ICONV_LIBS) -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 39 | |
| 40 | man_MANS = xmllint.1 xml2-config.1 libxml.4 |
| 41 | |
| 42 | m4datadir = $(datadir)/aclocal |
| 43 | m4data_DATA = libxml.m4 |
| 44 | |
| 45 | xmllint_SOURCES=xmllint.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 46 | xmllint_LDFLAGS = |
| 47 | xmllint_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 48 | xmllint_LDADD= @RDL_LIBS@ $(LDADDS) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 49 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 50 | testSAX_SOURCES=testSAX.c |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 51 | testSAX_LDFLAGS = |
| 52 | testSAX_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 53 | testSAX_LDADD= $(LDADDS) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 54 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 55 | testHTML_SOURCES=testHTML.c |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 56 | testHTML_LDFLAGS = |
| 57 | testHTML_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 58 | testHTML_LDADD= $(LDADDS) |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 59 | |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 60 | testDocbook_SOURCES=testDocbook.c |
| 61 | testDocbook_LDFLAGS = |
| 62 | testDocbook_DEPENDENCIES = $(DEPS) |
| 63 | testDocbook_LDADD= $(LDADDS) |
| 64 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 65 | xmlcatalog_SOURCES=xmlcatalog.c |
| 66 | xmlcatalog_LDFLAGS = |
| 67 | xmlcatalog_DEPENDENCIES = $(DEPS) |
| 68 | xmlcatalog_LDADD= $(LDADDS) |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 69 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 70 | testXPath_SOURCES=testXPath.c |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 71 | testXPath_LDFLAGS = |
| 72 | testXPath_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 73 | testXPath_LDADD= $(LDADDS) |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 74 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 75 | testURI_SOURCES=testURI.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 76 | testURI_LDFLAGS = |
| 77 | testURI_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 78 | testURI_LDADD= $(LDADDS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 79 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 80 | check-local: tests |
| 81 | |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 82 | testall : tests SVGtests SAXtests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 83 | |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 84 | tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests Scripttests Catatests |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 85 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 86 | HTMLtests : testHTML |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 87 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 88 | @echo "##" |
| 89 | @echo "## HTML regression tests" |
| 90 | @echo "##" |
| 91 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 92 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 93 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 94 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 95 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 96 | $(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] | 97 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 98 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 99 | $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 100 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 101 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 102 | diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 103 | $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 104 | diff result.$$name result2.$$name ; \ |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 105 | rm result.$$name result2.$$name error.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 106 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 107 | @echo "##" |
| 108 | @echo "## Push HTML regression tests" |
| 109 | @echo "##" |
| 110 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 111 | name=`basename $$i`; \ |
| 112 | if [ ! -d $$i ] ; then \ |
| 113 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 114 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 115 | $(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] | 116 | else \ |
| 117 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 118 | $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 119 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 120 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
| 121 | cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ |
| 122 | cut -b 1-15 error.$$name > errorcut2.$$name; \ |
| 123 | diff -b errorcut.$$name errorcut2.$$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 124 | $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 125 | diff result.$$name result2.$$name ; \ |
| 126 | rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ |
| 127 | fi ; fi ; done) |
| 128 | @echo "##" |
| 129 | @echo "## HTML SAX regression tests" |
| 130 | @echo "##" |
| 131 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 132 | name=`basename $$i`; \ |
| 133 | if [ ! -d $$i ] ; then \ |
| 134 | if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ |
| 135 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 136 | $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 137 | else \ |
| 138 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 139 | $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 140 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 141 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 142 | rm result.$$name.sax ; \ |
| 143 | fi ; fi ; done) |
| 144 | @echo "##" |
| 145 | @echo "## Push HTML SAX regression tests" |
| 146 | @echo "##" |
| 147 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 148 | name=`basename $$i`; \ |
| 149 | if [ ! -d $$i ] ; then \ |
| 150 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 151 | echo New test file $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 152 | $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 153 | else \ |
| 154 | echo Testing $$name ; \ |
Daniel Veillard | 167bd53 | 2001-01-06 21:09:34 +0000 | [diff] [blame] | 155 | $(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 156 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 157 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 158 | rm result.$$name.sax ; \ |
| 159 | fi ; fi ; done) |
| 160 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 161 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 162 | XMLtests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 163 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 164 | @echo "##" |
| 165 | @echo "## XML regression tests" |
| 166 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 167 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 168 | @echo "##" |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 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 | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 183 | @(echo > .memdump) |
| 184 | @echo "##" |
| 185 | @echo "## XML push regression tests" |
| 186 | @echo "##" |
| 187 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 188 | @echo "##" |
| 189 | @(for i in $(srcdir)/test/* ; do \ |
| 190 | name=`basename $$i`; \ |
| 191 | if [ ! -d $$i ] ; then \ |
| 192 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 193 | echo New test file $$name ; \ |
| 194 | $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \ |
| 195 | else \ |
| 196 | echo Testing $$name ; \ |
| 197 | $(top_builddir)/xmllint --push $$i > result.$$name ; \ |
| 198 | diff $(srcdir)/result/$$name result.$$name ; \ |
| 199 | $(top_builddir)/xmllint --push result.$$name > result2.$$name ; \ |
| 200 | diff result.$$name result2.$$name ; \ |
| 201 | rm result.$$name result2.$$name ; \ |
| 202 | fi ; fi ; done) |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 203 | @echo "##" |
| 204 | @echo "## XML regression tests on memory" |
| 205 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 206 | @echo "## You should see two warnings on entity 'title.xml' for ent2" |
| 207 | @echo "##" |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 208 | @(for i in $(srcdir)/test/* ; do \ |
| 209 | name=`basename $$i`; \ |
| 210 | if [ ! -d $$i ] ; then \ |
| 211 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 212 | echo New test file $$name ; \ |
| 213 | $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ |
| 214 | else \ |
| 215 | echo Testing $$name ; \ |
| 216 | $(top_builddir)/xmllint --memory $$i > result.$$name ; \ |
| 217 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 218 | diff $(srcdir)/result/$$name result.$$name ; \ |
| 219 | $(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \ |
| 220 | diff result.$$name result2.$$name ; \ |
| 221 | rm result.$$name result2.$$name ; \ |
| 222 | fi ; fi ; done) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 223 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 224 | XMLenttests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 225 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 226 | @echo "##" |
| 227 | @echo "## XML entity subst regression tests" |
| 228 | @echo "##" |
| 229 | @(for i in $(srcdir)/test/* ; do \ |
| 230 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 231 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 232 | if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ |
| 233 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 234 | $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 235 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 236 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 237 | $(top_builddir)/xmllint --noent $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 238 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 239 | $(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 240 | diff result.$$name result2.$$name ; \ |
| 241 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 242 | fi ; fi ; done) |
| 243 | |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 244 | URItests : testURI |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 245 | @(echo > .memdump) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 246 | @echo "##" |
| 247 | @echo "## URI module regression tests" |
| 248 | @echo "##" |
| 249 | @(for i in $(srcdir)/test/URI/*.data ; do \ |
| 250 | name=`basename $$i`; \ |
| 251 | if [ ! -d $$i ] ; then \ |
| 252 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 253 | echo New test file $$name ; \ |
Daniel Veillard | 90e1131 | 2000-09-05 10:42:32 +0000 | [diff] [blame] | 254 | $(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] | 255 | else \ |
| 256 | echo Testing $$name ; \ |
Daniel Veillard | 90e1131 | 2000-09-05 10:42:32 +0000 | [diff] [blame] | 257 | $(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] | 258 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 259 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 260 | rm result.$$name ; \ |
| 261 | fi ; fi ; done) |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 262 | @(for i in $(srcdir)/test/URI/*.uri ; do \ |
| 263 | name=`basename $$i`; \ |
| 264 | if [ ! -d $$i ] ; then \ |
| 265 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 266 | echo New test file $$name ; \ |
| 267 | $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ |
| 268 | else \ |
| 269 | echo Testing $$name ; \ |
| 270 | $(top_builddir)/testURI < $$i > result.$$name ; \ |
| 271 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 272 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 273 | rm result.$$name ; \ |
| 274 | fi ; fi ; done) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 275 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 276 | XPathtests : testXPath |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 277 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 278 | @echo "##" |
| 279 | @echo "## XPath regression tests" |
| 280 | @echo "##" |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 281 | @(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
| 282 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 283 | for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 284 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 285 | if [ ! -d $$i ] ; then \ |
| 286 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 287 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 288 | $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 289 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 290 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 291 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 292 | $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 293 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 294 | diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ |
| 295 | rm result.$$name ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 296 | fi ; fi ; done ; \ |
| 297 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 298 | if [ ! -d $$i ] ; then \ |
| 299 | doc=`basename $$i`; \ |
| 300 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 301 | if [ ! -f $$j ] ; then continue ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 302 | name=`basename $$j`; \ |
| 303 | if [ ! -d $$j ] ; then \ |
| 304 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 305 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 306 | $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 307 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 308 | else \ |
| 309 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 310 | $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 311 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 312 | diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ |
| 313 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 314 | fi ; fi ; done ; fi ; done) |
| 315 | |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 316 | XPtrtests : testXPath |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 317 | @(echo > .memdump) |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 318 | @echo "##" |
| 319 | @echo "## XPointer regression tests" |
| 320 | @echo "##" |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 321 | @(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
| 322 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 323 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 324 | if [ ! -d $$i ] ; then \ |
| 325 | doc=`basename $$i`; \ |
| 326 | for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ |
| 327 | if [ ! -f $$j ] ; then continue ; fi ; \ |
| 328 | name=`basename $$j`; \ |
| 329 | if [ ! -d $$j ] ; then \ |
| 330 | if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ |
| 331 | echo New test file $$name ; \ |
| 332 | ./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ |
| 333 | else \ |
| 334 | echo Testing $$name ; \ |
| 335 | ./testXPath -xptr -f -i $$i $$j > result.$$name ; \ |
| 336 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 337 | diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \ |
| 338 | rm result.$$name ; \ |
| 339 | fi ; fi ; done ; fi ; done) |
| 340 | |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 341 | XIncludetests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 342 | @(echo > .memdump) |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 343 | @echo "##" |
| 344 | @echo "## XInclude regression tests" |
| 345 | @echo "##" |
| 346 | @(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
| 347 | name=`basename $$i`; \ |
| 348 | if [ ! -d $$i ] ; then \ |
| 349 | if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ |
| 350 | echo New test file $$name ; \ |
| 351 | $(top_builddir)/xmllint --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \ |
| 352 | else \ |
| 353 | echo Testing $$name ; \ |
| 354 | $(top_builddir)/xmllint --xinclude $$i > result.$$name ; \ |
| 355 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 356 | diff $(srcdir)/result/XInclude/$$name result.$$name ; \ |
| 357 | rm result.$$name ; \ |
| 358 | fi ; fi ; done) |
| 359 | |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 360 | Scripttests : xmllint |
| 361 | @(echo > .memdump) |
| 362 | @echo "##" |
| 363 | @echo "## Scripts regression tests" |
| 364 | @echo "## Some of the base computations may be different if srcdir != ." |
| 365 | @echo "##" |
| 366 | @(for i in $(srcdir)/test/scripts/*.script ; do \ |
| 367 | name=`basename $$i .script`; \ |
| 368 | xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \ |
| 369 | if [ -f $$xml ] ; then \ |
| 370 | if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \ |
| 371 | echo New test file $$name ; \ |
| 372 | $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name ; \ |
| 373 | else \ |
| 374 | echo Testing $$name ; \ |
| 375 | $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name ; \ |
| 376 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 377 | diff $(srcdir)/result/scripts/$$name result.$$name ; \ |
| 378 | rm result.$$name ; \ |
| 379 | fi ; fi ; done) |
| 380 | |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 381 | Catatests : xmlcatalog |
| 382 | @(echo > .memdump) |
| 383 | @echo "##" |
| 384 | @echo "## Catalog regression tests" |
| 385 | @echo "##" |
| 386 | @(for i in $(srcdir)/test/catalogs/*.script ; do \ |
| 387 | name=`basename $$i .script`; \ |
| 388 | xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \ |
| 389 | if [ -f $$xml ] ; then \ |
| 390 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 391 | echo New test file $$name ; \ |
| 392 | $(top_builddir)/xmlcatalog --shell $$xml < $$i > $(srcdir)/result/catalogs/$$name ; \ |
| 393 | else \ |
| 394 | echo Testing $$name ; \ |
| 395 | $(top_builddir)/xmlcatalog --shell $$xml < $$i > result.$$name ; \ |
| 396 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 397 | diff $(srcdir)/result/catalogs/$$name result.$$name ; \ |
| 398 | rm result.$$name ; \ |
| 399 | fi ; fi ; done) |
| 400 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 401 | SVGtests : xmllint |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 402 | @echo "##" |
| 403 | @echo "## SVG parsing regression tests" |
| 404 | @echo "##" |
| 405 | @(for i in $(srcdir)/test/SVG/* ; do \ |
| 406 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 407 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 408 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 409 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 410 | $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 411 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 412 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 413 | $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 414 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 415 | $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 416 | diff result.$$name result2.$$name ; \ |
| 417 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 418 | fi ; fi ; done) |
| 419 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 420 | SAXtests : testSAX |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 421 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 422 | @echo "##" |
| 423 | @echo "## SAX callbacks regression tests" |
| 424 | @echo "##" |
| 425 | @(for i in $(srcdir)/test/* ; do \ |
| 426 | name=`basename $$i`; \ |
| 427 | if [ ! -d $$i ] ; then \ |
| 428 | if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ |
| 429 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 430 | $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 431 | else \ |
| 432 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 433 | $(top_builddir)/testSAX $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 434 | diff $(srcdir)/SAXresult/$$name result.$$name ; \ |
| 435 | rm result.$$name ; \ |
| 436 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 437 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 438 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 439 | Validtests : xmllint |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 440 | @(echo > .memdump) |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 441 | @echo "##" |
| 442 | @echo "## Valid documents regression tests" |
| 443 | @echo "##" |
| 444 | @(for i in $(srcdir)/test/VCM/* ; do \ |
| 445 | name=`basename $$i`; \ |
| 446 | if [ ! -d $$i ] ; then \ |
| 447 | echo Testing $$name ; \ |
Daniel Veillard | 4de4d3b | 2001-05-07 20:50:47 +0000 | [diff] [blame] | 448 | $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 449 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 450 | fi ; done ; exit 0) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 451 | @echo "##" |
| 452 | @echo "## Validity checking regression tests" |
| 453 | @echo "##" |
| 454 | @(for i in $(srcdir)/test/VC/* ; do \ |
| 455 | name=`basename $$i`; \ |
| 456 | if [ ! -d $$i ] ; then \ |
| 457 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 458 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 459 | $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 460 | else \ |
| 461 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 462 | $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 463 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 464 | diff $(srcdir)/result/VC/$$name result.$$name ; \ |
| 465 | rm result.$$name ; \ |
| 466 | fi ; fi ; done) |
| 467 | @echo "##" |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 468 | @echo "## General documents valid regression tests" |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 469 | @echo "##" |
| 470 | @(for i in $(srcdir)/test/valid/* ; do \ |
| 471 | name=`basename $$i`; \ |
| 472 | if [ ! -d $$i ] ; then \ |
| 473 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 474 | echo New test file $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 475 | $(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] | 476 | else \ |
| 477 | echo Testing $$name ; \ |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 478 | $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 479 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 480 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 481 | diff $(srcdir)/result/valid/$$name.err error.$$name ; \ |
| 482 | rm result.$$name error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 483 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 484 | |
Elliot Lee | ca84847 | 1999-09-24 16:18:00 +0000 | [diff] [blame] | 485 | dist-hook: libxml.spec |
Daniel Veillard | 9ec78f7 | 2000-01-05 16:31:25 +0000 | [diff] [blame] | 486 | -cp libxml.spec $(distdir) |
Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 487 | (cd $(srcdir) ; tar -cf - --exclude CVS win32 test result SAXresult ) | (cd $(distdir); tar xf -) |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 488 | |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 489 | cleantar: |
| 490 | @(rm -f libxslt*.tar.gz) |
| 491 | |
| 492 | rpm: cleantar distcheck |
Daniel Veillard | c2df4cd | 2000-10-12 23:15:24 +0000 | [diff] [blame] | 493 | rpm -ta $(distdir).tar.gz |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 494 | |
| 495 | ## We create xml2Conf.sh here and not from configure because we want |
| 496 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 497 | ## the value NONE in configure if the user doesn't specify them (this |
| 498 | ## is an autoconf feature, not a bug). |
| 499 | |
| 500 | confexecdir=$(libdir) |
| 501 | confexec_DATA = xml2Conf.sh |
| 502 | |
| 503 | CLEANFILES=xml2Conf.sh |
| 504 | |
| 505 | confexecdir=$(libdir) |
| 506 | confexec_DATA = xml2Conf.sh |
Daniel Veillard | 3739b98 | 2001-06-19 12:51:30 +0000 | [diff] [blame] | 507 | EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml.spec \ |
| 508 | libxml.m4 \ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 509 | example/Makefile.am example/gjobread.c example/gjobs.xml \ |
Daniel Veillard | 07385fd | 2001-06-23 21:55:48 +0000 | [diff] [blame] | 510 | $(man_MANS) libxml-2.0.pc.in \ |
Daniel Veillard | 2a0d2e6 | 2001-05-02 17:11:36 +0000 | [diff] [blame] | 511 | vms/build_libxml.com vms/config.vms \ |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 512 | strio.c strio.h trio.c trio.h triop.h libxml.h |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 513 | |
| 514 | pkgconfigdir = $(libdir)/pkgconfig |
| 515 | pkgconfig_DATA = libxml-2.0.pc |
| 516 | |
| 517 | #xml2Conf.sh: xml2Conf.sh.in Makefile |
| 518 | ### Use sed and then mv to avoid problems if the user interrupts. |
| 519 | # sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 520 | # -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 521 | # -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
| 522 | # -e 's?\@VERSION\@?$(VERSION)?g' \ |
| 523 | # < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \ |
| 524 | # && mv xml2Conf.tmp xml2Conf.sh |