2017-05-25 00:16:27 +00:00
|
|
|
testconf = configuration_data()
|
|
|
|
testconf.set('MUTTER_TYPELIB_DIR', mutter_typelibdir)
|
|
|
|
testconf.set('srcdir', meson.current_source_dir())
|
2017-08-19 08:43:38 +00:00
|
|
|
run_test = configure_file(
|
2017-05-25 00:16:27 +00:00
|
|
|
input: 'run-test.sh.in',
|
|
|
|
output: 'run-test.sh',
|
|
|
|
configuration: testconf
|
|
|
|
)
|
2017-08-19 08:43:38 +00:00
|
|
|
|
|
|
|
testenv = environment()
|
|
|
|
testenv.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.build_root(), 'data'))
|
|
|
|
|
2019-07-05 15:52:37 +00:00
|
|
|
foreach test : ['insertSorted', 'jsParse', 'markup', 'params', 'url']
|
2017-08-19 08:43:38 +00:00
|
|
|
test(test, run_test,
|
|
|
|
args: 'unit/@0@.js'.format(test),
|
|
|
|
env: testenv,
|
|
|
|
workdir: meson.current_source_dir())
|
|
|
|
endforeach
|