Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 4135cee

Browse files
committed
meson: Run Python tests
1 parent e91061e commit 4135cee

3 files changed

Lines changed: 55 additions & 61 deletions

File tree

python/meson.build

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,59 @@ if py.found() == true
6868
configuration: setup_py,
6969
)
7070

71-
subdir('tests')
71+
python_tests = [
72+
'attribs.py',
73+
'build.py',
74+
'compareNodes.py',
75+
'ctxterror.py',
76+
'cutnpaste.py',
77+
'dtdvalid.py',
78+
'error.py',
79+
'inbuf.py',
80+
'indexes.py',
81+
'input_callback.py',
82+
'nsdel.py',
83+
'outbuf.py',
84+
'push.py',
85+
'pushSAX.py',
86+
'pushSAXhtml.py',
87+
'reader.py',
88+
'reader2.py',
89+
'reader3.py',
90+
'reader4.py',
91+
'reader5.py',
92+
'reader6.py',
93+
'reader7.py',
94+
'reader8.py',
95+
'readererr.py',
96+
'readernext.py',
97+
'regexp.py',
98+
'relaxng.py',
99+
'resolver.py',
100+
'schema.py',
101+
'serialize.py',
102+
'sync.py',
103+
'thread2.py',
104+
'tst.py',
105+
'tstLastError.py',
106+
'tstURI.py',
107+
'tstmem.py',
108+
'tstxpath.py',
109+
'validDTD.py',
110+
'validRNG.py',
111+
'validSchemas.py',
112+
'validate.py',
113+
'walker.py',
114+
'xpath.py',
115+
'xpathext.py',
116+
'xpathleak.py',
117+
'xpathns.py',
118+
'xpathret.py',
119+
]
72120

121+
foreach file : python_tests
122+
test(file, py, args: [ file ],
123+
workdir: meson.current_source_dir() / 'tests',
124+
env: { 'PYTHONPATH': meson.current_build_dir() })
125+
endforeach
73126
endif

python/tests/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ XMLS= \
5353
invalid.xml \
5454
test.dtd
5555

56-
EXTRA_DIST = $(PYTESTS) $(XMLS) setup_test.py meson.build
56+
EXTRA_DIST = $(PYTESTS) $(XMLS) setup_test.py
5757

5858
CLEANFILES = core tmp.xml *.pyc
5959

python/tests/meson.build

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)