summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 42c442e..8372574 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -109,10 +109,14 @@ test('term-cross-test', bash,
timeout: 600,
)
-if get_option('kitty_tests')
- if host_machine.system() != 'linux' or get_option('b_sanitize') != 'none'
- error('Kitty tests require an unsanitized Linux build')
- endif
+# The bridge is a shared library that Python loads, so a sanitized build
+# cannot run it.
+kitty_tests = get_option('kitty').require(
+ host_machine.system() == 'linux' and get_option('b_sanitize') == 'none',
+ error_message: 'The Kitty tests need an unsanitized Linux build',
+)
+term_kitty_tests = kitty_tests.allowed()
+if term_kitty_tests
kitty_bridge = shared_library('term', 'extern/kitty/screen_bridge.c',
dependencies: term_internal_dep,
)
@@ -122,7 +126,7 @@ if get_option('kitty_tests')
args: files('extern/kitty/parser.py'),
depends: kitty_bridge,
env: kitty_env,
- suite: 'kitty',
+ suite: ['unit', 'kitty'],
is_parallel: false,
)
endif