tests: Make some tests dependent on the shell-desktop option

The internal-screenshot and text tests are dependent on the feature and
fail with it disabled.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot 2024-10-14 22:26:56 +01:00
parent 486d96a162
commit 9a536962a5
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -170,7 +170,6 @@ tests = [
{ 'name': 'drm-smoke', 'run_exclusive': true },
{ 'name': 'drm-writeback-screenshot', 'run_exclusive': true },
{ 'name': 'event', },
{ 'name': 'internal-screenshot', },
{
'name': 'keyboard',
'sources': [
@ -249,14 +248,6 @@ tests = [
{ 'name': 'subsurface-shot', },
{ 'name': 'surface', },
{ 'name': 'surface-global', },
{
'name': 'text',
'sources': [
'text-test.c',
text_input_unstable_v1_client_protocol_h,
text_input_unstable_v1_protocol_c,
],
},
{
'name': 'touch',
'sources': [
@ -382,6 +373,20 @@ surface_screenshot_test = shared_library(
install: false,
)
if get_option('shell-desktop')
tests += [
{ 'name': 'internal-screenshot', },
{
'name': 'text',
'sources': [
'text-test.c',
text_input_unstable_v1_client_protocol_h,
text_input_unstable_v1_protocol_c,
],
},
]
endif
if get_option('shell-ivi')
ivi_layout_test_plugin = shared_library(
'test-ivi-layout',