Daniel Veillard | 5fc1f08 | 2002-03-27 09:05:40 +0000 | [diff] [blame] | 1 | EXAMPLE_DIR = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 2 | |
Daniel Veillard | 7db3871 | 2002-02-07 16:39:11 +0000 | [diff] [blame] | 3 | PYTESTS= \ |
Daniel Veillard | 36eea2d | 2002-02-04 00:17:01 +0000 | [diff] [blame] | 4 | build.py \ |
Daniel Veillard | ef6c46f | 2002-03-07 22:21:56 +0000 | [diff] [blame] | 5 | attribs.py \ |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 6 | tst.py \ |
7 | tstxpath.py \ | ||||
8 | xpathext.py \ | ||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 9 | push.py \ |
Daniel Veillard | 33caa0b | 2002-02-04 14:07:26 +0000 | [diff] [blame] | 10 | pushSAX.py \ |
Daniel Veillard | 3cd7240 | 2002-05-13 10:33:30 +0000 | [diff] [blame] | 11 | pushSAXhtml.py \ |
Daniel Veillard | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame] | 12 | error.py \ |
Daniel Veillard | 4e0e297 | 2002-03-06 21:39:42 +0000 | [diff] [blame] | 13 | serialize.py\ |
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 14 | validate.py \ |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 15 | tstURI.py \ |
Daniel Veillard | f742d34 | 2002-03-07 00:05:35 +0000 | [diff] [blame] | 16 | cutnpaste.py\ |
Daniel Veillard | 79426f2 | 2002-03-01 16:14:17 +0000 | [diff] [blame] | 17 | xpathret.py \ |
Daniel Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 18 | xpath.py \ |
19 | outbuf.py \ | ||||
20 | inbuf.py \ | ||||
Daniel Veillard | bd9afb5 | 2002-09-25 22:25:35 +0000 | [diff] [blame] | 21 | resolver.py \ |
Daniel Veillard | 0eb38c7 | 2002-12-14 23:00:35 +0000 | [diff] [blame] | 22 | regexp.py \ |
Daniel Veillard | 336fc7d | 2002-12-27 19:37:04 +0000 | [diff] [blame] | 23 | reader.py \ |
Daniel Veillard | e18fc18 | 2002-12-28 22:56:33 +0000 | [diff] [blame] | 24 | reader2.py \ |
Daniel Veillard | e6227e0 | 2003-01-14 11:42:39 +0000 | [diff] [blame] | 25 | reader3.py \ |
Daniel Veillard | ac29793 | 2003-04-17 12:55:35 +0000 | [diff] [blame] | 26 | reader4.py \ |
27 | reader5.py \ | ||||
28 | reader6.py \ | ||||
Daniel Veillard | 198c1bf | 2003-10-20 17:07:41 +0000 | [diff] [blame] | 29 | reader7.py \ |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 30 | reader8.py \ |
Daniel Veillard | 198c1bf | 2003-10-20 17:07:41 +0000 | [diff] [blame] | 31 | walker.py \ |
Daniel Veillard | 26f7026 | 2003-01-16 22:45:08 +0000 | [diff] [blame] | 32 | ctxterror.py\ |
Daniel Veillard | 591b4be | 2003-02-09 23:33:36 +0000 | [diff] [blame] | 33 | readererr.py\ |
Daniel Veillard | 781ac8b | 2003-05-15 22:11:36 +0000 | [diff] [blame] | 34 | relaxng.py \ |
Daniel Veillard | 259f0df | 2004-08-18 09:13:18 +0000 | [diff] [blame] | 35 | schema.py \ |
Daniel Veillard | 46da464 | 2004-01-06 22:54:57 +0000 | [diff] [blame] | 36 | thread2.py \ |
Daniel Veillard | eb70f93 | 2004-07-05 16:46:09 +0000 | [diff] [blame] | 37 | sync.py \ |
Daniel Veillard | 3671190 | 2004-02-11 13:25:26 +0000 | [diff] [blame] | 38 | tstLastError.py \ |
Daniel Veillard | 850ce9b | 2004-11-10 11:55:47 +0000 | [diff] [blame] | 39 | indexes.py \ |
Daniel Veillard | 25c90c5 | 2005-03-02 10:47:41 +0000 | [diff] [blame^] | 40 | dtdvalid.py \ |
41 | tstmem.py | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 42 | |
43 | XMLS= \ | ||||
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 44 | tst.xml \ |
45 | valid.xml \ | ||||
Daniel Veillard | 850ce9b | 2004-11-10 11:55:47 +0000 | [diff] [blame] | 46 | invalid.xml \ |
47 | test.dtd | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 48 | |
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 49 | EXTRA_DIST = $(PYTESTS) $(XMLS) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 50 | |
51 | if WITH_PYTHON | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 52 | tests: $(PYTESTS) |
William M. Brack | e9449c5 | 2004-07-11 14:41:20 +0000 | [diff] [blame] | 53 | @echo "## running Python regression tests" |
Daniel Veillard | eb70f93 | 2004-07-05 16:46:09 +0000 | [diff] [blame] | 54 | -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \ |
55 | export PYTHONPATH; \ | ||||
William M. Brack | a22da29 | 2005-02-12 01:08:22 +0000 | [diff] [blame] | 56 | LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ |
57 | export LD_LIBRARY_PATH; \ | ||||
Daniel Veillard | eb70f93 | 2004-07-05 16:46:09 +0000 | [diff] [blame] | 58 | for test in $(PYTESTS) ; \ |
59 | do log=`$(PYTHON) $(srcdir)/$$test` ; \ | ||||
60 | if [ "`echo $$log | grep OK`" = "" ] ; then \ | ||||
61 | echo "-- $$test" ; echo "$$log" ; fi ; done) | ||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 62 | else |
63 | tests: | ||||
64 | endif | ||||
65 | |||||
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 66 | clean: |
67 | rm -f *.pyc core | ||||
68 | |||||
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 69 | install-data-local: |
70 | $(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR) | ||||
Daniel Veillard | 2a0cf74 | 2002-02-07 16:40:20 +0000 | [diff] [blame] | 71 | -(for test in $(PYTESTS) $(XMLS); \ |
William M. Brack | cafe885 | 2003-12-21 10:14:35 +0000 | [diff] [blame] | 72 | do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 73 |