#
# Copyright (C) 2017 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
#

cdrom_insert	Debian-5.0r0-amd64-DVD-1
#
# Power-on node.
#
power_on
#
# wait for bios detecting the card
#
wait_asc	beaf dead					1min
#
# wait for "Installer"
#
wait_ppm	01-install.png					2min
type		"\0d"
#
# wait for "language"
#
wait_asc	language					5min
#
# switch to tty2
#
press_ctrl
press_alt
type		"\11"
release_ctrl
release_alt
#
# wait for "Press Enter ..."
#
wait_asc	press Enter					1min
type		"\0d"
#
# wait for shell prompt
#
wait_asc	~						1min
#
# remove debian dvd
#
cdrom_remove
cdrom_insert	cdrom.iso
#
# mount the iso
#
type		"mount -t iso9660 /dev/cdrom /mnt\0d"
#
# perform self-test
#
type		"/mnt/test.bin d020 --self-test\0d"
wait_asc	self-test completed successfully		2min
#
# play song
#
type		"/mnt/test.bin d020\0d"
wait_asc	Playing done					4min
#
# FIXME need to wait until audio buffer is flushed
#
delay								30sec
#
# test end.
#
