Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +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 | decd64d | 2002-04-18 14:41:51 +0000 | [diff] [blame] | 8 | noinst_PROGRAMS=testSchemas testSAX testHTML testXPath testURI testDocbook \ |
| 9 | testThreads testC14N testAutomata testRegexp |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 10 | |
Daniel Veillard | 344cee7 | 2001-08-20 00:08:40 +0000 | [diff] [blame] | 11 | bin_PROGRAMS = xmllint xmlcatalog |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 12 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 13 | bin_SCRIPTS=xml2-config |
| 14 | |
| 15 | lib_LTLIBRARIES = libxml2.la |
Daniel Veillard | 5eb9dea | 2001-09-07 09:38:02 +0000 | [diff] [blame] | 16 | libxml2_la_LIBADD = @Z_LIBS@ $(ICONV_LIBS) -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 17 | |
| 18 | libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 19 | |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 20 | if WITH_TRIO_SOURCES |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 21 | libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
| 22 | parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
| 23 | valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 24 | xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 25 | catalog.c globals.c threads.c c14n.c \ |
Daniel Veillard | 49d5af8 | 2002-05-23 11:55:49 +0000 | [diff] [blame] | 26 | xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 27 | triostr.c trio.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 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 | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 33 | catalog.c globals.c threads.c c14n.c \ |
| 34 | xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c |
Daniel Veillard | 7150a03 | 2001-05-02 16:41:11 +0000 | [diff] [blame] | 35 | endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 36 | |
| 37 | DEPS = $(top_builddir)/libxml2.la |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 38 | LDADDS = $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 39 | |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 40 | man_MANS = xml2-config.1 libxml.3 |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 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) |
Daniel Veillard | 03f848d | 2001-11-07 12:53:46 +0000 | [diff] [blame] | 68 | xmlcatalog_LDADD= @RDL_LIBS@ $(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 | |
Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 75 | testC14N_SOURCES=testC14N.c |
| 76 | testC14N_LDFLAGS = |
| 77 | testC14N_DEPENDENCIES = $(DEPS) |
| 78 | testC14N_LDADD= $(LDADDS) |
| 79 | |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 80 | testThreads_SOURCES=testThreads.c |
| 81 | testThreads_LDFLAGS = |
| 82 | testThreads_DEPENDENCIES = $(DEPS) |
| 83 | testThreads_LDADD= $(LDADDS) |
| 84 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 85 | testURI_SOURCES=testURI.c |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 86 | testURI_LDFLAGS = |
| 87 | testURI_DEPENDENCIES = $(DEPS) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 88 | testURI_LDADD= $(LDADDS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 89 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 90 | testRegexp_SOURCES=testRegexp.c |
| 91 | testRegexp_LDFLAGS = |
| 92 | testRegexp_DEPENDENCIES = $(DEPS) |
| 93 | testRegexp_LDADD= $(LDADDS) |
| 94 | |
| 95 | testAutomata_SOURCES=testAutomata.c |
| 96 | testAutomata_LDFLAGS = |
| 97 | testAutomata_DEPENDENCIES = $(DEPS) |
| 98 | testAutomata_LDADD= $(LDADDS) |
| 99 | |
| 100 | testSchemas_SOURCES=testSchemas.c |
| 101 | testSchemas_LDFLAGS = |
| 102 | testSchemas_DEPENDENCIES = $(DEPS) |
| 103 | testSchemas_LDADD= $(LDADDS) |
| 104 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 105 | check-local: tests |
| 106 | |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 107 | testall : tests SVGtests SAXtests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 108 | |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 109 | tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests C14Ntests Scripttests Catatests @TEST_SCHEMAS@ @TEST_THREADS@ |
Daniel Veillard | 0ba5923 | 2002-02-10 13:20:39 +0000 | [diff] [blame] | 110 | @(cd python ; $(MAKE) tests) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 111 | |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 112 | valgrind: |
| 113 | @echo '## Running the regression tests under Valgrind' |
| 114 | @echo '## Go get a cup of coffee it is gonna take a while ...' |
| 115 | $(MAKE) CHECKER='valgrind -q' tests |
| 116 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 117 | HTMLtests : testHTML$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 118 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 119 | @echo "##" |
| 120 | @echo "## HTML regression tests" |
| 121 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 122 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 123 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 124 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 125 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 126 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 127 | $(CHECKER) $(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] | 128 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 129 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 130 | $(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 131 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 132 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 133 | diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 134 | $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 135 | diff result.$$name result2.$$name ; \ |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 136 | rm result.$$name result2.$$name error.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 137 | fi ; fi ; done) |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 138 | @echo "##" |
| 139 | @echo "## Push HTML regression tests" |
| 140 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 141 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 142 | name=`basename $$i`; \ |
| 143 | if [ ! -d $$i ] ; then \ |
| 144 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 145 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 146 | $(CHECKER) $(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] | 147 | else \ |
| 148 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 149 | $(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 150 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 151 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
| 152 | cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ |
| 153 | cut -b 1-15 error.$$name > errorcut2.$$name; \ |
| 154 | diff -b errorcut.$$name errorcut2.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 155 | $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 156 | diff result.$$name result2.$$name ; \ |
| 157 | rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ |
| 158 | fi ; fi ; done) |
| 159 | @echo "##" |
| 160 | @echo "## HTML SAX regression tests" |
| 161 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 162 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 163 | name=`basename $$i`; \ |
| 164 | if [ ! -d $$i ] ; then \ |
| 165 | if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ |
| 166 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 167 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 168 | else \ |
| 169 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 170 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 171 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 172 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 173 | rm result.$$name.sax ; \ |
| 174 | fi ; fi ; done) |
| 175 | @echo "##" |
| 176 | @echo "## Push HTML SAX regression tests" |
| 177 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 178 | -@(for i in $(srcdir)/test/HTML/* ; do \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 179 | name=`basename $$i`; \ |
| 180 | if [ ! -d $$i ] ; then \ |
| 181 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 182 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 183 | $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 184 | else \ |
| 185 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 186 | $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \ |
Daniel Veillard | 87b9539 | 2000-08-12 21:12:04 +0000 | [diff] [blame] | 187 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 188 | diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ |
| 189 | rm result.$$name.sax ; \ |
| 190 | fi ; fi ; done) |
| 191 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 192 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 193 | XMLtests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 194 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 195 | @echo "##" |
| 196 | @echo "## XML regression tests" |
| 197 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 198 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 199 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 200 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 201 | name=`basename $$i`; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 202 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 203 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 204 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 205 | $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 206 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 207 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 208 | $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 209 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 210 | $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 211 | diff result.$$name result2.$$name ; \ |
| 212 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 213 | fi ; fi ; done) |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 214 | @(echo > .memdump) |
| 215 | @echo "##" |
| 216 | @echo "## XML push regression tests" |
| 217 | @echo "##" |
| 218 | @echo "## You should see one warning on entity 'title.xml' for ent2" |
| 219 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 220 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 221 | name=`basename $$i`; \ |
| 222 | if [ ! -d $$i ] ; then \ |
| 223 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 224 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 225 | $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 226 | else \ |
| 227 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 228 | $(CHECKER) $(top_builddir)/xmllint --push $$i > result.$$name ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 229 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 230 | $(CHECKER) $(top_builddir)/xmllint --push result.$$name > result2.$$name ; \ |
Daniel Veillard | 3e5bb8e | 2001-06-27 16:34:34 +0000 | [diff] [blame] | 231 | diff result.$$name result2.$$name ; \ |
| 232 | rm result.$$name result2.$$name ; \ |
| 233 | fi ; fi ; done) |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 234 | @echo "##" |
| 235 | @echo "## XML regression tests on memory" |
| 236 | @echo "##" |
Daniel Veillard | de57c61 | 2001-04-23 09:13:36 +0000 | [diff] [blame] | 237 | @echo "## You should see two warnings on entity 'title.xml' for ent2" |
| 238 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 239 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 240 | name=`basename $$i`; \ |
| 241 | if [ ! -d $$i ] ; then \ |
| 242 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 243 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 244 | $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 245 | else \ |
| 246 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 247 | $(CHECKER) $(top_builddir)/xmllint --memory $$i > result.$$name ; \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 248 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 249 | diff $(srcdir)/result/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 250 | $(CHECKER) $(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \ |
Daniel Veillard | a6d8eb6 | 2000-12-27 10:46:47 +0000 | [diff] [blame] | 251 | diff result.$$name result2.$$name ; \ |
| 252 | rm result.$$name result2.$$name ; \ |
| 253 | fi ; fi ; done) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 254 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 255 | Docbtests : xmllint$(EXEEXT) |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 256 | @(echo > .memdump) |
| 257 | @echo "##" |
| 258 | @echo "## SGML DocBook regression tests" |
| 259 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 260 | -@(for i in $(srcdir)/test/DocBook/*.sgm ; do \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 261 | name=`basename $$i .sgm`; \ |
| 262 | if [ ! -d $$i ] ; then \ |
| 263 | if [ ! -f $(srcdir)/result/DocBook/$$name.xml ] ; then \ |
| 264 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 265 | $(CHECKER) $(top_builddir)/xmllint --sgml $$i > $(srcdir)/result/DocBook/$$name.xml ; \ |
| 266 | $(CHECKER) $(top_builddir)/xmllint --valid --noout $(srcdir)/result/DocBook/$$name.xml ; \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 267 | else \ |
| 268 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 269 | $(CHECKER) $(top_builddir)/xmllint --sgml $$i > result.$$name ; \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 270 | diff $(srcdir)/result/DocBook/$$name.xml result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 271 | $(CHECKER) $(top_builddir)/xmllint --valid --noout result.$$name ; \ |
Daniel Veillard | 89cad53 | 2001-10-22 09:46:13 +0000 | [diff] [blame] | 272 | rm result.$$name ; \ |
| 273 | fi ; fi ; done) |
| 274 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 275 | XMLenttests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 276 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 277 | @echo "##" |
| 278 | @echo "## XML entity subst regression tests" |
| 279 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 280 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 281 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 282 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 283 | if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ |
| 284 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 285 | $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 286 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 287 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 288 | $(CHECKER) $(top_builddir)/xmllint --noent $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 289 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 290 | $(CHECKER) $(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 291 | diff result.$$name result2.$$name ; \ |
| 292 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 293 | fi ; fi ; done) |
| 294 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 295 | URItests : testURI$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 296 | @(echo > .memdump) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 297 | @echo "##" |
| 298 | @echo "## URI module regression tests" |
| 299 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 300 | -@(for i in $(srcdir)/test/URI/*.data ; do \ |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 301 | name=`basename $$i`; \ |
| 302 | if [ ! -d $$i ] ; then \ |
| 303 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 304 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 305 | $(CHECKER) $(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] | 306 | else \ |
| 307 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 308 | $(CHECKER) $(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] | 309 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 310 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 311 | rm result.$$name ; \ |
| 312 | fi ; fi ; done) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 313 | -@(for i in $(srcdir)/test/URI/*.uri ; do \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 314 | name=`basename $$i`; \ |
| 315 | if [ ! -d $$i ] ; then \ |
| 316 | if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ |
| 317 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 318 | $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 319 | else \ |
| 320 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 321 | $(CHECKER) $(top_builddir)/testURI < $$i > result.$$name ; \ |
Daniel Veillard | b6e7fdb | 2001-02-02 17:07:32 +0000 | [diff] [blame] | 322 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 323 | diff $(srcdir)/result/URI/$$name result.$$name ; \ |
| 324 | rm result.$$name ; \ |
| 325 | fi ; fi ; done) |
Daniel Veillard | 98a7916 | 2000-09-04 11:15:39 +0000 | [diff] [blame] | 326 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 327 | XPathtests : testXPath$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 328 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 329 | @echo "##" |
| 330 | @echo "## XPath regression tests" |
| 331 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 332 | -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 333 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 334 | for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 335 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 336 | if [ ! -d $$i ] ; then \ |
| 337 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 338 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 339 | $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 340 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 341 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 342 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 343 | $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 344 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 345 | diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ |
| 346 | rm result.$$name ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 347 | fi ; fi ; done ; \ |
| 348 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 349 | if [ ! -d $$i ] ; then \ |
| 350 | doc=`basename $$i`; \ |
| 351 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 352 | if [ ! -f $$j ] ; then continue ; fi ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 353 | name=`basename $$j`; \ |
| 354 | if [ ! -d $$j ] ; then \ |
| 355 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 356 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 357 | $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 358 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 359 | else \ |
| 360 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 361 | $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ |
Daniel Veillard | 9e7160d | 2001-03-18 23:17:47 +0000 | [diff] [blame] | 362 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 363 | diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ |
| 364 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 365 | fi ; fi ; done ; fi ; done) |
| 366 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 367 | XPtrtests : testXPath$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 368 | @(echo > .memdump) |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 369 | @echo "##" |
| 370 | @echo "## XPointer regression tests" |
| 371 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 372 | -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ |
Daniel Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 373 | then echo Skipping debug not compiled in ; exit 0 ; fi ; \ |
| 374 | for i in $(srcdir)/test/XPath/docs/* ; do \ |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 375 | if [ ! -d $$i ] ; then \ |
| 376 | doc=`basename $$i`; \ |
| 377 | for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ |
| 378 | if [ ! -f $$j ] ; then continue ; fi ; \ |
| 379 | name=`basename $$j`; \ |
| 380 | if [ ! -d $$j ] ; then \ |
| 381 | if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ |
| 382 | echo New test file $$name ; \ |
| 383 | ./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ |
| 384 | else \ |
| 385 | echo Testing $$name ; \ |
| 386 | ./testXPath -xptr -f -i $$i $$j > result.$$name ; \ |
| 387 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 388 | diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \ |
| 389 | rm result.$$name ; \ |
| 390 | fi ; fi ; done ; fi ; done) |
| 391 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 392 | XIncludetests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 393 | @(echo > .memdump) |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 394 | @echo "##" |
| 395 | @echo "## XInclude regression tests" |
| 396 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 397 | -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 398 | name=`basename $$i`; \ |
| 399 | if [ ! -d $$i ] ; then \ |
| 400 | if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ |
| 401 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 402 | $(CHECKER) $(top_builddir)/xmllint --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 403 | else \ |
| 404 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 405 | $(CHECKER) $(top_builddir)/xmllint --xinclude $$i > result.$$name ; \ |
Daniel Veillard | bf43275 | 2000-11-12 15:56:56 +0000 | [diff] [blame] | 406 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 407 | diff $(srcdir)/result/XInclude/$$name result.$$name ; \ |
| 408 | rm result.$$name ; \ |
| 409 | fi ; fi ; done) |
| 410 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 411 | Scripttests : xmllint$(EXEEXT) |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 412 | @(echo > .memdump) |
| 413 | @echo "##" |
| 414 | @echo "## Scripts regression tests" |
| 415 | @echo "## Some of the base computations may be different if srcdir != ." |
| 416 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 417 | -@(for i in $(srcdir)/test/scripts/*.script ; do \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 418 | name=`basename $$i .script`; \ |
| 419 | xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \ |
| 420 | if [ -f $$xml ] ; then \ |
| 421 | if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \ |
| 422 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 423 | $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name ; \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 424 | else \ |
| 425 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 426 | $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name ; \ |
Daniel Veillard | b8c9be9 | 2001-07-09 16:01:19 +0000 | [diff] [blame] | 427 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 428 | diff $(srcdir)/result/scripts/$$name result.$$name ; \ |
| 429 | rm result.$$name ; \ |
| 430 | fi ; fi ; done) |
| 431 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 432 | Catatests : xmlcatalog$(EXEEXT) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 433 | @(echo > .memdump) |
| 434 | @echo "##" |
| 435 | @echo "## Catalog regression tests" |
| 436 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 437 | -@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 438 | name=`basename $$i .script`; \ |
| 439 | xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \ |
| 440 | if [ -f $$xml ] ; then \ |
| 441 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 442 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 443 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i > $(srcdir)/result/catalogs/$$name ; \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 444 | else \ |
| 445 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 446 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i > result.$$name ; \ |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 447 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 448 | diff $(srcdir)/result/catalogs/$$name result.$$name ; \ |
| 449 | rm result.$$name ; \ |
| 450 | fi ; fi ; done) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 451 | -@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 452 | name=`basename $$i .script`; \ |
| 453 | sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \ |
| 454 | if [ -f $$sgml ] ; then \ |
| 455 | if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ |
| 456 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 457 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 458 | else \ |
| 459 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 460 | $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 461 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 462 | diff $(srcdir)/result/catalogs/$$name result.$$name ; \ |
| 463 | rm result.$$name ; \ |
| 464 | fi ; fi ; done) |
| 465 | @echo "Add and del operations on XML Catalogs" |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 466 | -@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 467 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 468 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 469 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 470 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 471 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 472 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 473 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 474 | diff result/catalogs/mycatalog.full result/catalogs/mycatalog; \ |
| 475 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 476 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 477 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 478 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 479 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 480 | $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 result/catalogs/mycatalog; \ |
Daniel Veillard | c853b32 | 2001-11-06 15:24:37 +0000 | [diff] [blame] | 481 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 482 | diff result/catalogs/mycatalog.empty result/catalogs/mycatalog; \ |
| 483 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ |
| 484 | rm -f result/catalogs/mycatalog) |
Daniel Veillard | cda9692 | 2001-08-21 10:56:31 +0000 | [diff] [blame] | 485 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 486 | SVGtests : xmllint$(EXEEXT) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 487 | @echo "##" |
| 488 | @echo "## SVG parsing regression tests" |
| 489 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 490 | -@(for i in $(srcdir)/test/SVG/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 491 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 492 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 493 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 494 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 495 | $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 496 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 497 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 498 | $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 499 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 500 | $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 501 | diff result.$$name result2.$$name ; \ |
| 502 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 503 | fi ; fi ; done) |
| 504 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 505 | Threadtests : testThreads$(EXEEXT) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 506 | @echo "##" |
| 507 | @echo "## Threaded regression tests" |
| 508 | @echo "##" |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 509 | $(CHECKER) $(top_builddir)/testThreads |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 510 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 511 | SAXtests : testSAX$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 512 | @(echo > .memdump) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 513 | @echo "##" |
| 514 | @echo "## SAX callbacks regression tests" |
| 515 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 516 | -@(for i in $(srcdir)/test/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 517 | name=`basename $$i`; \ |
| 518 | if [ ! -d $$i ] ; then \ |
| 519 | if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ |
| 520 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 521 | $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 522 | else \ |
| 523 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 524 | $(CHECKER) $(top_builddir)/testSAX $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 525 | diff $(srcdir)/SAXresult/$$name result.$$name ; \ |
| 526 | rm result.$$name ; \ |
| 527 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 528 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 529 | |
Daniel Veillard | 07be19b | 2002-02-08 14:20:35 +0000 | [diff] [blame] | 530 | Validtests : xmllint$(EXEEXT) |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 531 | @(echo > .memdump) |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 532 | @echo "##" |
| 533 | @echo "## Valid documents regression tests" |
| 534 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 535 | -@(for i in $(srcdir)/test/VCM/* ; do \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 536 | name=`basename $$i`; \ |
| 537 | if [ ! -d $$i ] ; then \ |
| 538 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 539 | $(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 540 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 541 | fi ; done ; exit 0) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 542 | @echo "##" |
| 543 | @echo "## Validity checking regression tests" |
| 544 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 545 | -@(for i in $(srcdir)/test/VC/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 546 | name=`basename $$i`; \ |
| 547 | if [ ! -d $$i ] ; then \ |
| 548 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 549 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 550 | $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 551 | else \ |
| 552 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 553 | $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 554 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 555 | diff $(srcdir)/result/VC/$$name result.$$name ; \ |
| 556 | rm result.$$name ; \ |
| 557 | fi ; fi ; done) |
| 558 | @echo "##" |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 559 | @echo "## General documents valid regression tests" |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 560 | @echo "##" |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 561 | -@(for i in $(srcdir)/test/valid/* ; do \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 562 | name=`basename $$i`; \ |
| 563 | if [ ! -d $$i ] ; then \ |
| 564 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 565 | echo New test file $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 566 | $(CHECKER) $(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] | 567 | else \ |
| 568 | echo Testing $$name ; \ |
Daniel Veillard | 4b3a84f | 2002-03-19 14:36:46 +0000 | [diff] [blame] | 569 | $(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ |
Daniel Veillard | dab4cb3 | 2001-04-20 13:03:48 +0000 | [diff] [blame] | 570 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 571 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 572 | diff $(srcdir)/result/valid/$$name.err error.$$name ; \ |
| 573 | rm result.$$name error.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 574 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 575 | |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 576 | Regexptests: testRegexp$(EXEEXT) |
| 577 | @(echo > .memdump) |
| 578 | @echo "##" |
| 579 | @echo "## Regexp regression tests" |
| 580 | @echo "##" |
| 581 | -@(for i in $(srcdir)/test/regexp/* ; do \ |
| 582 | name=`basename $$i`; \ |
| 583 | if [ ! -d $$i ] ; then \ |
| 584 | if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \ |
| 585 | echo New test file $$name ; \ |
| 586 | $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \ |
| 587 | else \ |
| 588 | echo Testing $$name ; \ |
| 589 | $(CHECKER) $(top_builddir)/testRegexp -i $$i > result.$$name ; \ |
| 590 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 591 | diff $(srcdir)/result/regexp/$$name result.$$name ; \ |
| 592 | rm result.$$name ; \ |
| 593 | fi ; fi ; done) |
| 594 | |
| 595 | Automatatests: testAutomata$(EXEEXT) |
| 596 | @(echo > .memdump) |
| 597 | @echo "##" |
| 598 | @echo "## Automata regression tests" |
| 599 | @echo "##" |
| 600 | -@(for i in $(srcdir)/test/automata/* ; do \ |
| 601 | name=`basename $$i`; \ |
| 602 | if [ ! -d $$i ] ; then \ |
| 603 | if [ ! -f $(srcdir)/result/automata/$$name ] ; then \ |
| 604 | echo New test file $$name ; \ |
| 605 | $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \ |
| 606 | else \ |
| 607 | echo Testing $$name ; \ |
| 608 | $(CHECKER) $(top_builddir)/testAutomata $$i > result.$$name ; \ |
| 609 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 610 | diff $(srcdir)/result/automata/$$name result.$$name ; \ |
| 611 | rm result.$$name ; \ |
| 612 | fi ; fi ; done) |
| 613 | |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 614 | C14Ntests : testC14N$(EXEEXT) |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 615 | @echo "##" |
| 616 | @echo "## C14N and XPath regression tests" |
| 617 | @echo "##" |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 618 | -@(for m in with-comments without-comments exc-without-comments ; do \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 619 | for i in $(srcdir)/test/c14n/$$m/*.xml ; do \ |
| 620 | if [ ! -d $$i ] ; then \ |
| 621 | name=`basename $$i .xml`; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 622 | echo Testing $$m/$$name; \ |
| 623 | cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 624 | if [ -e $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 625 | cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \ |
| 626 | if [ -e $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \ |
| 627 | cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \ |
| 628 | fi; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 629 | fi; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 630 | $$cmdline > $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 631 | if [ $$? -eq 0 ]; then \ |
Aleksey Sanin | c57f9c1 | 2002-05-31 19:14:57 +0000 | [diff] [blame] | 632 | diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 633 | if [ $$? -ne 0 ]; then \ |
| 634 | echo "Test failed"; \ |
Aleksey Sanin | f8cb6dd | 2002-06-04 04:27:06 +0000 | [diff] [blame] | 635 | cat $(srcdir)/test/c14n/test.tmp; \ |
Aleksey Sanin | 508a101 | 2002-05-31 06:32:32 +0000 | [diff] [blame] | 636 | fi; \ |
| 637 | else \ |
| 638 | echo "C14N failed"; \ |
| 639 | fi; \ |
| 640 | fi; \ |
| 641 | rm -f $(srcdir)/test/c14n/test.tmp; \ |
| 642 | done; \ |
| 643 | done) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 644 | |
| 645 | Schemastests: testSchemas$(EXEEXT) |
| 646 | @(echo > .memdump) |
| 647 | @echo "##" |
| 648 | @echo "## Schemas regression tests" |
| 649 | @echo "##" |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 650 | -@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \ |
| 651 | name=`basename $$i | sed 's+_.*++'`; \ |
| 652 | sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \ |
| 653 | for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \ |
| 654 | xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ |
| 655 | if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \ |
| 656 | then \ |
Daniel Veillard | 6231e84 | 2002-04-18 11:54:04 +0000 | [diff] [blame] | 657 | echo New test file "$$name"_"$$sno"_"$$xno" ; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 658 | $(CHECKER) $(top_builddir)/testSchemas $$i $$j \ |
| 659 | > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ |
| 660 | 2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \ |
| 661 | else \ |
Daniel Veillard | 6231e84 | 2002-04-18 11:54:04 +0000 | [diff] [blame] | 662 | echo Testing "$$name"_"$$sno"_"$$xno" ; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 663 | $(CHECKER) $(top_builddir)/testSchemas $$i $$j \ |
| 664 | > res.$$name 2> err.$$name;\ |
| 665 | grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ |
| 666 | diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ |
| 667 | res.$$name;\ |
| 668 | diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \ |
| 669 | err.$$name;\ |
Daniel Veillard | 88c5891 | 2002-04-23 07:12:20 +0000 | [diff] [blame] | 670 | grep Unimplemented err.$$name; \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 671 | rm res.$$name err.$$name ; \ |
| 672 | fi ; \ |
| 673 | done; done) |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 674 | |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 675 | dist-hook: libxml.spec |
| 676 | -cp libxml.spec $(distdir) |
Daniel Veillard | d3b0882 | 2001-12-05 12:03:33 +0000 | [diff] [blame] | 677 | (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] | 678 | |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 679 | cleantar: |
Daniel Veillard | 55253e2 | 2002-02-18 14:32:39 +0000 | [diff] [blame] | 680 | @(rm -f libxml*.tar.gz COPYING.LIB) |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 681 | |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 682 | rpm: cleantar |
| 683 | @(unset CDPATH ; $(MAKE) dist && rpm -ta $(distdir).tar.gz) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 684 | |
| 685 | ## We create xml2Conf.sh here and not from configure because we want |
| 686 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 687 | ## the value NONE in configure if the user doesn't specify them (this |
| 688 | ## is an autoconf feature, not a bug). |
| 689 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 690 | CLEANFILES=xml2Conf.sh |
| 691 | |
| 692 | confexecdir=$(libdir) |
| 693 | confexec_DATA = xml2Conf.sh |
Daniel Veillard | 3739b98 | 2001-06-19 12:51:30 +0000 | [diff] [blame] | 694 | EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml.spec \ |
Daniel Veillard | 55253e2 | 2002-02-18 14:32:39 +0000 | [diff] [blame] | 695 | libxml.m4 Copyright check-xml-test-suite.py \ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 696 | example/Makefile.am example/gjobread.c example/gjobs.xml \ |
Daniel Veillard | 07385fd | 2001-06-23 21:55:48 +0000 | [diff] [blame] | 697 | $(man_MANS) libxml-2.0.pc.in \ |
Bjorn Reese | 026d29f | 2002-01-19 15:40:18 +0000 | [diff] [blame] | 698 | trionan.c trionan.h triostr.c triostr.h trio.c trio.h \ |
Daniel Veillard | db0eb8d | 2002-01-13 13:35:00 +0000 | [diff] [blame] | 699 | triop.h triodef.h libxml.h \ |
Daniel Veillard | 8651f53 | 2002-04-17 09:06:27 +0000 | [diff] [blame] | 700 | testThreadsWin32.c genUnicode.py TODO_SCHEMAS |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 701 | |
| 702 | pkgconfigdir = $(libdir)/pkgconfig |
| 703 | pkgconfig_DATA = libxml-2.0.pc |
| 704 | |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 705 | # |
| 706 | # Instll the tests program sources as examples |
| 707 | # |
| 708 | BASE_DIR=@HTML_DIR@ |
| 709 | DOC_MODULE=libxml2-$(VERSION) |
| 710 | EXAMPLES_DIR=$(BASE_DIR)/$(DOC_MODULE)/examples |
| 711 | |
| 712 | install-data-local: |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 713 | $(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
| 714 | -@INSTALL@ -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
Daniel Veillard | 3606581 | 2002-01-24 15:02:46 +0000 | [diff] [blame] | 715 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR) |
| 716 | -@INSTALL@ -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR) |
| 717 | -@INSTALL@ -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR) |
| 718 | -@INSTALL@ -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR) |
| 719 | -@INSTALL@ -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR) |