1exampledir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples 2dist_example_DATA = $(PYTESTS) $(XMLS) 3 4PYTESTS= \ 5 build.py \ 6 attribs.py \ 7 tst.py \ 8 tstxpath.py \ 9 xpathext.py \ 10 push.py \ 11 pushSAX.py \ 12 pushSAXhtml.py \ 13 error.py \ 14 serialize.py\ 15 validate.py \ 16 tstURI.py \ 17 cutnpaste.py\ 18 xpathret.py \ 19 xpath.py \ 20 outbuf.py \ 21 inbuf.py \ 22 resolver.py \ 23 regexp.py \ 24 reader.py \ 25 reader2.py \ 26 reader3.py \ 27 reader4.py \ 28 reader5.py \ 29 reader6.py \ 30 reader7.py \ 31 reader8.py \ 32 readernext.py \ 33 walker.py \ 34 nsdel.py \ 35 ctxterror.py\ 36 readererr.py\ 37 relaxng.py \ 38 schema.py \ 39 thread2.py \ 40 sync.py \ 41 tstLastError.py \ 42 indexes.py \ 43 dtdvalid.py \ 44 tstmem.py \ 45 validDTD.py \ 46 validSchemas.py \ 47 validRNG.py \ 48 compareNodes.py \ 49 xpathns.py \ 50 xpathleak.py 51 52XMLS= \ 53 tst.xml \ 54 valid.xml \ 55 invalid.xml \ 56 test.dtd 57 58if WITH_PYTHON 59tests: $(PYTESTS) 60 @echo "## running Python regression tests" 61 -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \ 62 export PYTHONPATH; \ 63 LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ 64 export LD_LIBRARY_PATH; \ 65 for test in $(PYTESTS) ; \ 66 do log=`$(PYTHON) $(srcdir)/$$test` ; \ 67 if [ "`echo $$log | grep OK`" = "" ] ; then \ 68 echo "-- $$test" ; echo "$$log" ; fi ; done) 69else 70tests: 71endif 72 73clean: 74 rm -f *.pyc core 75