#! /bin/sh
# Check floppy booting.
cat <<EOF >test-x
Drive: 0x80
Default: D
Timeout: 18/18 seconds
Enabled: F A
Interrupt: Shift
EOF
do_install -lis -r -I bigdisk.b bigdisk >test-y
diff -u test-x test-y
cat <<EOF >test-x
Drive: 0x80
Default: F
Timeout: 9/18 seconds
Enabled: A
Interrupt: Shift
EOF
do_install -l -d 0x80 -p f -t 9 -is -ea -o 128 image.hda > test-y
diff -u test-x test-y
cat <<EOF >test-x
BEGIN
90
C7
82
26
SE
END
EOF
run_dos </dev/null

# Check interrupted booting.
cat <<EOF >test-x
Drive: 0x80
Default: 2
Timeout: 18/18 seconds
Enabled: F A
Interrupt: Key
EOF
do_install -l -ik -o 128 -p 2 -e+f image.hda >test-y
diff -u test-x test-y
cat <<EOF >test-x
BEGIN
90
C7
82
26
SE
END
EOF
echo f | run_dos

: Done
