mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
build: Run unit tests on meson test
Meson makes it easy to define unit tests, so hook up the existing ones. https://bugzilla.gnome.org/show_bug.cgi?id=786497
This commit is contained in:
parent
7da5a76aaa
commit
4543ca1620
2 changed files with 19 additions and 2 deletions
|
|
@ -1,8 +1,18 @@
|
|||
testconf = configuration_data()
|
||||
testconf.set('MUTTER_TYPELIB_DIR', mutter_typelibdir)
|
||||
testconf.set('srcdir', meson.current_source_dir())
|
||||
configure_file(
|
||||
run_test = configure_file(
|
||||
input: 'run-test.sh.in',
|
||||
output: 'run-test.sh',
|
||||
configuration: testconf
|
||||
)
|
||||
|
||||
testenv = environment()
|
||||
testenv.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.build_root(), 'data'))
|
||||
|
||||
foreach test : ['insertSorted', 'jsParse', 'markup', 'url']
|
||||
test(test, run_test,
|
||||
args: 'unit/@0@.js'.format(test),
|
||||
env: testenv,
|
||||
workdir: meson.current_source_dir())
|
||||
endforeach
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue