1#!/bin/bash
2#
3# XTF test runner (QEMU).
4#
5
6set -e -o pipefail
7
8if [ $# -lt 3 ]; then
9    echo "Usage: $(basename $0) ARCH XTF-VARIANT XTF-NAME"
10    exit 0
11fi
12
13export ARCH="$1"
14shift
15
16set -x
17
18export XEN_ROOT="${PWD}"
19cd $(dirname $0)
20
21source include/xtf-runner
22
23if [ ! -f "include/xtf-${ARCH}" ]; then
24    die "unsupported architecture '${ARCH}'"
25fi
26source include/xtf-${ARCH}
27
28xtf_test $@
29