summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-19 16:01:48 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-23 21:36:22 +0200
commit344a97e08a695af40ec77e439582ffdc06154f21 (patch)
tree54a4e7e9936052a9ae811a90d55acf143f8b2db9 /data
parent9e3b3db7054c7dedecd14db3e6061ff7e2227faf (diff)
downloadmeson-344a97e08a695af40ec77e439582ffdc06154f21.tar.gz
Add meson test --interactive
This is very similar to --gdb, except it doesn't spawn GDB, but connects stdin/stdout/stderr directly to the test itself. This allows interacting with integration tests that spawn a shell in a container or virtual machine when the test fails. In systemd we're migrating our integration tests to run using the meson test runner. We want to allow interactive debugging of failed tests directly in the virtual machine or container that is spawned to run the test. To make this possible, we need meson test to connect stdin/stdout/stderr of the test directly to the user's terminal, just like is done with the --gdb option.
Diffstat (limited to 'data')
-rw-r--r--data/shell-completions/bash/meson1
-rw-r--r--data/shell-completions/zsh/_meson1
2 files changed, 2 insertions, 0 deletions
diff --git a/data/shell-completions/bash/meson b/data/shell-completions/bash/meson
index 55c9c008d..dc437f10f 100644
--- a/data/shell-completions/bash/meson
+++ b/data/shell-completions/bash/meson
@@ -566,6 +566,7 @@ _meson-test() {
no-rebuild
gdb
gdb-path
+ interactive
list
wrapper
suite
diff --git a/data/shell-completions/zsh/_meson b/data/shell-completions/zsh/_meson
index e6f50f1af..402539f1b 100644
--- a/data/shell-completions/zsh/_meson
+++ b/data/shell-completions/zsh/_meson
@@ -181,6 +181,7 @@ local -a meson_commands=(
'--no-rebuild[do not rebuild before running tests]'
'--gdb[run tests under gdb]'
'--gdb-path=[program to run for gdb (can be wrapper or compatible program)]:program:_path_commands'
+ '(--interactive -i)'{'--interactive','-i'}'[run tests with interactive input/output]'
'--list[list available tests]'
'(--wrapper --wrap)'{'--wrapper=','--wrap='}'[wrapper to run tests with]:wrapper program:_path_commands'
"$__meson_cd"