Files
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

29 lines
389 B
Bash
Executable File

#!/bin/bash
#
# XTF test runner (QEMU).
#
set -e -o pipefail
if [ $# -lt 3 ]; then
echo "Usage: $(basename $0) ARCH XTF-VARIANT XTF-NAME"
exit 0
fi
export ARCH="$1"
shift
set -x
export XEN_ROOT="${PWD}"
cd $(dirname $0)
source include/xtf-runner
if [ ! -f "include/xtf-${ARCH}" ]; then
die "unsupported architecture '${ARCH}'"
fi
source include/xtf-${ARCH}
xtf_test $@