1998-07-24 19:24:09 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
2001-06-29 21:31:07 +00:00
|
|
|
|
2002-09-20 12:01:39 +00:00
|
|
|
SUBDIRS = include . doc example @PYTHON_SUBDIR@
|
1999-02-06 18:12:01 +00:00
|
|
|
|
2002-09-21 13:08:14 +00:00
|
|
|
DIST_SUBDIRS = include . doc example python
|
|
|
|
|
2002-11-04 17:06:52 +00:00
|
|
|
INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@
|
1999-06-22 21:49:07 +00:00
|
|
|
|
2003-01-23 18:29:16 +00:00
|
|
|
noinst_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \
|
2003-09-13 00:16:32 +00:00
|
|
|
testThreads testC14N testAutomata testRegexp \
|
2003-01-23 18:29:16 +00:00
|
|
|
testReader
|
1998-10-17 06:47:46 +00:00
|
|
|
|
2001-08-20 00:08:40 +00:00
|
|
|
bin_PROGRAMS = xmllint xmlcatalog
|
2000-09-24 18:49:59 +00:00
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
bin_SCRIPTS=xml2-config
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libxml2.la
|
2002-07-01 21:52:03 +00:00
|
|
|
libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@
|
|
|
|
|
2001-05-02 16:41:11 +00:00
|
|
|
if WITH_TRIO_SOURCES
|
2001-03-27 12:47:33 +00:00
|
|
|
libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \
|
|
|
|
parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \
|
|
|
|
valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \
|
2001-04-23 13:41:34 +00:00
|
|
|
xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
|
2002-04-16 15:50:10 +00:00
|
|
|
catalog.c globals.c threads.c c14n.c \
|
2002-05-23 11:55:49 +00:00
|
|
|
xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
|
2003-09-28 18:58:27 +00:00
|
|
|
triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \
|
2003-10-20 22:32:39 +00:00
|
|
|
xmlwriter.c legacy.c chvalid.c
|
2001-05-02 16:41:11 +00:00
|
|
|
else
|
|
|
|
libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \
|
|
|
|
parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \
|
|
|
|
valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \
|
2001-05-10 14:17:55 +00:00
|
|
|
xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
|
2002-04-16 15:50:10 +00:00
|
|
|
catalog.c globals.c threads.c c14n.c \
|
2002-12-09 14:13:43 +00:00
|
|
|
xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
|
2003-09-28 18:58:27 +00:00
|
|
|
xmlreader.c relaxng.c dict.c SAX2.c \
|
2003-10-20 22:32:39 +00:00
|
|
|
xmlwriter.c legacy.c chvalid.c
|
2001-05-02 16:41:11 +00:00
|
|
|
endif
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
DEPS = $(top_builddir)/libxml2.la
|
2003-08-14 01:23:25 +00:00
|
|
|
LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@
|
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
|
2002-03-06 18:42:40 +00:00
|
|
|
man_MANS = xml2-config.1 libxml.3
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
m4datadir = $(datadir)/aclocal
|
|
|
|
m4data_DATA = libxml.m4
|
|
|
|
|
|
|
|
xmllint_SOURCES=xmllint.c
|
2000-04-03 19:48:13 +00:00
|
|
|
xmllint_LDFLAGS =
|
|
|
|
xmllint_DEPENDENCIES = $(DEPS)
|
2001-02-23 17:55:21 +00:00
|
|
|
xmllint_LDADD= @RDL_LIBS@ $(LDADDS)
|
1998-07-24 19:24:09 +00:00
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
testSAX_SOURCES=testSAX.c
|
1999-06-02 17:44:04 +00:00
|
|
|
testSAX_LDFLAGS =
|
|
|
|
testSAX_DEPENDENCIES = $(DEPS)
|
2001-02-23 17:55:21 +00:00
|
|
|
testSAX_LDADD= $(LDADDS)
|
1999-06-02 17:44:04 +00:00
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
testHTML_SOURCES=testHTML.c
|
1999-07-05 16:50:46 +00:00
|
|
|
testHTML_LDFLAGS =
|
|
|
|
testHTML_DEPENDENCIES = $(DEPS)
|
2001-02-23 17:55:21 +00:00
|
|
|
testHTML_LDADD= $(LDADDS)
|
1999-07-05 16:50:46 +00:00
|
|
|
|
2001-08-20 00:08:40 +00:00
|
|
|
xmlcatalog_SOURCES=xmlcatalog.c
|
|
|
|
xmlcatalog_LDFLAGS =
|
|
|
|
xmlcatalog_DEPENDENCIES = $(DEPS)
|
2001-11-07 12:53:46 +00:00
|
|
|
xmlcatalog_LDADD= @RDL_LIBS@ $(LDADDS)
|
2001-05-10 14:17:55 +00:00
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
testXPath_SOURCES=testXPath.c
|
1999-07-15 14:24:29 +00:00
|
|
|
testXPath_LDFLAGS =
|
|
|
|
testXPath_DEPENDENCIES = $(DEPS)
|
2001-02-23 17:55:21 +00:00
|
|
|
testXPath_LDADD= $(LDADDS)
|
1999-07-15 14:24:29 +00:00
|
|
|
|
2002-03-04 17:09:44 +00:00
|
|
|
testC14N_SOURCES=testC14N.c
|
|
|
|
testC14N_LDFLAGS =
|
|
|
|
testC14N_DEPENDENCIES = $(DEPS)
|
|
|
|
testC14N_LDADD= $(LDADDS)
|
|
|
|
|
2001-10-17 11:30:37 +00:00
|
|
|
testThreads_SOURCES=testThreads.c
|
|
|
|
testThreads_LDFLAGS =
|
|
|
|
testThreads_DEPENDENCIES = $(DEPS)
|
|
|
|
testThreads_LDADD= $(LDADDS)
|
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
testURI_SOURCES=testURI.c
|
2000-04-03 19:48:13 +00:00
|
|
|
testURI_LDFLAGS =
|
|
|
|
testURI_DEPENDENCIES = $(DEPS)
|
2001-02-23 17:55:21 +00:00
|
|
|
testURI_LDADD= $(LDADDS)
|
2000-04-03 19:48:13 +00:00
|
|
|
|
2002-04-16 15:50:10 +00:00
|
|
|
testRegexp_SOURCES=testRegexp.c
|
|
|
|
testRegexp_LDFLAGS =
|
|
|
|
testRegexp_DEPENDENCIES = $(DEPS)
|
|
|
|
testRegexp_LDADD= $(LDADDS)
|
|
|
|
|
|
|
|
testAutomata_SOURCES=testAutomata.c
|
|
|
|
testAutomata_LDFLAGS =
|
|
|
|
testAutomata_DEPENDENCIES = $(DEPS)
|
|
|
|
testAutomata_LDADD= $(LDADDS)
|
|
|
|
|
|
|
|
testSchemas_SOURCES=testSchemas.c
|
|
|
|
testSchemas_LDFLAGS =
|
|
|
|
testSchemas_DEPENDENCIES = $(DEPS)
|
|
|
|
testSchemas_LDADD= $(LDADDS)
|
|
|
|
|
2003-01-23 18:29:16 +00:00
|
|
|
testRelax_SOURCES=testRelax.c
|
|
|
|
testRelax_LDFLAGS =
|
|
|
|
testRelax_DEPENDENCIES = $(DEPS)
|
|
|
|
testRelax_LDADD= $(LDADDS)
|
|
|
|
|
2002-12-09 14:13:43 +00:00
|
|
|
testReader_SOURCES=testReader.c
|
|
|
|
testReader_LDFLAGS =
|
|
|
|
testReader_DEPENDENCIES = $(DEPS)
|
|
|
|
testReader_LDADD= $(LDADDS)
|
|
|
|
|
2003-04-24 17:12:57 +00:00
|
|
|
#testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
|
|
|
|
#testOOM_LDFLAGS =
|
|
|
|
#testOOM_DEPENDENCIES = $(DEPS)
|
|
|
|
#testOOM_LDADD= $(LDADDS)
|
2003-04-24 16:06:47 +00:00
|
|
|
|
1999-03-05 22:14:01 +00:00
|
|
|
check-local: tests
|
|
|
|
|
2000-10-01 15:53:30 +00:00
|
|
|
testall : tests SVGtests SAXtests
|
1999-08-10 19:04:08 +00:00
|
|
|
|
2003-09-30 12:36:01 +00:00
|
|
|
tests: XMLtests XMLenttests NStests @READER_TEST@ @TEST_SAX@ @TEST_PUSH@ @TEST_HTML@ @TEST_PHTML@ @TEST_VALID@ URItests @TEST_XPATH@ @TEST_XPTR@ @TEST_XINCLUDE@ @TEST_C14N@ @TEST_DEBUG@ @TEST_CATALOG@ @TEST_REGEXPS@ @TEST_SCHEMAS@ @TEST_THREADS@ Timingtests @TEST_VTIME@
|
2002-09-20 12:01:39 +00:00
|
|
|
@(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; $(MAKE) tests ; fi)
|
1999-06-02 17:44:04 +00:00
|
|
|
|
2002-03-19 14:36:46 +00:00
|
|
|
valgrind:
|
|
|
|
@echo '## Running the regression tests under Valgrind'
|
|
|
|
@echo '## Go get a cup of coffee it is gonna take a while ...'
|
|
|
|
$(MAKE) CHECKER='valgrind -q' tests
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
HTMLtests : testHTML$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## HTML regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/HTML/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
1999-07-07 07:32:15 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
|
1999-07-07 07:32:15 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/HTML/$$name result.$$name ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff result.$$name result2.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-10-14 09:10:25 +00:00
|
|
|
rm result.$$name result2.$$name error.$$name ; \
|
1999-07-07 07:32:15 +00:00
|
|
|
fi ; fi ; done)
|
2003-09-30 12:36:01 +00:00
|
|
|
|
|
|
|
HTMLPushtests : testHTML$(EXEEXT)
|
2000-08-12 21:12:04 +00:00
|
|
|
@echo "## Push HTML regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/HTML/* ; do \
|
2000-08-12 21:12:04 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/HTML/$$name result.$$name ; \
|
|
|
|
cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
|
|
|
|
cut -b 1-15 error.$$name > errorcut2.$$name; \
|
|
|
|
diff -b errorcut.$$name errorcut2.$$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff result.$$name result2.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
@echo "## HTML SAX regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/HTML/* ; do \
|
2000-08-12 21:12:04 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
rm result.$$name.sax ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
@echo "## Push HTML SAX regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/HTML/* ; do \
|
2000-08-12 21:12:04 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
rm result.$$name.sax ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
XMLtests : xmllint$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## XML regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
1999-06-02 17:44:04 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
if [ ! -f $(srcdir)/result/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
1999-06-02 17:44:04 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/$$name result.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff result.$$name result2.$$name` ;\
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
rm result.$$name result2.$$name ; \
|
1999-06-02 17:44:04 +00:00
|
|
|
fi ; fi ; done)
|
2003-09-30 12:36:01 +00:00
|
|
|
@echo "## XML regression tests on memory"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
2001-06-27 16:34:34 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2003-09-30 12:36:01 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2001-06-27 16:34:34 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \
|
2003-09-30 12:36:01 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2001-06-27 16:34:34 +00:00
|
|
|
diff $(srcdir)/result/$$name result.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2001-06-27 16:34:34 +00:00
|
|
|
diff result.$$name result2.$$name ; \
|
|
|
|
rm result.$$name result2.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2003-09-30 12:36:01 +00:00
|
|
|
|
|
|
|
XMLPushtests: xmllint$(EXEEXT)
|
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## XML push regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
2000-12-27 10:46:47 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2003-09-30 12:36:01 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2000-12-27 10:46:47 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \
|
2003-09-30 12:36:01 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2000-12-27 10:46:47 +00:00
|
|
|
diff $(srcdir)/result/$$name result.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff result.$$name result2.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-12-27 10:46:47 +00:00
|
|
|
rm result.$$name result2.$$name ; \
|
|
|
|
fi ; fi ; done)
|
1999-06-02 17:44:04 +00:00
|
|
|
|
2003-09-11 23:42:01 +00:00
|
|
|
NStests : xmllint$(EXEEXT)
|
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## XML Namespaces regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/namespaces/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(CHECKER) $(top_builddir)/xmllint $$i \
|
|
|
|
2> $(srcdir)/result/namespaces/$$name.err \
|
|
|
|
> $(srcdir)/result/namespaces/$$name ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
|
2003-09-11 23:42:01 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
|
|
|
diff $(srcdir)/result/namespaces/$$name result.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/namespaces/$$name.err error.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2003-09-11 23:42:01 +00:00
|
|
|
rm result.$$name error.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
Docbtests : xmllint$(EXEEXT)
|
2001-10-22 09:46:13 +00:00
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
XMLenttests : xmllint$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## XML entity subst regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
1998-07-24 19:24:09 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
1998-07-24 19:24:09 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/noent/$$name result.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff result.$$name result2.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
rm result.$$name result2.$$name ; \
|
1998-07-24 19:24:09 +00:00
|
|
|
fi ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
URItests : testURI$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2000-09-04 11:15:39 +00:00
|
|
|
@echo "## URI module regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/URI/*.data ; do \
|
2000-09-04 11:15:39 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2000-09-04 11:15:39 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i 2>&1 > result.$$name ; \
|
2000-09-04 11:15:39 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/URI/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-09-04 11:15:39 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/URI/*.uri ; do \
|
2001-02-02 17:07:32 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2001-02-02 17:07:32 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testURI < $$i 2>&1 > result.$$name ; \
|
2001-02-02 17:07:32 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/URI/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2001-02-02 17:07:32 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2000-09-04 11:15:39 +00:00
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
XPathtests : testXPath$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## XPath regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
|
2001-06-21 11:20:21 +00:00
|
|
|
then echo Skipping debug not compiled in ; exit 0 ; fi ; \
|
|
|
|
for i in $(srcdir)/test/XPath/expr/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
1999-07-15 14:24:29 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \
|
2001-03-18 23:17:47 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-07-15 14:24:29 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i 2>&1 > result.$$name ; \
|
2001-03-18 23:17:47 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/XPath/expr/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
rm result.$$name ; \
|
2001-06-21 11:20:21 +00:00
|
|
|
fi ; fi ; done ; \
|
|
|
|
for i in $(srcdir)/test/XPath/docs/* ; do \
|
1999-07-15 14:24:29 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
doc=`basename $$i`; \
|
|
|
|
for j in $(srcdir)/test/XPath/tests/$$doc* ; do \
|
2000-10-10 23:50:30 +00:00
|
|
|
if [ ! -f $$j ] ; then continue ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$j`; \
|
1999-07-15 14:24:29 +00:00
|
|
|
if [ ! -d $$j ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \
|
2001-03-18 23:17:47 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-07-15 14:24:29 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j 2>&1 > result.$$name ; \
|
2001-03-18 23:17:47 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/XPath/tests/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
rm result.$$name ; \
|
1999-07-15 14:24:29 +00:00
|
|
|
fi ; fi ; done ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
XPtrtests : testXPath$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2000-10-10 23:50:30 +00:00
|
|
|
@echo "## XPointer regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
|
2001-06-21 11:20:21 +00:00
|
|
|
then echo Skipping debug not compiled in ; exit 0 ; fi ; \
|
|
|
|
for i in $(srcdir)/test/XPath/docs/* ; do \
|
2000-10-10 23:50:30 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
doc=`basename $$i`; \
|
|
|
|
for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \
|
|
|
|
if [ ! -f $$j ] ; then continue ; fi ; \
|
|
|
|
name=`basename $$j`; \
|
|
|
|
if [ ! -d $$j ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2000-10-10 23:50:30 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j 2>&1 > result.$$name ; \
|
2000-10-10 23:50:30 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/XPath/xptr/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-10-10 23:50:30 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
XIncludetests : xmllint$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2000-11-12 15:56:56 +00:00
|
|
|
@echo "## XInclude regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
|
2000-11-12 15:56:56 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-08-14 14:11:30 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2000-11-12 15:56:56 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i 2>&1 > result.$$name | grep -v 'failed to load external entity' ; \
|
2000-11-12 15:56:56 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/XInclude/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2000-11-12 15:56:56 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
Scripttests : xmllint$(EXEEXT)
|
2001-07-09 16:01:19 +00:00
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Scripts regression tests"
|
|
|
|
@echo "## Some of the base computations may be different if srcdir != ."
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/scripts/*.script ; do \
|
2001-07-09 16:01:19 +00:00
|
|
|
name=`basename $$i .script`; \
|
|
|
|
xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \
|
|
|
|
if [ -f $$xml ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2001-07-09 16:01:19 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i 2>&1 > result.$$name ; \
|
2001-07-09 16:01:19 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/scripts/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2001-07-09 16:01:19 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
Catatests : xmlcatalog$(EXEEXT)
|
2001-08-21 10:56:31 +00:00
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Catalog regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/catalogs/*.script ; do \
|
2001-08-21 10:56:31 +00:00
|
|
|
name=`basename $$i .script`; \
|
|
|
|
xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \
|
|
|
|
if [ -f $$xml ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i > $(srcdir)/result/catalogs/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2001-08-21 10:56:31 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \
|
2001-08-21 10:56:31 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2001-08-21 10:56:31 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/catalogs/*.script ; do \
|
2001-11-06 15:24:37 +00:00
|
|
|
name=`basename $$i .script`; \
|
|
|
|
sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \
|
|
|
|
if [ -f $$sgml ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2001-11-06 15:24:37 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2001-11-06 15:24:37 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2003-10-02 22:28:19 +00:00
|
|
|
@echo "## Add and del operations on XML Catalogs"
|
2002-11-15 11:21:43 +00:00
|
|
|
-@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \
|
2001-11-06 15:24:37 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
2002-11-15 11:21:43 +00:00
|
|
|
rm -f $(srcdir)/result/catalogs/mycatalog)
|
2001-08-21 10:56:31 +00:00
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
SVGtests : xmllint$(EXEEXT)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## SVG parsing regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/SVG/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
1999-06-02 17:44:04 +00:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-06-02 17:44:04 +00:00
|
|
|
else \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/SVG/$$name result.$$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff result.$$name result2.$$name ; \
|
|
|
|
rm result.$$name result2.$$name ; \
|
1999-06-02 17:44:04 +00:00
|
|
|
fi ; fi ; done)
|
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
Threadtests : testThreads$(EXEEXT)
|
2001-10-17 11:30:37 +00:00
|
|
|
@echo "## Threaded regression tests"
|
2003-10-03 22:21:51 +00:00
|
|
|
-@($(CHECKER) $(top_builddir)/testThreads ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
|
|
|
|
exit 0)
|
2001-10-17 11:30:37 +00:00
|
|
|
|
2003-09-16 23:17:26 +00:00
|
|
|
Readertests : xmllint$(EXEEXT)
|
2003-09-15 14:50:06 +00:00
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Reader regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
|
2003-09-15 14:50:06 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/$$name.rdr result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2003-09-15 14:50:06 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2003-09-18 13:35:51 +00:00
|
|
|
@echo "## Reader on memory regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
|
2003-09-18 13:35:51 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/$$name.rdr result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2003-09-18 13:35:51 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2003-09-15 14:50:06 +00:00
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
SAXtests : testSAX$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## SAX callbacks regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
2003-09-03 13:10:37 +00:00
|
|
|
if [ ! -f $(srcdir)/result/$$name.sax ] ; then \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo New test file $$name ; \
|
2003-10-05 13:51:35 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/result/$$name.sax 2> /dev/null ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
else \
|
2003-10-05 13:51:35 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testSAX $$i > result.$$name 2> /dev/null ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/$$name.sax result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
1998-09-07 17:27:57 +00:00
|
|
|
|
2002-02-08 14:20:35 +00:00
|
|
|
Validtests : xmllint$(EXEEXT)
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2001-04-20 13:03:48 +00:00
|
|
|
@echo "## Valid documents regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/VCM/* ; do \
|
2001-04-20 13:03:48 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`;\
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2001-04-20 13:03:48 +00:00
|
|
|
fi ; done ; exit 0)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "## Validity checking regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/VC/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \
|
2001-04-20 13:03:48 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/VC/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2001-04-20 13:03:48 +00:00
|
|
|
@echo "## General documents valid regression tests"
|
2002-01-24 15:02:46 +00:00
|
|
|
-@(for i in $(srcdir)/test/valid/* ; do \
|
1999-08-10 19:04:08 +00:00
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2002-03-19 14:36:46 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \
|
2001-04-20 13:03:48 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/valid/$$name result.$$name ; \
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/valid/$$name.err error.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
1999-10-25 13:15:52 +00:00
|
|
|
rm result.$$name error.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
fi ; fi ; done)
|
1998-09-07 17:27:57 +00:00
|
|
|
|
2002-04-16 15:50:10 +00:00
|
|
|
Regexptests: testRegexp$(EXEEXT)
|
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Regexp regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/regexp/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2002-04-16 15:50:10 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i 2>&1 > result.$$name ; \
|
2002-04-16 15:50:10 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/regexp/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2002-04-16 15:50:10 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
|
|
|
Automatatests: testAutomata$(EXEEXT)
|
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Automata regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/automata/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/automata/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2002-04-16 15:50:10 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testAutomata $$i 2>&1 > result.$$name ; \
|
2002-04-16 15:50:10 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-02 22:28:19 +00:00
|
|
|
diff $(srcdir)/result/automata/$$name result.$$name` ; \
|
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2002-04-16 15:50:10 +00:00
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
2003-09-17 22:33:22 +00:00
|
|
|
$(srcdir)/dba100000.xml: dbgenattr.pl
|
|
|
|
@echo "## generating dba100000.xml"
|
|
|
|
@(dbgenattr.pl 100000 > $(srcdir)/dba100000.xml)
|
|
|
|
|
2003-09-28 18:58:27 +00:00
|
|
|
Timingtests: xmllint$(EXEEXT) $(srcdir)/dba100000.xml
|
2003-09-17 22:33:22 +00:00
|
|
|
@echo "## Timing tests to try to detect performance"
|
|
|
|
@echo "## as well a memory usage breakage when streaming"
|
2003-09-24 21:23:56 +00:00
|
|
|
@echo "## 1/ using the file interface"
|
|
|
|
@echo "## 2/ using the memory interface"
|
|
|
|
@echo "## 3/ repeated DOM parsing"
|
|
|
|
@echo "## 4/ repeated DOM validation"
|
2003-09-17 22:33:22 +00:00
|
|
|
-@(xmllint --stream --timing $(srcdir)/dba100000.xml; \
|
2003-09-18 22:03:46 +00:00
|
|
|
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
|
|
|
|
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
|
2003-09-17 22:33:22 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
exit 0)
|
|
|
|
-@(xmllint --stream --timing --memory $(srcdir)/dba100000.xml; \
|
2003-09-18 22:03:46 +00:00
|
|
|
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
|
|
|
|
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
|
2003-09-17 22:33:22 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
exit 0)
|
2003-09-24 21:23:56 +00:00
|
|
|
-@(xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
|
|
|
|
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
|
|
|
|
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
exit 0)
|
2003-09-28 18:58:27 +00:00
|
|
|
|
|
|
|
VTimingtests: xmllint$(EXEEXT)
|
2003-09-24 21:23:56 +00:00
|
|
|
-@(xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
|
|
|
|
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
|
|
|
|
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
exit 0)
|
2003-09-17 22:33:22 +00:00
|
|
|
|
2002-05-31 06:32:32 +00:00
|
|
|
C14Ntests : testC14N$(EXEEXT)
|
2002-06-04 04:27:06 +00:00
|
|
|
@echo "## C14N and XPath regression tests"
|
2002-05-31 06:32:32 +00:00
|
|
|
-@(for m in with-comments without-comments exc-without-comments ; do \
|
|
|
|
for i in $(srcdir)/test/c14n/$$m/*.xml ; do \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
name=`basename $$i .xml`; \
|
2002-06-04 04:27:06 +00:00
|
|
|
cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \
|
2002-10-15 08:43:17 +00:00
|
|
|
if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \
|
2002-06-04 04:27:06 +00:00
|
|
|
cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \
|
2002-10-15 08:43:17 +00:00
|
|
|
if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \
|
2002-06-04 04:27:06 +00:00
|
|
|
cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \
|
|
|
|
fi; \
|
2002-05-31 06:32:32 +00:00
|
|
|
fi; \
|
2002-06-04 04:27:06 +00:00
|
|
|
$$cmdline > $(srcdir)/test/c14n/test.tmp; \
|
2002-05-31 06:32:32 +00:00
|
|
|
if [ $$? -eq 0 ]; then \
|
2002-05-31 19:14:57 +00:00
|
|
|
diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \
|
2002-05-31 06:32:32 +00:00
|
|
|
if [ $$? -ne 0 ]; then \
|
2003-10-02 22:28:19 +00:00
|
|
|
echo "Test $$m/$$name failed"; \
|
2002-06-04 04:27:06 +00:00
|
|
|
cat $(srcdir)/test/c14n/test.tmp; \
|
2002-05-31 06:32:32 +00:00
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
echo "C14N failed"; \
|
|
|
|
fi; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2002-05-31 06:32:32 +00:00
|
|
|
fi; \
|
|
|
|
rm -f $(srcdir)/test/c14n/test.tmp; \
|
|
|
|
done; \
|
|
|
|
done)
|
2002-04-16 15:50:10 +00:00
|
|
|
|
|
|
|
Schemastests: testSchemas$(EXEEXT)
|
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Schemas regression tests"
|
2002-04-17 09:06:27 +00:00
|
|
|
-@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \
|
|
|
|
name=`basename $$i | sed 's+_.*++'`; \
|
|
|
|
sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \
|
|
|
|
for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \
|
2003-03-10 13:13:58 +00:00
|
|
|
if [ -f $$j ] ; then \
|
2002-04-17 09:06:27 +00:00
|
|
|
xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
|
|
|
|
if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \
|
|
|
|
then \
|
2002-04-18 11:54:04 +00:00
|
|
|
echo New test file "$$name"_"$$sno"_"$$xno" ; \
|
2002-04-17 09:06:27 +00:00
|
|
|
$(CHECKER) $(top_builddir)/testSchemas $$i $$j \
|
|
|
|
> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
|
|
|
|
2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2002-04-17 09:06:27 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/testSchemas $$i $$j \
|
2002-04-17 09:06:27 +00:00
|
|
|
> res.$$name 2> err.$$name;\
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
|
|
|
|
res.$$name;\
|
|
|
|
diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \
|
|
|
|
err.$$name;\
|
2003-10-02 22:28:19 +00:00
|
|
|
grep Unimplemented err.$$name`; \
|
|
|
|
if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo $$log ; fi ; \
|
2002-04-17 09:06:27 +00:00
|
|
|
rm res.$$name err.$$name ; \
|
2003-03-10 13:13:58 +00:00
|
|
|
fi ; fi ;\
|
2002-04-17 09:06:27 +00:00
|
|
|
done; done)
|
2002-04-16 15:50:10 +00:00
|
|
|
|
2003-02-05 13:19:53 +00:00
|
|
|
Relaxtests: xmllint$(EXEEXT)
|
2003-01-23 18:29:16 +00:00
|
|
|
@(echo > .memdump)
|
|
|
|
@echo "## Relax-NG regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/relaxng/*.rng ; do \
|
|
|
|
name=`basename $$i | sed 's+\.rng++'`; \
|
2003-02-09 14:22:17 +00:00
|
|
|
if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \
|
|
|
|
echo New schemas $$name ; \
|
|
|
|
$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
|
|
|
|
> $(srcdir)/result/relaxng/"$$name"_valid \
|
|
|
|
2> $(srcdir)/result/relaxng/"$$name"_err; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-02-09 14:22:17 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
|
2003-02-09 14:22:17 +00:00
|
|
|
> res.$$name 2> err.$$name;\
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/relaxng/"$$name"_valid \
|
|
|
|
res.$$name;\
|
|
|
|
diff $(srcdir)/result/relaxng/"$$name"_err \
|
|
|
|
err.$$name | grep -v "error detected at";\
|
2003-10-02 22:28:19 +00:00
|
|
|
grep Unimplemented err.$$name`; \
|
|
|
|
if [ -n "$$log" ] ; then echo schemas $$name result ; echo $$log ; fi ; \
|
2003-02-09 14:22:17 +00:00
|
|
|
rm res.$$name err.$$name ; \
|
|
|
|
fi; \
|
2003-01-23 18:29:16 +00:00
|
|
|
for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
|
|
|
|
if [ -f $$j ] ; then \
|
|
|
|
xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
|
|
|
|
if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
|
|
|
|
then \
|
|
|
|
echo New test file "$$name"_"$$xno" ; \
|
2003-02-05 13:19:53 +00:00
|
|
|
$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
|
2003-01-23 18:29:16 +00:00
|
|
|
> $(srcdir)/result/relaxng/"$$name"_"$$xno" \
|
|
|
|
2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-01-23 18:29:16 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
|
2003-01-23 18:29:16 +00:00
|
|
|
> res.$$name 2> err.$$name;\
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \
|
2003-04-15 23:32:22 +00:00
|
|
|
res.$$name;\
|
|
|
|
diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
|
|
|
|
err.$$name | grep -v "error detected at";\
|
2003-10-02 22:28:19 +00:00
|
|
|
grep Unimplemented err.$$name`; \
|
|
|
|
if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
|
2003-04-15 23:32:22 +00:00
|
|
|
rm res.$$name err.$$name ; \
|
|
|
|
fi ; fi ; \
|
|
|
|
done; done)
|
|
|
|
@echo "## Relax-NG streaming regression tests"
|
|
|
|
-@(for i in $(srcdir)/test/relaxng/*.rng ; do \
|
|
|
|
name=`basename $$i | sed 's+\.rng++'`; \
|
|
|
|
for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
|
|
|
|
if [ -f $$j ] ; then \
|
|
|
|
xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
|
|
|
|
if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
|
|
|
|
then \
|
|
|
|
echo New test file "$$name"_"$$xno" ; \
|
|
|
|
$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
|
|
|
|
> $(srcdir)/result/relaxng/"$$name"_"$$xno" \
|
|
|
|
2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
|
2003-09-10 10:51:05 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-04-15 23:32:22 +00:00
|
|
|
else \
|
2003-10-02 22:28:19 +00:00
|
|
|
log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \
|
2003-04-15 23:32:22 +00:00
|
|
|
> res.$$name 2> err.$$name;\
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
2003-10-03 22:21:51 +00:00
|
|
|
diff $(srcdir)/result/relaxng/"$$name"_"$$xno" res.$$name;\
|
|
|
|
if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" ] ; then \
|
|
|
|
diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
|
|
|
|
err.$$name | grep -v "error detected at";\
|
|
|
|
fi ; grep Unimplemented err.$$name`; \
|
2003-10-02 22:28:19 +00:00
|
|
|
if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
|
2003-01-23 18:29:16 +00:00
|
|
|
rm res.$$name err.$$name ; \
|
|
|
|
fi ; fi ; \
|
|
|
|
done; done)
|
|
|
|
|
2003-03-21 21:22:48 +00:00
|
|
|
dist-hook: libxml2.spec
|
|
|
|
-cp libxml2.spec $(distdir)
|
2001-12-05 12:03:33 +00:00
|
|
|
(cd $(srcdir) ; tar -cf - --exclude CVS win32 macos vms test result SAXresult ) | (cd $(distdir); tar xf -)
|
1999-02-21 21:20:12 +00:00
|
|
|
|
2001-01-25 18:54:39 +00:00
|
|
|
cleantar:
|
2002-02-18 14:32:39 +00:00
|
|
|
@(rm -f libxml*.tar.gz COPYING.LIB)
|
2001-01-25 18:54:39 +00:00
|
|
|
|
2002-02-07 16:39:11 +00:00
|
|
|
rpm: cleantar
|
2002-10-15 08:43:17 +00:00
|
|
|
@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
## We create xml2Conf.sh here and not from configure because we want
|
|
|
|
## to get the paths expanded correctly. Macros like srcdir are given
|
|
|
|
## the value NONE in configure if the user doesn't specify them (this
|
|
|
|
## is an autoconf feature, not a bug).
|
|
|
|
|
|
|
|
CLEANFILES=xml2Conf.sh
|
|
|
|
|
|
|
|
confexecdir=$(libdir)
|
|
|
|
confexec_DATA = xml2Conf.sh
|
2003-03-21 21:22:48 +00:00
|
|
|
EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
|
2002-02-18 14:32:39 +00:00
|
|
|
libxml.m4 Copyright check-xml-test-suite.py \
|
2003-02-10 16:24:45 +00:00
|
|
|
check-relaxng-test-suite.py check-xinclude-test-suite.py \
|
2001-02-23 17:55:21 +00:00
|
|
|
example/Makefile.am example/gjobread.c example/gjobs.xml \
|
2003-09-30 02:36:08 +00:00
|
|
|
$(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
|
2002-01-19 15:40:18 +00:00
|
|
|
trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
|
2002-01-13 13:35:00 +00:00
|
|
|
triop.h triodef.h libxml.h \
|
2003-09-17 22:33:22 +00:00
|
|
|
testThreadsWin32.c genUnicode.py TODO_SCHEMAS \
|
|
|
|
dbgen.pl dbgenattr.pl
|
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = libxml-2.0.pc
|
|
|
|
|
2002-01-24 15:02:46 +00:00
|
|
|
#
|
|
|
|
# Instll the tests program sources as examples
|
|
|
|
#
|
2002-10-23 20:43:53 +00:00
|
|
|
BASE_DIR=$(datadir)/doc
|
2002-01-24 15:02:46 +00:00
|
|
|
DOC_MODULE=libxml2-$(VERSION)
|
|
|
|
EXAMPLES_DIR=$(BASE_DIR)/$(DOC_MODULE)/examples
|
|
|
|
|
|
|
|
install-data-local:
|
2002-02-08 13:28:40 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
|
2002-01-24 15:02:46 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR)
|