tests: Use different suites
This makes it easier to only run unit- or automation tests. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2845>
This commit is contained in:
parent
a5cf08ac55
commit
476bf23041
@ -18,7 +18,7 @@ dbus_runner = configure_file(
|
|||||||
configuration: dbusrunnerconf,
|
configuration: dbusrunnerconf,
|
||||||
)
|
)
|
||||||
|
|
||||||
tests = [
|
unit_tests = [
|
||||||
'highlighter',
|
'highlighter',
|
||||||
'insertSorted',
|
'insertSorted',
|
||||||
'jsParse',
|
'jsParse',
|
||||||
@ -29,9 +29,10 @@ tests = [
|
|||||||
'versionCompare',
|
'versionCompare',
|
||||||
]
|
]
|
||||||
|
|
||||||
foreach test : tests
|
foreach test : unit_tests
|
||||||
test(test, run_test,
|
test(test, run_test,
|
||||||
args: 'unit/@0@.js'.format(test),
|
args: 'unit/@0@.js'.format(test),
|
||||||
|
suite: 'unit',
|
||||||
workdir: meson.current_source_dir())
|
workdir: meson.current_source_dir())
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
@ -67,7 +68,8 @@ foreach shell_test : shell_tests
|
|||||||
test_name = shell_test['name']
|
test_name = shell_test['name']
|
||||||
options = shell_test.get('options', [])
|
options = shell_test.get('options', [])
|
||||||
|
|
||||||
test('shell-' + test_name, dbus_runner,
|
test(test_name, dbus_runner,
|
||||||
|
suite: 'shell',
|
||||||
args: [
|
args: [
|
||||||
test_tool,
|
test_tool,
|
||||||
'--headless',
|
'--headless',
|
||||||
|
Loading…
Reference in New Issue
Block a user