qemu/tests
Gustavo Romero 3848409eb0 tests/guest-debug: Support passing arguments to the GDB test script
This commit adds support for passing arguments to the GDB test scripts
so it's possible to parse the args in an "argparse way" in the test
scripts launched by the runner. The arguments should be preceded by --
when passed to the runner. For example, passing "--help" arg to the
GDB_TEST_SCRIPT:

run-test.py [...] --test <GDB_TEST_SCRIPT> -- --help

The test script should not use the argparse module directly but import
arg_parser from test_gdbstub module. arg_parser then can be used just
like the argparse.ArgumentParser class:

from test_gdbstub import arg_parser

p = arg_parser(prog="test-mytest.py", description="My test.")
p.add_argument("--vowel", help="Select vowel",
               required=True, choices=['a','e','i','o','u'])
[...]

The arg_parser allows a smooth and informative exit if, for instance,
the caller of the runner script passes an invalid argument or misses a
required argument by the test script.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240906143316.657436-4-gustavo.romero@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240910173900.4154726-9-alex.bennee@linaro.org>
2024-09-10 23:33:55 +01:00
..
avocado tests/avocado: Remove unused QemuUserTest class 2024-09-04 12:28:00 +02:00
bench tests/bench: Add bufferiszero-bench 2024-05-03 08:03:35 -07:00
data tests/acpi: Add expected ACPI AML files for RISC-V 2024-07-22 20:15:42 -04:00
decode tests/: spelling fixes 2023-09-08 13:08:52 +03:00
docker tests/docker: update debian i686 and mipsel images to bookworm 2024-09-10 23:32:58 +01:00
fp tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes 2024-01-12 13:23:48 +00:00
functional tests/functional: Convert ARM bFLT linux-user avocado test 2024-09-04 12:28:00 +02:00
guest-debug tests/guest-debug: Support passing arguments to the GDB test script 2024-09-10 23:33:55 +01:00
image-fuzzer
include
keys
lcitool tests/docker: update debian i686 and mipsel images to bookworm 2024-09-10 23:32:58 +01:00
migration tests/qtest/migration-test: Use custom asm bios for ppc64 2024-06-14 14:01:23 -03:00
multiboot
perf/block/qcow2
qapi-schema qapi: remove "Example" doc section 2024-07-17 10:20:54 +02:00
qemu-iotests iotests: fix expected output from gnutls 2024-09-09 15:13:38 +01:00
qtest tests/migration: Add integration test for 'qatzip' compression method 2024-09-09 10:55:40 -04:00
rocker
tcg target/i386: Fix carry flag for BLSI 2024-08-21 09:11:26 +10:00
tsan block: remove AioContext locking 2023-12-21 22:49:27 +01:00
uefi-test-tools tests/data/uefi-boot-images: Add RISC-V ISO image 2024-07-03 18:14:06 -04:00
unit tests/unit: build pbkdf test on macOS 2024-09-09 15:13:38 +01:00
vm ci: refresh package lists with lcitool 2024-08-16 09:16:03 +02:00
vmstate-static-checker-data
dbus-vmstate-daemon.sh
Makefile.include tests/functional: enable pre-emptive caching of assets 2024-09-04 10:52:29 +02:00
meson.build tests/functional: Prepare the meson build system for the functional tests 2024-09-04 10:52:29 +02:00
test-qht-par.c
vhost-user-bridge.c error handling: Use RETRY_ON_EINTR() macro where applicable 2023-01-09 13:50:47 +01:00