meson: tests: subset: no need to check for 'which' command any more

Test runner script now handles that.
This commit is contained in:
Tim-Philipp Müller 2018-12-01 21:15:33 +00:00 committed by Ebrahim Byagowi
parent 0976300be4
commit 8fc66dbf9f
1 changed files with 13 additions and 20 deletions

View File

@ -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