Skip to content
Snippets Groups Projects
Commit ae829d30 authored by Michal Sojka's avatar Michal Sojka
Browse files

Add RTEMS gateway benchmark to continuous tests

parent b165a6fb
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,9 @@ $|=1;
my $ready;
while (<$boot>){
last if ($ready = /Welcome to Buildroot/ || /UGW started/);
last if ($ready = m/Welcome to Buildroot/ ||
m/UGW started/ ||
m/t...a...s...k...s... ...s...t...a...r...t...e...d/); # RTEMS has bug - it sends 4 characters instead of just one
}
die "Boot failed" unless $ready;
......@@ -42,9 +44,7 @@ sub kill_boot() { kill('TERM', -$pid) if defined $pid; }
sub run_boot()
{
# die("No boot command") if ($#ARGV eq -1);
my $bootcmd = "'".join("' '", @ARGV)."'";
$bootcmd ||= "$FindBin::Bin/boot";
my $bootcmd = scalar @ARGV ? "'".join("' '", @ARGV)."'" : "$FindBin::Bin/boot";
$SIG{INT} = sub { kill_boot(); exit; };
......
#!/bin/bash
. lib.sh
WVSTART "RTEMS gateway"
../gw-setup/run.pl ../../rtems/gw/boot --expect-raw '"]", sub { shift->send_slow(0.1, "startGW\n"); }'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment