mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
meson: Run Python tests
This commit is contained in:
parent
e91061eb9f
commit
4135ceea75
@ -68,6 +68,59 @@ if py.found() == true
|
||||
configuration: setup_py,
|
||||
)
|
||||
|
||||
subdir('tests')
|
||||
python_tests = [
|
||||
'attribs.py',
|
||||
'build.py',
|
||||
'compareNodes.py',
|
||||
'ctxterror.py',
|
||||
'cutnpaste.py',
|
||||
'dtdvalid.py',
|
||||
'error.py',
|
||||
'inbuf.py',
|
||||
'indexes.py',
|
||||
'input_callback.py',
|
||||
'nsdel.py',
|
||||
'outbuf.py',
|
||||
'push.py',
|
||||
'pushSAX.py',
|
||||
'pushSAXhtml.py',
|
||||
'reader.py',
|
||||
'reader2.py',
|
||||
'reader3.py',
|
||||
'reader4.py',
|
||||
'reader5.py',
|
||||
'reader6.py',
|
||||
'reader7.py',
|
||||
'reader8.py',
|
||||
'readererr.py',
|
||||
'readernext.py',
|
||||
'regexp.py',
|
||||
'relaxng.py',
|
||||
'resolver.py',
|
||||
'schema.py',
|
||||
'serialize.py',
|
||||
'sync.py',
|
||||
'thread2.py',
|
||||
'tst.py',
|
||||
'tstLastError.py',
|
||||
'tstURI.py',
|
||||
'tstmem.py',
|
||||
'tstxpath.py',
|
||||
'validDTD.py',
|
||||
'validRNG.py',
|
||||
'validSchemas.py',
|
||||
'validate.py',
|
||||
'walker.py',
|
||||
'xpath.py',
|
||||
'xpathext.py',
|
||||
'xpathleak.py',
|
||||
'xpathns.py',
|
||||
'xpathret.py',
|
||||
]
|
||||
|
||||
foreach file : python_tests
|
||||
test(file, py, args: [ file ],
|
||||
workdir: meson.current_source_dir() / 'tests',
|
||||
env: { 'PYTHONPATH': meson.current_build_dir() })
|
||||
endforeach
|
||||
endif
|
||||
|
@ -53,7 +53,7 @@ XMLS= \
|
||||
invalid.xml \
|
||||
test.dtd
|
||||
|
||||
EXTRA_DIST = $(PYTESTS) $(XMLS) setup_test.py meson.build
|
||||
EXTRA_DIST = $(PYTESTS) $(XMLS) setup_test.py
|
||||
|
||||
CLEANFILES = core tmp.xml *.pyc
|
||||
|
||||
|
@ -1,59 +0,0 @@
|
||||
# TODO: Run the tests
|
||||
|
||||
python_test_files = files(
|
||||
'attribs.py',
|
||||
'build.py',
|
||||
'compareNodes.py',
|
||||
'ctxterror.py',
|
||||
'cutnpaste.py',
|
||||
'dtdvalid.py',
|
||||
'error.py',
|
||||
'inbuf.py',
|
||||
'indexes.py',
|
||||
'input_callback.py',
|
||||
'nsdel.py',
|
||||
'outbuf.py',
|
||||
'push.py',
|
||||
'pushSAX.py',
|
||||
'pushSAXhtml.py',
|
||||
'reader.py',
|
||||
'reader2.py',
|
||||
'reader3.py',
|
||||
'reader4.py',
|
||||
'reader5.py',
|
||||
'reader6.py',
|
||||
'reader7.py',
|
||||
'reader8.py',
|
||||
'readererr.py',
|
||||
'readernext.py',
|
||||
'regexp.py',
|
||||
'relaxng.py',
|
||||
'resolver.py',
|
||||
'schema.py',
|
||||
'serialize.py',
|
||||
'setup_test.py',
|
||||
'sync.py',
|
||||
'thread2.py',
|
||||
'tst.py',
|
||||
'tstLastError.py',
|
||||
'tstURI.py',
|
||||
'tstmem.py',
|
||||
'tstxpath.py',
|
||||
'validDTD.py',
|
||||
'validRNG.py',
|
||||
'validSchemas.py',
|
||||
'validate.py',
|
||||
'walker.py',
|
||||
'xpath.py',
|
||||
'xpathext.py',
|
||||
'xpathleak.py',
|
||||
'xpathns.py',
|
||||
'xpathret.py',
|
||||
)
|
||||
|
||||
xml_files = files(
|
||||
'invalid.xml',
|
||||
'test.dtd',
|
||||
'tst.xml',
|
||||
'valid.xml',
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user