@@ -13,9 +13,10 @@ function usage()
{
cat <<EOF
-Usage: $0 [-g group] [-h] [-v]
+Usage: $0 [-g group] [-a accel] [-h] [-v]
-g: Only execute tests in the given group
+ -a: Force acceleration mode (tcg/kvm)
-h: Output this help text
-v: Enables verbose mode
@@ -28,11 +29,14 @@ EOF
RUNTIME_arch_run="./$TEST_DIR/run"
source scripts/runtime.bash
-while getopts "g:hv" opt; do
+while getopts "g:a:hv" opt; do
case $opt in
g)
only_group=$OPTARG
;;
+ a)
+ force_accel=$OPTARG
+ ;;
h)
usage
exit
@@ -75,6 +75,10 @@ function run()
return;
fi
+ if [ -n "$force_accel" ]; then
+ accel=$force_accel
+ fi
+
if [ -n "$arch" ] && [ "$arch" != "$ARCH" ]; then
echo "`SKIP` $1 ($arch only)"
return 2