1998-07-24 19:24:09 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
1999-07-12 09:16:45 +00:00
|
|
|
SUBDIRS = doc
|
1999-02-06 18:12:01 +00:00
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
INCLUDES = -I@srcdir@ @Z_CFLAGS@ @CORBA_CFLAGS@
|
1999-06-22 21:49:07 +00:00
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
noinst_PROGRAMS=testSAX testHTML testXPath testURI
|
1998-10-17 06:47:46 +00:00
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
bin_PROGRAMS = xmllint
|
1998-07-24 19:24:09 +00:00
|
|
|
|
1998-10-04 14:41:05 +00:00
|
|
|
bin_SCRIPTS=xml-config
|
|
|
|
|
1998-07-26 04:12:22 +00:00
|
|
|
lib_LTLIBRARIES = libxml.la
|
2000-02-02 23:51:10 +00:00
|
|
|
libxml_la_LIBADD = @Z_LIBS@
|
1998-07-24 19:24:09 +00:00
|
|
|
|
1999-06-22 21:49:07 +00:00
|
|
|
libxml_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@
|
|
|
|
|
1998-07-26 04:12:22 +00:00
|
|
|
libxml_la_SOURCES = \
|
1998-08-13 03:39:55 +00:00
|
|
|
SAX.c \
|
|
|
|
entities.c \
|
1998-10-19 00:43:02 +00:00
|
|
|
encoding.c \
|
1998-08-13 03:39:55 +00:00
|
|
|
error.c \
|
|
|
|
parser.c \
|
1999-01-17 19:11:59 +00:00
|
|
|
tree.c \
|
1999-07-27 19:52:06 +00:00
|
|
|
xmlIO.c \
|
1999-09-02 22:04:43 +00:00
|
|
|
xmlmemory.c \
|
2000-03-20 11:48:04 +00:00
|
|
|
uri.c \
|
1999-12-12 13:03:50 +00:00
|
|
|
valid.c \
|
2000-04-03 19:48:13 +00:00
|
|
|
xlink.c \
|
|
|
|
HTMLparser.c \
|
|
|
|
HTMLtree.c \
|
|
|
|
debugXML.c \
|
|
|
|
xpath.c \
|
|
|
|
nanohttp.c \
|
|
|
|
nanoftp.c
|
1998-08-13 03:39:55 +00:00
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
xmlincdir = $(includedir)/libxml
|
1998-08-14 01:22:43 +00:00
|
|
|
xmlinc_HEADERS = \
|
1999-12-03 13:19:09 +00:00
|
|
|
SAX.h \
|
1998-08-13 03:39:55 +00:00
|
|
|
entities.h \
|
1998-10-19 00:43:02 +00:00
|
|
|
encoding.h \
|
1998-08-13 03:39:55 +00:00
|
|
|
parser.h \
|
1999-12-03 13:19:09 +00:00
|
|
|
parserInternals.h \
|
|
|
|
xml-error.h \
|
1999-07-06 22:25:25 +00:00
|
|
|
HTMLparser.h \
|
1999-07-15 14:24:29 +00:00
|
|
|
HTMLtree.h \
|
1998-10-27 22:56:57 +00:00
|
|
|
debugXML.h \
|
1999-01-17 19:11:59 +00:00
|
|
|
tree.h \
|
1999-07-15 14:24:29 +00:00
|
|
|
xpath.h \
|
1999-06-22 21:49:07 +00:00
|
|
|
xmlIO.h \
|
1999-09-02 22:04:43 +00:00
|
|
|
xmlmemory.h \
|
1999-09-22 09:46:25 +00:00
|
|
|
nanohttp.h \
|
2000-01-28 13:59:21 +00:00
|
|
|
nanoftp.h \
|
2000-03-20 11:48:04 +00:00
|
|
|
uri.h \
|
1999-12-12 13:03:50 +00:00
|
|
|
valid.h \
|
2000-04-03 19:48:13 +00:00
|
|
|
xlink.h \
|
|
|
|
xmlversion.h
|
1998-07-24 19:24:09 +00:00
|
|
|
|
1998-07-26 04:12:22 +00:00
|
|
|
DEPS = $(top_builddir)/libxml.la
|
1999-08-10 19:04:08 +00:00
|
|
|
LDADDS = $(top_builddir)/libxml.la @Z_LIBS@ @M_LIBS@
|
1998-07-24 19:24:09 +00:00
|
|
|
|
2000-08-19 16:48:54 +00:00
|
|
|
man_MANS = xmllint.1 libxml.4
|
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
xmllint_SOURCES=xmllint.c
|
|
|
|
xmllint_LDFLAGS =
|
|
|
|
xmllint_DEPENDENCIES = $(DEPS)
|
|
|
|
xmllint_LDADD= @RDL_LIBS@ $(LDADDS)
|
1998-07-24 19:24:09 +00:00
|
|
|
|
1999-06-02 17:44:04 +00:00
|
|
|
testSAX_SOURCES=testSAX.c
|
|
|
|
testSAX_LDFLAGS =
|
|
|
|
testSAX_DEPENDENCIES = $(DEPS)
|
|
|
|
testSAX_LDADD= $(LDADDS)
|
|
|
|
|
1999-07-05 16:50:46 +00:00
|
|
|
testHTML_SOURCES=testHTML.c
|
|
|
|
testHTML_LDFLAGS =
|
|
|
|
testHTML_DEPENDENCIES = $(DEPS)
|
|
|
|
testHTML_LDADD= $(LDADDS)
|
|
|
|
|
1999-07-15 14:24:29 +00:00
|
|
|
testXPath_SOURCES=testXPath.c
|
|
|
|
testXPath_LDFLAGS =
|
|
|
|
testXPath_DEPENDENCIES = $(DEPS)
|
|
|
|
testXPath_LDADD= $(LDADDS)
|
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
testURI_SOURCES=testURI.c
|
|
|
|
testURI_LDFLAGS =
|
|
|
|
testURI_DEPENDENCIES = $(DEPS)
|
|
|
|
testURI_LDADD= $(LDADDS)
|
|
|
|
|
1999-03-05 22:14:01 +00:00
|
|
|
check-local: tests
|
|
|
|
|
2000-04-03 19:48:13 +00:00
|
|
|
$(srcdir)/libxml:
|
|
|
|
-$(RM) $(srcdir)/libxml
|
|
|
|
ln -s $(srcdir)/. $(srcdir)/libxml
|
|
|
|
|
2000-06-28 23:40:59 +00:00
|
|
|
install-data: $(srcdir)/libxml
|
|
|
|
|
|
|
|
$(libxml_la_SOURCES): $(srcdir)/libxml
|
|
|
|
|
2000-08-20 15:11:02 +00:00
|
|
|
testall : tests SVGtests SAXtests XPathtests
|
1999-08-10 19:04:08 +00:00
|
|
|
|
2000-09-04 11:15:39 +00:00
|
|
|
tests: XMLtests XMLenttests HTMLtests Validtests URItests
|
1999-06-02 17:44:04 +00:00
|
|
|
|
1999-07-07 07:32:15 +00:00
|
|
|
HTMLtests : testHTML
|
2000-08-12 21:12:04 +00:00
|
|
|
@(rm -f .memdump ; touch .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 ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
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 ; \
|
2000-08-12 21:12:04 +00:00
|
|
|
testHTML $$i > result.$$name 2> error.$$name ; \
|
|
|
|
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 ; \
|
|
|
|
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 ; \
|
|
|
|
testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
testHTML --push $$i > result.$$name 2> error.$$name ; \
|
|
|
|
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 ; \
|
|
|
|
testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
|
|
|
|
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 ; \
|
|
|
|
testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
testHTML --sax $$i > result.$$name.sax ; \
|
|
|
|
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 ; \
|
|
|
|
testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
|
|
|
|
else \
|
|
|
|
echo Testing $$name ; \
|
|
|
|
testHTML --push --sax $$i > result.$$name.sax ; \
|
|
|
|
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
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XML regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(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-04-03 19:48:13 +00:00
|
|
|
XMLenttests : xmllint
|
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
|
|
|
|
@(rm -f .memdump ; touch .memdump)
|
|
|
|
@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)
|
|
|
|
|
1999-07-15 14:24:29 +00:00
|
|
|
XPathtests : testXPath
|
1999-08-10 19:04:08 +00:00
|
|
|
@echo "##"
|
|
|
|
@echo "## XPath regression tests"
|
|
|
|
@echo "##"
|
|
|
|
@(for i in $(srcdir)/test/XPath/expr/* ; do \
|
|
|
|
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 ; \
|
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 ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
1999-07-15 14:24:29 +00:00
|
|
|
fi ; fi ; done)
|
1999-08-10 19:04:08 +00:00
|
|
|
@(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 \
|
|
|
|
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 ; \
|
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 ; \
|
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-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
|
|
|
|
@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
|
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 ; \
|
1999-08-10 19:04:08 +00:00
|
|
|
diff $(srcdir)/result/VC/$$name result.$$name ; \
|
|
|
|
rm result.$$name ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
@echo "##"
|
|
|
|
@echo "## Valid documents regression tests"
|
|
|
|
@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 ; \
|
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
|
|
|
|
1998-09-07 17:27:57 +00:00
|
|
|
## We create xmlConf.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).
|
|
|
|
|
1999-08-15 17:19:50 +00:00
|
|
|
confexecdir=$(libdir)
|
|
|
|
confexec_DATA = xmlConf.sh
|
|
|
|
|
1999-08-23 18:18:32 +00:00
|
|
|
CLEANFILES=xmlConf.sh
|
|
|
|
|
1999-08-15 17:19:50 +00:00
|
|
|
confexecdir=$(libdir)
|
|
|
|
confexec_DATA = xmlConf.sh
|
1999-10-25 13:15:52 +00:00
|
|
|
EXTRA_DIST = xmlConf.sh.in libxml.spec.in libxml.spec \
|
2000-08-19 16:48:54 +00:00
|
|
|
example/Makefile.am example/gjobread.c example/gjobs.xml \
|
|
|
|
$(man_MANS)
|
1999-08-15 17:19:50 +00:00
|
|
|
|
1998-09-07 17:27:57 +00:00
|
|
|
xmlConf.sh: xmlConf.sh.in Makefile
|
|
|
|
## Use sed and then mv to avoid problems if the user interrupts.
|
1998-09-30 19:28:59 +00:00
|
|
|
sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
|
|
|
|
-e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
|
|
|
|
-e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
|
1999-10-09 09:11:45 +00:00
|
|
|
-e 's?\@VERSION\@?$(VERSION)?g' \
|
1998-09-07 17:27:57 +00:00
|
|
|
< $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
|
|
|
|
&& mv xmlConf.tmp xmlConf.sh
|