Lines Matching +full:python +full:- +full:test
4 PYSCRIPTS=nist-test.py ms-test.py sun-test.py
7 TARBALL=xsts-2002-01-16.tar.gz
8 TARBALL_2=xsts-2004-01-14.tar.gz
9 TSNAME=xmlschema2002-01-16
10 TSNAME_2=xmlschema2004-01-14
11 TARBALLURL=http://www.w3.org/XML/2004/xml-schema-test-suite/$(TSNAME)/$(TARBALL)
12 TARBALLURL_2=http://www.w3.org/XML/2004/xml-schema-test-suite/$(TSNAME_2)/$(TARBALL_2)
13 MSTESTDEF=MSXMLSchema1-0-20020116.testSet
14 SUNTESTDEF=SunXMLSchema1-0-20020116.testSet
15 NISTTESTDEF=NISTXMLSchema1-0-20020116.testSet
21 EXTRA_DIST=xstc.py xstc-to-python.xsl
24 # only if Python and Schemas are enabled.
29 # Rule to load the test description and extract the information
32 -@(if [ ! -d Tests ] ; then \
35 -@(if [ ! -f $(TARBALL_2) ] ; then \
36 if [ -f $(srcdir)/$(TARBALL_2) ] ; then \
38 echo "Missing the test suite description (2004-01-14), trying to fetch it" ;\
39 if [ -x "$(WGET)" ] ; then \
42 -@(if [ -f $(TARBALL_2) ] ; then \
43 echo -n "extracting test data (NIST)..." ; \
44 $(TAR) -xzf $(TARBALL_2) --wildcards '*/Datatypes' '*/Metadata/$(NISTTESTDEF_2)' ; \
47 -@(if [ ! -f $(TARBALL) ] ; then \
48 if [ -f $(srcdir)/$(TARBALL) ] ; then \
50 echo "Missing the test suite description (2002-01-16), trying to fetch it" ;\
51 if [ -x "$(WGET)" ] ; then \
54 -@(if [ -f $(TARBALL) ] ; then \
55 echo -n "extracting test data (Sun, Microsoft)..." ; \
56 …$(TAR) -C Tests -xzf $(TARBALL) --wildcards '*/suntest' '*/msxsdtest' '*/$(MSTESTDEF)' '*/$(SUNTES…
57 if [ -d Tests/suntest ] ; then rm -r Tests/suntest ; fi ; \
58 if [ -d Tests/msxsdtest ] ; then rm -r Tests/msxsdtest ; fi ; \
59 mv Tests/xmlschema2002-01-16/* Tests ; \
61 rm -r Tests/xmlschema2002-01-16 ; \
66 # The python tests are generated via XSLT
68 nist-test.py: Tests/Metadata/$(NISTTESTDEF_2) xstc-to-python.xsl
69 -@(if [ -x $(XSLTPROC) ] ; then \
71 $(XSLTPROC) --nonet --stringparam vendor NIST-2 \
72 $(srcdir)/xstc-to-python.xsl \
76 ms-test.py: Tests/Metadata/$(MSTTESTDEF) xstc-to-python.xsl
77 -@(if [ -x $(XSLTPROC) ] ; then \
79 $(XSLTPROC) --nonet --stringparam vendor MS \
80 $(srcdir)/xstc-to-python.xsl \
84 sun-test.py: Tests/Metadata/$(SUNTESTDEF) xstc-to-python.xsl
85 -@(if [ -x $(XSLTPROC) ] ; then \
87 $(XSLTPROC) --nonet --stringparam vendor SUN \
88 $(srcdir)/xstc-to-python.xsl \
93 # The actual test run if present. PYTHONPATH is updated to make sure
97 -@(if [ -x nist-test.py -a -d $(TESTDIR)/Datatypes ] ; then \
99 PYTHONPATH="../python:../python/.libs:..:../.libs:$$PYTHONPATH" ;\
103 $(CHECKER) $(PYTHON) nist-test.py -s -b $(srcdir) ; fi)
104 -@(if [ -x sun-test.py -a -d $(TESTDIR)/suntest ] ; then \
106 PYTHONPATH="../python:../python/.libs:..:../.libs:$$PYTHONPATH" ;\
110 $(CHECKER) $(PYTHON) sun-test.py -s -b $(srcdir) ; fi)
111 -@(if [ -x ms-test.py -a -d $(TESTDIR)/msxsdtest ] ; then \
113 PYTHONPATH="../python:../python/.libs:..:../.libs:$$PYTHONPATH" ;\
117 $(CHECKER) $(PYTHON) ms-test.py -s -b $(srcdir) ; fi)
120 -@(if [ -x $(PYTHON) ] ; then \
127 -@(if [ -x $(PYTHON) ] ; then \
129 $(MAKE) CHECKER='valgrind -q' pytests ; fi);
131 CLEANFILES=$(PYSCRIPTS) test.log