summary refs log tree commit diff stats
path: root/configure
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2025-10-03 14:18:14 +0000
committerAlex Bennée <alex.bennee@linaro.org>2025-10-07 07:33:40 +0100
commitb46b3818cf8d838991b15f20d3cb747b71ce040e (patch)
tree74266869dfb43470e89484f224b4661d1a0c4ef3 /configure
parentc8f24e1b95430759f79223dc75c66fa7ec3ef2ee (diff)
downloadfocaccia-qemu-b46b3818cf8d838991b15f20d3cb747b71ce040e.tar.gz
focaccia-qemu-b46b3818cf8d838991b15f20d3cb747b71ce040e.zip
tests/functional: Provide GDB to the functional tests
The probe of GDB is done in 'configure' and the full path is passed to
meson.build via the -Dgdb=option.

Meson then can pass the location of GDB to the functional tests via an
environment variable: QEMU_TEST_GDB.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Message-ID: <20251003141820.85278-4-gustavo.romero@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 78445cbb4b..21d1679f58 100755
--- a/configure
+++ b/configure
@@ -2003,6 +2003,8 @@ if test "$skip_meson" = no; then
   test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engine=$LIB_FUZZING_ENGINE"
   test "$plugins" = yes && meson_option_add "-Dplugins=true"
   test "$tcg" != enabled && meson_option_add "-Dtcg=$tcg"
+  test -n "$gdb_bin" && meson_option_add "-Dgdb=$gdb_bin"
+
   run_meson() {
     NINJA=$ninja $meson setup "$@" "$PWD" "$source_path"
   }