1#!/bin/bash 2 3set -ex -o pipefail 4 5serial_log="$(pwd)/smoke.serial" 6 7# machine type from first arg passed directly to qemu -M 8machine=$1 9 10# Run the test 11rm -f ${serial_log} 12 13export TEST_CMD="qemu-system-ppc64 \ 14 -bios skiboot.lid \ 15 -M $machine \ 16 -m 2g \ 17 -smp 1 \ 18 -vga none \ 19 -monitor none \ 20 -nographic \ 21 -serial stdio \ 22 -kernel binaries/xen" 23 24export TEST_LOG="${serial_log}" 25export PASSED="Hello, ppc64le!" 26 27./automation/scripts/console.exp | sed 's/\r\+$//' 28