Makefile.am 1.4 KB

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