mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
29 lines
389 B
Bash
Executable File
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 $@
|