From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/python/tests/Makefile.am | 78 +++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 libxml2-2.9.10/python/tests/Makefile.am (limited to 'libxml2-2.9.10/python/tests/Makefile.am') diff --git a/libxml2-2.9.10/python/tests/Makefile.am b/libxml2-2.9.10/python/tests/Makefile.am new file mode 100644 index 0000000..227e24d --- /dev/null +++ b/libxml2-2.9.10/python/tests/Makefile.am @@ -0,0 +1,78 @@ +exampledir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples +dist_example_DATA = $(PYTESTS) $(XMLS) + +PYTESTS= \ + build.py \ + attribs.py \ + tst.py \ + tstxpath.py \ + xpathext.py \ + push.py \ + pushSAX.py \ + pushSAXhtml.py \ + error.py \ + serialize.py\ + validate.py \ + tstURI.py \ + cutnpaste.py\ + xpathret.py \ + xpath.py \ + outbuf.py \ + inbuf.py \ + input_callback.py \ + resolver.py \ + regexp.py \ + reader.py \ + reader2.py \ + reader3.py \ + reader4.py \ + reader5.py \ + reader6.py \ + reader7.py \ + reader8.py \ + readernext.py \ + walker.py \ + nsdel.py \ + ctxterror.py\ + readererr.py\ + relaxng.py \ + schema.py \ + thread2.py \ + sync.py \ + tstLastError.py \ + indexes.py \ + dtdvalid.py \ + tstmem.py \ + validDTD.py \ + validSchemas.py \ + validRNG.py \ + compareNodes.py \ + xpathns.py \ + xpathleak.py + +XMLS= \ + tst.xml \ + valid.xml \ + invalid.xml \ + test.dtd + +CLEANFILES = core tmp.xml *.pyc + +if WITH_PYTHON +tests: $(PYTESTS) + @for f in $(XMLS) ; do test -f $$f || $(LN_S) $(srcdir)/$$f . ; done + @echo "## running Python regression tests" + @(export PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \ + export LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ + export PATH="$(top_builddir)/.libs:$$PATH" ; \ + for test in $(PYTESTS) ; do \ + log=`$(PYTHON) $(srcdir)/$$test` ; \ + if [ "$$?" -ne 0 ] ; then \ + echo "-- $$test" ; \ + echo "$$log" ; \ + exit 1 ; \ + fi ; \ + done) +else +tests: +endif -- cgit v1.2.3