| # The file scripts/common.bash has to be the only file sourcing this |
| # arch helper file |
| source config.mak |
| |
| ARCH_CMD=arch_cmd_s390x |
| |
| function arch_cmd_s390x() |
| { |
| local cmd=$1 |
| local testname=$2 |
| local groups=$3 |
| local smp=$4 |
| local kernel=$5 |
| local opts=$6 |
| local arch=$7 |
| local check=$8 |
| local accel=$9 |
| local timeout=${10} |
| |
| # run the normal test case |
| "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" |
| |
| # run PV test case |
| if [ "$ACCEL" = 'tcg' ]; then |
| return |
| fi |
| kernel=${kernel%.elf}.pv.bin |
| testname=${testname}_PV |
| if [ ! -f "${kernel}" ]; then |
| if [ -z "${HOST_KEY_DOCUMENT}" ]; then |
| return 2 |
| fi |
| |
| print_result 'SKIP' $testname '' 'PVM image was not created' |
| return 2 |
| fi |
| "$cmd" "$testname" "$groups pv" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" |
| } |