1238b5967SMarc Hartmayer# The file scripts/common.bash has to be the only file sourcing this 2238b5967SMarc Hartmayer# arch helper file 3238b5967SMarc Hartmayersource config.mak 4238b5967SMarc Hartmayer 5238b5967SMarc HartmayerARCH_CMD=arch_cmd_s390x 6238b5967SMarc Hartmayer 7238b5967SMarc Hartmayerfunction arch_cmd_s390x() 8238b5967SMarc Hartmayer{ 9238b5967SMarc Hartmayer local cmd=$1 10238b5967SMarc Hartmayer local testname=$2 11238b5967SMarc Hartmayer local groups=$3 12238b5967SMarc Hartmayer local smp=$4 13238b5967SMarc Hartmayer local kernel=$5 14*d4d46483SAndrew Jones local test_args=$6 15*d4d46483SAndrew Jones local opts=$7 16*d4d46483SAndrew Jones local arch=$8 17*d4d46483SAndrew Jones local machine=$9 18*d4d46483SAndrew Jones local check=${10} 19*d4d46483SAndrew Jones local accel=${11} 20*d4d46483SAndrew Jones local timeout=${12} 21238b5967SMarc Hartmayer 22238b5967SMarc Hartmayer # run the normal test case 23*d4d46483SAndrew Jones "$cmd" "$testname" "$groups" "$smp" "$kernel" "$test_args" "$opts" "$arch" "$machine" "$check" "$accel" "$timeout" 24238b5967SMarc Hartmayer 25238b5967SMarc Hartmayer # run PV test case 26bff3aac8SNicholas Piggin if [ "$accel" = 'tcg' ] || grep -q "migration" <<< "$groups"; then 27c99ae8c0SJanosch Frank return 28c99ae8c0SJanosch Frank fi 29238b5967SMarc Hartmayer kernel=${kernel%.elf}.pv.bin 30238b5967SMarc Hartmayer testname=${testname}_PV 31238b5967SMarc Hartmayer if [ ! -f "${kernel}" ]; then 32238b5967SMarc Hartmayer if [ -z "${HOST_KEY_DOCUMENT}" ]; then 33238b5967SMarc Hartmayer return 2 34238b5967SMarc Hartmayer fi 35238b5967SMarc Hartmayer 36238b5967SMarc Hartmayer print_result 'SKIP' $testname '' 'PVM image was not created' 37238b5967SMarc Hartmayer return 2 38238b5967SMarc Hartmayer fi 39*d4d46483SAndrew Jones "$cmd" "$testname" "$groups pv" "$smp" "$kernel" "$test_args" "$opts" "$arch" "$machine" "$check" "$accel" "$timeout" 40238b5967SMarc Hartmayer} 41