diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-09-07 09:12:44 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-09-07 09:12:44 +0000 |
commit | 06500c8aa660aeb6ae964c7a840e21b928f906c3 (patch) | |
tree | 4be239bb55d00da9d8ac796d1e48cbba81f62115 /xstc | |
parent | 6258a4b903e41db9ea00ef66c9d3b57fd6db1163 (diff) | |
download | libxml2-06500c8aa660aeb6ae964c7a840e21b928f906c3.tar.gz |
some cleanup checking for xmllint and xsltproc in configure.in, fixed make
* configure.in doc/Makefile.am xstc/Makefile.am: some cleanup
checking for xmllint and xsltproc in configure.in, fixed
make dist w.r.t. the new xstc subdir.
* doc/*: rebuilt
Daniel
Diffstat (limited to 'xstc')
-rw-r--r-- | xstc/Makefile.am | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/xstc/Makefile.am b/xstc/Makefile.am index 99dd9f71..45309ff0 100644 --- a/xstc/Makefile.am +++ b/xstc/Makefile.am @@ -1,31 +1,50 @@ +# +# Definition for the tests from W3C +# PYSCRIPTS=nist-test.py ms-test.py sun-test.py TESTDIRS=msxsdtest nisttest suntest TARBALL=XSTC-20020116.tar.gz TARBALLURL=http://www.w3.org/2001/05/xmlschema-test-collection/$(TARBALL) +# +# The local data and scripts +# +EXTRA_DIST=xstc.py sun-test-def.xml ms-test-def.xml nist-test-def.xml \ + xstc-to-python.xsl + +# +# Nothing is done by make, only make tests and +# only if Python and Schemas are enabled. +# all: +# +# The python tests are generated via XSLT +# nist-test.py: nist-test-def.xml xstc-to-python.xsl - -@(if [ -x $(bindir)/xsltproc ] ; then \ + -@(if [ -x $(XSLTPROC) ] ; then \ echo "Rebuilding script" $@ ; \ - $(bindir)/xsltproc --nonet $(srcdir)/xstc-to-python.xsl \ + $(XSLTPROC) --nonet $(srcdir)/xstc-to-python.xsl \ $(srcdir)/nist-test-def.xml > $@ ; \ chmod +x $@ ; fi ) ms-test.py: ms-test-def.xml xstc-to-python.xsl - -@(if [ -x $(bindir)/xsltproc ] ; then \ + -@(if [ -x $(XSLTPROC) ] ; then \ echo "Rebuilding script" $@ ; \ - $(bindir)/xsltproc --nonet $(srcdir)/xstc-to-python.xsl \ + $(XSLTPROC) --nonet $(srcdir)/xstc-to-python.xsl \ $(srcdir)/ms-test-def.xml > $@ ; \ chmod +x $@ ; fi ) sun-test.py: sun-test-def.xml xstc-to-python.xsl - -@(if [ -x $(bindir)/xsltproc ] ; then \ + -@(if [ -x $(XSLTPROC) ] ; then \ echo "Rebuilding script" $@ ; \ - $(bindir)/xsltproc --nonet $(srcdir)/xstc-to-python.xsl \ + $(XSLTPROC) --nonet $(srcdir)/xstc-to-python.xsl \ $(srcdir)/sun-test-def.xml > $@ ; \ chmod +x $@ ; fi ) +# +# Rule to load the test description and extract the informations +# $(TESTDIRS): -@(if [ ! -f $(TARBALL) ] ; then \ echo "Missing the test suite description, trying to fetch it" ;\ @@ -38,6 +57,10 @@ $(TESTDIRS): echo "done" ; \ fi); +# +# The actual test run if present. PYTHONPATH is updated to make sure +# we run the version from the loacl build and not preinstalled bindings +# pytests: $(PYSCRIPTS) $(TESTDIRS) -@(if [ -x nist-test.py -a -d nisttest ] ; then \ echo "## Running NIST Schemas tests"; \ @@ -59,6 +82,9 @@ tests: -@(if [ -x $(PYTHON) ] ; then \ $(MAKE) MAKEFLAGS+=--silent pytests ; fi); +# +# Heavy, works well only on RHEL3 +# valgrind: -@(if [ -x $(PYTHON) ] ; then \ echo '## Running the regression tests under Valgrind' ; \ |