📄 makefile.am
字号:
## Definition for the tests from W3C#PYSCRIPTS=nist-test.py ms-test.py sun-test.pyTESTDIRS=msxsdtest nisttest suntestTARBALL=XSTC-20020116.tar.gzTARBALLURL=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 $(XSLTPROC) ] ; then \ echo "Rebuilding script" $@ ; \ $(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 $(XSLTPROC) ] ; then \ echo "Rebuilding script" $@ ; \ $(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 $(XSLTPROC) ] ; then \ echo "Rebuilding script" $@ ; \ $(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" ;\ if [ -x /usr/bin/wget ] ; then \ wget $(TARBALLURL) ; \ else echo "Dont' know how to fetch $(TARBALLURL)" ; fi ; fi) -@(if [ -f $(TARBALL) ] ; then \ echo -n "extracting tests directories..." ; \ $(TAR) -xzf $(TARBALL) $(TESTDIRS) ; \ echo "done" ; \ fi); -@(if [ -x fixup-tests.py ] ; then \ chmod -R u+w msxsdtest; \ echo "## Microsoft tests fixups"; \ PYTHONPATH="../python:../python/.libs:..:../libs:$$PYTHONPATH" ;\ export PYTHONPATH; \ LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ $(PYTHON) fixup-tests.py ; 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"; \ PYTHONPATH="../python:../python/.libs:..:../libs:$$PYTHONPATH" ;\ export PYTHONPATH; \ LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ export LD_LIBRARY_PATH; \ $(CHECKER) $(PYTHON) nist-test.py -s -b $(srcdir) ; fi) -@(if [ -x sun-test.py -a -d suntest ] ; then \ echo "## Running Sun Schemas tests"; \ PYTHONPATH="../python:../python/.libs:..:../libs:$$PYTHONPATH" ;\ export PYTHONPATH; \ LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ export LD_LIBRARY_PATH; \ $(CHECKER) $(PYTHON) sun-test.py -s -b $(srcdir) ; fi) -@(if [ -x ms-test.py -a -d msxsdtest ] ; then \ echo "## Running Microsoft Schemas tests"; \ PYTHONPATH="../python:../python/.libs:..:../libs:$$PYTHONPATH" ;\ export PYTHONPATH; \ LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ export LD_LIBRARY_PATH; \ $(CHECKER) $(PYTHON) ms-test.py -s -b $(srcdir) ; fi)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' ; \ $(MAKE) CHECKER='valgrind' MAKEFLAGS+=--silent pytests ; fi);clean: rm -f $(PYSCRIPTS) test.logdistclean: rm -rf $(PYSCRIPTS) $(TESTDIRS) test.log
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -