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