tests: Add ways to run privileged tests without KVM

These will be skipped by default, but can be run from a TTY for easier
debugging by doing:

    dbus-run-session -- meson test -C build --suite mutter/native/tty --setup plain

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2151>
This commit is contained in:
Jonas Ådahl
2021-12-13 10:39:45 +01:00
committed by Marge Bot
parent 06eb27d503
commit 812954b22c
3 changed files with 28 additions and 1 deletions

View File

@ -395,7 +395,7 @@ if have_native_tests
)
endif
if have_kvm_tests
if have_kvm_tests or have_tty_tests
privileged_tests = [
[ 'kms-render', native_kms_render_tests ],
]
@ -403,4 +403,18 @@ if have_kvm_tests
if have_kvm_tests
subdir('kvm')
endif
if have_tty_tests
foreach test: privileged_tests
test_name = test[0]
test_executable = test[1]
test('native-' + test_name, test_executable,
suite: ['core', 'mutter/native/tty'],
env: test_env,
is_parallel: false,
timeout: 60,
)
endforeach
endif
endif