mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
29 lines
471 B
Bash
Executable File
29 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
serial_log="$(pwd)/smoke.serial"
|
|
|
|
# machine type from first arg passed directly to qemu -M
|
|
machine=$1
|
|
|
|
# Run the test
|
|
rm -f ${serial_log}
|
|
set +e
|
|
|
|
export QEMU_CMD="qemu-system-ppc64 \
|
|
-bios skiboot.lid \
|
|
-M $machine \
|
|
-m 2g \
|
|
-smp 1 \
|
|
-vga none \
|
|
-monitor none \
|
|
-nographic \
|
|
-serial stdio \
|
|
-kernel binaries/xen"
|
|
|
|
export QEMU_LOG="${serial_log}"
|
|
export PASSED="Hello, ppc64le!"
|
|
|
|
./automation/scripts/qemu-key.exp
|