Files
xen/automation/scripts/include/xtf-x86-64
T
Denis Mukhin a22f80e758 CI: unify x86 XTF test runner
Add test runner script qemu-xtf.sh which is allows any XTF x86 test to be
easily executed. Test runner is invoked from the qemu-smoke* jobs with the
hardcoded parameters.

Each x86 XTF job lead time is reduced a bit since only the test-related code
is built, not the entire XTF project.

Add .gitignore to avoid committing test artifacts by mistake.

Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-04-22 13:07:12 -07:00

32 lines
876 B
Bash

#!/bin/bash
#
# XTF test utilities (x86_64).
#
# Arch-specific environment overrides.
function xtf_arch_prepare()
{
export FW_PREFIX="${FW_PREFIX:-}"
export QEMU_PREFIX="${QEMU_PREFIX:-}"
export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
export XTF_SRC_VARIANTS="hvm64 pv64"
}
# Perform arch-specific XTF environment setup.
function xtf_arch_setup()
{
export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
-no-reboot \
-nographic \
-monitor none \
-serial stdio \
-m 512 \
-kernel ${XEN_BINARY} \
-initrd ${XTF_BINARY} \
-append \"${XEN_CMDLINE}\" \
"
}