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()
|
2021-12-22 20:40:22 -05:00
|
|
|
testenv.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.project_build_root(), 'data'))
|
2017-08-19 04:43:38 -04:00
|
|
|
|
2021-11-16 21:05:05 -05:00
|
|
|
tests = [
|
|
|
|
'highlighter',
|
|
|
|
'insertSorted',
|
|
|
|
'jsParse',
|
|
|
|
'markup',
|
|
|
|
'params',
|
|
|
|
'url',
|
|
|
|
'versionCompare',
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach test : tests
|
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
|