diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2023-01-05 11:00:04 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-01-05 17:05:55 +0000 |
commit | e7753edc271c786641da10d46e7f3213fa45dad7 (patch) | |
tree | 958b5ccdeec4dc86a559e010389211e136696ee1 | |
parent | 7a7379aae55b17e0c9525b60d5cdee83769e7d3a (diff) |
semihosting-tests: add timeout support
If you break semihosting in a way that hangs you need to be able to
detect that. Add support for a timeout.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -57,10 +57,14 @@ SYSGDB := -gdb tcp::$(GDBPORT) USRGDB := -g $(GDBPORT) endif +ifdef TIMEOUT +SYSTIMEOUT := timeout --foreground 10s +endif + QEMU_ARM = $(QEMU_BUILDDIR)/arm-linux-user/qemu-arm $(USRGDB) QEMU_AARCH64 = $(QEMU_BUILDDIR)/aarch64-linux-user/qemu-aarch64 $(USRGDB) -QEMU_SYSTEM_ARM = $(QEMU_BUILDDIR)/arm-softmmu/qemu-system-arm $(SYSGDB) -QEMU_SYSTEM_AARCH64 = $(QEMU_BUILDDIR)/aarch64-softmmu/qemu-system-aarch64 $(SYSGDB) +QEMU_SYSTEM_ARM = $(SYSTIMEOUT) $(QEMU_BUILDDIR)/arm-softmmu/qemu-system-arm $(SYSGDB) +QEMU_SYSTEM_AARCH64 = $(SYSTIMEOUT) $(QEMU_BUILDDIR)/aarch64-softmmu/qemu-system-aarch64 $(SYSGDB) all: usertest-a32 usertest-a64 usertest-t32 \ systest-a32.axf systest-t32.axf \ |