1 | exampledir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples
|
---|
2 | dist_example_DATA = $(PYTESTS) $(XMLS)
|
---|
3 |
|
---|
4 | PYTESTS= \
|
---|
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 | input_callback.py \
|
---|
23 | resolver.py \
|
---|
24 | regexp.py \
|
---|
25 | reader.py \
|
---|
26 | reader2.py \
|
---|
27 | reader3.py \
|
---|
28 | reader4.py \
|
---|
29 | reader5.py \
|
---|
30 | reader6.py \
|
---|
31 | reader7.py \
|
---|
32 | reader8.py \
|
---|
33 | readernext.py \
|
---|
34 | walker.py \
|
---|
35 | nsdel.py \
|
---|
36 | ctxterror.py\
|
---|
37 | readererr.py\
|
---|
38 | relaxng.py \
|
---|
39 | schema.py \
|
---|
40 | thread2.py \
|
---|
41 | sync.py \
|
---|
42 | tstLastError.py \
|
---|
43 | indexes.py \
|
---|
44 | dtdvalid.py \
|
---|
45 | tstmem.py \
|
---|
46 | validDTD.py \
|
---|
47 | validSchemas.py \
|
---|
48 | validRNG.py \
|
---|
49 | compareNodes.py \
|
---|
50 | xpathns.py \
|
---|
51 | xpathleak.py
|
---|
52 |
|
---|
53 | XMLS= \
|
---|
54 | tst.xml \
|
---|
55 | valid.xml \
|
---|
56 | invalid.xml \
|
---|
57 | test.dtd
|
---|
58 |
|
---|
59 | CLEANFILES = core tmp.xml *.pyc
|
---|
60 |
|
---|
61 | if WITH_PYTHON
|
---|
62 | tests: $(PYTESTS)
|
---|
63 | @for f in $(XMLS) ; do test -f $$f || $(LN_S) $(srcdir)/$$f . ; done
|
---|
64 | @echo "## running Python regression tests"
|
---|
65 | -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; \
|
---|
66 | export PYTHONPATH; \
|
---|
67 | LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
|
---|
68 | export LD_LIBRARY_PATH; \
|
---|
69 | for test in $(PYTESTS) ; \
|
---|
70 | do log=`$(PYTHON) $(srcdir)/$$test` ; \
|
---|
71 | if [ "`echo $$log | grep OK`" = "" ] ; then \
|
---|
72 | echo "-- $$test" ; echo "$$log" ; fi ; done)
|
---|
73 | else
|
---|
74 | tests:
|
---|
75 | endif
|
---|