#!/usr/local/bin/expect

set timeout 4000
spawn ./gxemul -e3max -q -d nbsd_pmax.img -d bc:../../emul/mips/pmaxcd-5.1.1.iso

expect "Terminal type"
send "vt100\r"
expect " in English"
send "\r"
expect "a: Install NetBSD to"
send "\r"
expect "b: Yes"
send "b\r"
expect "Hit enter to continue"
send "\r"
expect "a: Full installation"
send "\r"
expect "a: Set sizes of NetBSD partitions"
send "\r"
expect "Accept partition sizes"
send " \r"
expect "x: Partition sizes ok"
send "\r"
expect "Please enter a name for"
send "\r"
expect "b: Yes"
send "b\r"
expect "a: Progress bar"
send "\r"
expect "a: CD-ROM"
send "\r"
expect "x: Continue"
send "x\r"
expect "Hit enter to continue"
send "\r"

expect "Hit enter to continue"
send "\r"
expect "Press 'x' followed by RETURN to quit"
send "x\r"
expect "a: DES"
send "\r"
expect "b: No"
send "b\r"
expect "a: /bin/sh"
send "\r"
expect "Hit enter to continue"
send "\r"
expect "d: Reboot the computer"
send "d\r"

close
