Files
xen/automation/scripts/qemu-smoke-riscv64.sh
T
Stefano Stabellini c36efb7fce automation: use expect to run QEMU
Use expect to invoke QEMU so that we can terminate the test as soon as
we get the right string in the output instead of waiting until the
final timeout.

For timeout, instead of an hardcoding the value, use a Gitlab CI
variable "QEMU_TIMEOUT" that can be changed depending on the latest
status of the Gitlab CI runners.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
2024-08-13 16:05:05 -07:00

20 lines
279 B
Bash
Executable File

#!/bin/bash
set -ex
# Run the test
rm -f smoke.serial
set +e
export QEMU_CMD="qemu-system-riscv64 \
-M virt \
-smp 1 \
-nographic \
-m 2g \
-kernel binaries/xen"
export QEMU_LOG="smoke.serial"
export PASSED="All set up"
./automation/scripts/qemu-key.exp