[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 06/11] qemu-iotests: add gdbserver option to script tests
From: |
Emanuele Giuseppe Esposito |
Subject: |
[RFC PATCH v2 06/11] qemu-iotests: add gdbserver option to script tests too |
Date: |
Wed, 7 Apr 2021 15:50:16 +0200 |
The only limitation here is that running a script with gdbserver
will make the test output mismatch with the expected
results, making the test fail.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
---
tests/qemu-iotests/common.rc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 65cdba5723..53a3310fee 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -166,8 +166,14 @@ _qemu_wrapper()
if [ -n "${QEMU_NEED_PID}" ]; then
echo $BASHPID > "${QEMU_TEST_DIR}/qemu-${_QEMU_HANDLE}.pid"
fi
+
+ GDB="${QEMU_PROG}"
+ if [ ! -z ${GDB_QEMU} ]; then
+ GDB="gdbserver ${GDB_QEMU} ${GDB}"
+ fi
+
VALGRIND_QEMU="${VALGRIND_QEMU_VM}" _qemu_proc_exec
"${VALGRIND_LOGFILE}" \
- "$QEMU_PROG" $QEMU_OPTIONS "$@"
+ $GDB $QEMU_OPTIONS "$@"
)
RETVAL=$?
_qemu_proc_valgrind_log "${VALGRIND_LOGFILE}" $RETVAL
--
2.30.2
- Re: [RFC PATCH v2 02/11] python: qemu: pass the wrapper field from QEMUQtestmachine to QEMUMachine, (continued)
[RFC PATCH v2 03/11] qemu-iotests: add option to attach gdbserver, Emanuele Giuseppe Esposito, 2021/04/07
[RFC PATCH v2 05/11] qemu_iotests: insert gdbserver command line as wrapper for qemu binary, Emanuele Giuseppe Esposito, 2021/04/07
[RFC PATCH v2 06/11] qemu-iotests: add gdbserver option to script tests too,
Emanuele Giuseppe Esposito <=
[RFC PATCH v2 07/11] qemu_iotests: extend the check script to support valgrind for python tests, Emanuele Giuseppe Esposito, 2021/04/07
[RFC PATCH v2 08/11] qemu_iotests: extent QMP socket timeout when using valgrind, Emanuele Giuseppe Esposito, 2021/04/07
[RFC PATCH v2 10/11] qemu_iotests: insert valgrind command line as wrapper for qemu binary, Emanuele Giuseppe Esposito, 2021/04/07
[RFC PATCH v2 09/11] qemu_iotests: allow valgrint to print/delete the generated log file, Emanuele Giuseppe Esposito, 2021/04/07
[RFC PATCH v2 11/11] qemu_iotests: add option to show qemu binary logs on stdout, Emanuele Giuseppe Esposito, 2021/04/07
Re: [RFC PATCH v2 00/11] qemu_iotests: improve debugging options, Markus Armbruster, 2021/04/08