Project

General

Profile

action #804 ยป 145_aplay.pm

Fixed test - _miska_, 2013-10-18 09:34

 
use base "basetest";
use bmwqemu;

sub run()
{
my $self=shift;
script_sudo("zypper -n in alsa-utils; echo aplay_installed > /dev/$serialdev");
waitserial('aplay_installed');
$self->take_screenshot;
script_run('clear');
script_run('amixer set Master `amixer get Master | sed -n \'s|.*Limits:.*\ -\ \([0-9]\+\)|\1|p\'` unmute');
script_run('amixer set PCM `amixer get PCM | sed -n \'s|.*Limits:.*\ -\ \([0-9]\+\)|\1|p\'` unmute');
$self->take_screenshot;
script_run('clear; cd /tmp;wget openqa.opensuse.org/opensuse/audio/bar.wav');
$self->start_audiocapture;
script_run("aplay bar.wav ; echo aplay_finished > /dev/$serialdev");
waitserial('aplay_finished');
$self->check_screen;
$self->check_DTMF('123A456B789C*0#D');
script_run("alsamixer");
sleep 1;
$self->check_screen;
send_key("esc");
send_key("esc");
}

1;
    (1-1/1)