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