1# The file scripts/common.bash has to be the only file sourcing this 2# arch helper file 3source config.mak 4 5ARCH_CMD=arch_cmd_s390x 6 7function arch_cmd_s390x() 8{ 9 local cmd=$1 10 local testname=$2 11 local groups=$3 12 local smp=$4 13 local kernel=$5 14 local opts=$6 15 local arch=$7 16 local machine=$8 17 local check=$9 18 local accel=${10} 19 local timeout=${11} 20 21 # run the normal test case 22 "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$machine" "$check" "$accel" "$timeout" 23 24 # run PV test case 25 if [ "$accel" = 'tcg' ] || grep -q "migration" <<< "$groups"; then 26 return 27 fi 28 kernel=${kernel%.elf}.pv.bin 29 testname=${testname}_PV 30 if [ ! -f "${kernel}" ]; then 31 if [ -z "${HOST_KEY_DOCUMENT}" ]; then 32 return 2 33 fi 34 35 print_result 'SKIP' $testname '' 'PVM image was not created' 36 return 2 37 fi 38 "$cmd" "$testname" "$groups pv" "$smp" "$kernel" "$opts" "$arch" "$machine" "$check" "$accel" "$timeout" 39} 40