1998-07-24 19:24:09 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2001-05-25 07:38:41 +00:00
|
|
|
SUBDIRS = include . doc example
|
1999-02-06 18:12:01 +00:00
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
INCLUDES = -I@srcdir@/include -I./include @Z_CFLAGS@ @CORBA_CFLAGS@
|
1999-06-22 21:49:07 +00:00
|
|
|
|
2001-05-10 14:17:55 +00:00
|
|
|
noinst_PROGRAMS=testSAX testHTML testXPath testURI testDocbook testCatalog
|
1998-10-17 06:47:46 +00:00
|
|
|
|
2001-02-23 01:37:32 +00:00
|
|
|
bin_PROGRAMS = xmllint
|
2000-09-24 18:49:59 +00:00
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
bin_SCRIPTS=xml2-config
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libxml2.la
|
2001-03-07 15:57:53 +00:00
|
|
|
libxml2_la_LIBADD = @Z_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 \
|
2001-05-10 14:17:55 +00:00
|
|
|
catalog.c strio.c trio.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 \
|
|
|
|
catalog.c
|
2001-05-02 16:41:11 +00:00
|
|
|
|
|
|
|
endif
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
DEPS = $(top_builddir)/libxml2.la
|
2001-06-15 22:22:04 +00:00
|
|
|
LDADDS = $(top_builddir)/libxml2.la @Z_LIBS@ $(ICONV_LIBS) -lm
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
man_MANS = xmllint.1 xml2-config.1 libxml.4
|
|
|
|
|
|
|
|
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-04-23 13:41:34 +00:00
|
|
|
testDocbook_SOURCES=testDocbook.c
|
|
|
|
testDocbook_LDFLAGS =
|
|
|
|
testDocbook_DEPENDENCIES = $(DEPS)
|
|
|
|
testDocbook_LDADD= $(LDADDS)
|
|
|
|
|
2001-05-10 14:17:55 +00:00
|
|
|
testCatalog_SOURCES=testCatalog.c
|
|
|
|
testCatalog_LDFLAGS =
|
|
|
|
testCatalog_DEPENDENCIES = $(DEPS)
|
|
|
|
testCatalog_LDADD= $(LDADDS)
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
1999-03-05 22:14:01 +00:00
|
|
|
check-local: tests
|
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
$(srcdir)/libxml:
|
2001-03-22 15:22:27 +00:00
|
|
|
-$(RM) -f $(srcdir)/libxml
|
2001-02-23 17:55:21 +00:00
|
|
|
ln -s $(srcdir)/. $(srcdir)/libxml
|
|
|
|
|
2000-06-28 23:40:59 +00:00
|
|
|
install-data: $(srcdir)/libxml
|
|
|
|
|
2001-02-23 17:55:21 +00:00
|
|
|
$(libxml2_la_SOURCES): $(srcdir)/libxml
|
|
|
|
|
2000-10-01 15:53:30 +00:00
|
|
|
testall : tests SVGtests SAXtests
|
1999-08-10 19:04:08 +00:00
|
|
|
|
2000-11-12 15:56:56 +00:00
|
|
|
tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests
|
1999-06-02 17:44:04 +00:00
|
|
|
|
1999-07-07 07:32:15 +00:00
|
|
|
HTMLtests : testHTML
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## HTML regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/HTML/* ; do \
|
|
|
|
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 ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
|
1999-07-07 07:32:15 +00:00
|
|
|
else \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(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 ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff result.$$name result2.$$name ; \
|
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)
|
2000-08-12 21:12:04 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## Push HTML regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/HTML/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(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 ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
diff result.$$name result2.$$name ; \
|
|
|
|
rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
@echo "##"
|
|
|
|
@echo "## HTML SAX regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/HTML/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(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";\
|
|
|
|
diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \
|
|
|
|
rm result.$$name.sax ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
@echo "##"
|
|
|
|
@echo "## Push HTML SAX regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/HTML/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
2001-01-06 21:09:34 +00:00
|
|
|
$(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \
|
|
|
|
rm result.$$name.sax ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
1999-07-07 07:32:15 +00:00
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
XMLtests : xmllint
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XML regression tests"
|
|
|
|
@echo "##"
|
2001-04-23 09:13:36 +00:00
|
|
|
@echo "## You should see one warning on entity 'title.xml' for ent2"
|
|
|
|
@echo "##"
|
1999-08-10 19:04:08 +00:00
|
|
|
@(for i in $(srcdir)/test/* ; do \
|
|
|
|
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 ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
|
1999-06-02 17:44:04 +00:00
|
|
|
else \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint $$i > result.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/$$name result.$$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint result.$$name > result2.$$name ; \
|
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)
|
2000-12-27 10:46:47 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XML regression tests on memory"
|
|
|
|
@echo "##"
|
2001-04-23 09:13:36 +00:00
|
|
|
@echo "## You should see two warnings on entity 'title.xml' for ent2"
|
|
|
|
@echo "##"
|
2000-12-27 10:46:47 +00:00
|
|
|
@(for i in $(srcdir)/test/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
$(top_builddir)/xmllint --memory $$i > result.$$name ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/$$name result.$$name ; \
|
|
|
|
$(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \
|
|
|
|
diff result.$$name result2.$$name ; \
|
|
|
|
rm result.$$name result2.$$name ; \
|
|
|
|
fi ; fi ; done)
|
1999-06-02 17:44:04 +00:00
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
XMLenttests : xmllint
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XML entity subst regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/* ; do \
|
|
|
|
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 ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
|
1998-07-24 19:24:09 +00:00
|
|
|
else \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint --noent $$i > result.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/noent/$$name result.$$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff result.$$name result2.$$name ; \
|
|
|
|
rm result.$$name result2.$$name ; \
|
1998-07-24 19:24:09 +00:00
|
|
|
fi ; fi ; done)
|
|
|
|
|
2000-09-04 11:15:39 +00:00
|
|
|
URItests : testURI
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2000-09-04 11:15:39 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## URI module regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/URI/*.data ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2000-09-05 10:42:32 +00:00
|
|
|
$(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \
|
2000-09-04 11:15:39 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
2000-09-05 10:42:32 +00:00
|
|
|
$(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > result.$$name ; \
|
2000-09-04 11:15:39 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/URI/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2001-02-02 17:07:32 +00:00
|
|
|
@(for i in $(srcdir)/test/URI/*.uri ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
$(top_builddir)/testURI < $$i > result.$$name ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/URI/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
2000-09-04 11:15:39 +00:00
|
|
|
|
1999-07-15 14:24:29 +00:00
|
|
|
XPathtests : testXPath
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XPath regression tests"
|
|
|
|
@echo "##"
|
2001-06-21 11:20:21 +00:00
|
|
|
@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
|
|
|
|
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 ; \
|
1999-09-04 20:25:14 +00:00
|
|
|
$(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 \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
1999-09-04 20:25:14 +00:00
|
|
|
$(top_builddir)/testXPath -f --expr $$i > result.$$name ; \
|
2001-03-18 23:17:47 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \
|
|
|
|
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 ; \
|
1999-09-04 20:25:14 +00:00
|
|
|
$(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 \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
1999-09-04 20:25:14 +00:00
|
|
|
$(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \
|
2001-03-18 23:17:47 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
1999-07-15 14:24:29 +00:00
|
|
|
fi ; fi ; done ; fi ; done)
|
|
|
|
|
2000-10-10 23:50:30 +00:00
|
|
|
XPtrtests : testXPath
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2000-10-10 23:50:30 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XPointer regression tests"
|
|
|
|
@echo "##"
|
2001-06-21 11:20:21 +00:00
|
|
|
@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
|
|
|
|
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 ; \
|
|
|
|
./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
./testXPath -xptr -f -i $$i $$j > result.$$name ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done ; fi ; done)
|
|
|
|
|
2000-11-12 15:56:56 +00:00
|
|
|
XIncludetests : xmllint
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2000-11-12 15:56:56 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XInclude regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/XInclude/docs/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
|
|
|
$(top_builddir)/xmllint --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
$(top_builddir)/xmllint --xinclude $$i > result.$$name ; \
|
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
diff $(srcdir)/result/XInclude/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
SVGtests : xmllint
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## SVG parsing regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/SVG/* ; do \
|
|
|
|
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 ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
|
1999-06-02 17:44:04 +00:00
|
|
|
else \
|
1999-08-10 19:04:08 +00:00
|
|
|
echo Testing $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint $$i > result.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/SVG/$$name result.$$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint result.$$name > result2.$$name ; \
|
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)
|
|
|
|
|
1999-08-10 19:04:08 +00:00
|
|
|
SAXtests : testSAX
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## SAX callbacks regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
1999-09-04 20:25:14 +00:00
|
|
|
$(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
1999-09-04 20:25:14 +00:00
|
|
|
$(top_builddir)/testSAX $$i > result.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/SAXresult/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
1998-09-07 17:27:57 +00:00
|
|
|
|
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
Validtests : xmllint
|
2001-05-03 10:49:20 +00:00
|
|
|
@(echo > .memdump)
|
2001-04-20 13:03:48 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## Valid documents regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/VCM/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
echo Testing $$name ; \
|
2001-05-07 20:50:47 +00:00
|
|
|
$(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
|
2001-04-20 13:03:48 +00:00
|
|
|
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
|
|
|
|
fi ; done ; exit 0)
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## Validity checking regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/VC/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(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";\
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/VC/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
@echo "##"
|
2001-04-20 13:03:48 +00:00
|
|
|
@echo "## General documents valid regression tests"
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/valid/* ; do \
|
|
|
|
name=`basename $$i`; \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
|
|
|
|
echo New test file $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
2000-04-03 19:48:13 +00:00
|
|
|
$(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 ; \
|
1999-10-25 13:15:52 +00:00
|
|
|
diff $(srcdir)/result/valid/$$name.err error.$$name ; \
|
|
|
|
rm result.$$name error.$$name ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
fi ; fi ; done)
|
1998-09-07 17:27:57 +00:00
|
|
|
|
1999-09-24 16:18:00 +00:00
|
|
|
dist-hook: libxml.spec
|
2000-01-05 16:31:25 +00:00
|
|
|
-cp libxml.spec $(distdir)
|
|
|
|
(cd $(srcdir) ; tar -cf - --exclude CVS test result SAXresult ) | (cd $(distdir); tar xf -)
|
1999-02-21 21:20:12 +00:00
|
|
|
|
2001-01-25 18:54:39 +00:00
|
|
|
cleantar:
|
|
|
|
@(rm -f libxslt*.tar.gz)
|
|
|
|
|
|
|
|
rpm: cleantar distcheck
|
2000-10-12 23:15:24 +00:00
|
|
|
rpm -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).
|
|
|
|
|
|
|
|
confexecdir=$(libdir)
|
|
|
|
confexec_DATA = xml2Conf.sh
|
|
|
|
|
|
|
|
CLEANFILES=xml2Conf.sh
|
|
|
|
|
|
|
|
confexecdir=$(libdir)
|
|
|
|
confexec_DATA = xml2Conf.sh
|
2001-06-19 12:51:30 +00:00
|
|
|
EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml.spec \
|
|
|
|
libxml.m4 \
|
2001-02-23 17:55:21 +00:00
|
|
|
example/Makefile.am example/gjobread.c example/gjobs.xml \
|
2001-06-23 21:55:48 +00:00
|
|
|
$(man_MANS) libxml-2.0.pc.in \
|
2001-02-23 17:55:21 +00:00
|
|
|
win32/README.MSDev win32/Makefile.mingw \
|
|
|
|
win32/libxml2/libxml2.dsp win32/libxml2/libxml2_so.dsp \
|
2001-04-16 17:46:18 +00:00
|
|
|
win32/libxml2/libxml2_a.dsp win32/libxml2/xmllint.dsp \
|
|
|
|
win32/libxml2/libxml2.def.src \
|
2001-05-02 17:11:36 +00:00
|
|
|
vms/build_libxml.com vms/config.vms \
|
2001-05-02 16:41:11 +00:00
|
|
|
strio.c strio.h trio.c trio.h triop.h libxml.h
|
2001-02-23 17:55:21 +00:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = libxml-2.0.pc
|
|
|
|
|
|
|
|
#xml2Conf.sh: xml2Conf.sh.in Makefile
|
|
|
|
### Use sed and then mv to avoid problems if the user interrupts.
|
|
|
|
# sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
|
|
|
|
# -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
|
|
|
|
# -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
|
|
|
|
# -e 's?\@VERSION\@?$(VERSION)?g' \
|
|
|
|
# < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \
|
|
|
|
# && mv xml2Conf.tmp xml2Conf.sh
|