meson: tests: subset: no need to check for 'which' command any more
Test runner script now handles that.
This commit is contained in:
parent
0976300be4
commit
8fc66dbf9f
|
@ -1,23 +1,16 @@
|
|||
tests = [
|
||||
['basics.tests'],
|
||||
['full-font.tests'],
|
||||
['japanese.tests'],
|
||||
]
|
||||
tests = ['basics', 'full-font', 'japanese']
|
||||
|
||||
# The test tries to run which unconditionally, windows doesn't agree
|
||||
if find_program('which', required: false).found()
|
||||
foreach test_data : tests
|
||||
fname = test_data[0]
|
||||
run_test = find_program('run-tests.py')
|
||||
|
||||
test_name = fname.split('.')[0].underscorify()
|
||||
foreach t : tests
|
||||
fname = '@0@.tests'.format(t)
|
||||
|
||||
test(t, run_test,
|
||||
args: [
|
||||
hb_subset,
|
||||
join_paths(meson.current_source_dir(), 'data', 'tests', fname),
|
||||
],
|
||||
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
||||
)
|
||||
endforeach
|
||||
|
||||
test(test_name, python3,
|
||||
args: [
|
||||
files('run-tests.py')[0],
|
||||
hb_subset,
|
||||
join_paths(meson.current_source_dir(), 'data/tests', fname),
|
||||
],
|
||||
workdir: join_paths(meson.current_build_dir(), '..', '..'),
|
||||
)
|
||||
endforeach
|
||||
endif
|
Loading…
Reference in New Issue