2016-12-21 22:21:53 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
touch /run/test.pid
|
|
|
|
cat > /usr/local/etc/screenrc << EOF
|
2016-12-22 21:41:51 -06:00
|
|
|
screen -t tests test-all
|
2016-12-21 22:21:53 -06:00
|
|
|
split -v
|
|
|
|
focus bottom
|
2016-12-22 21:41:51 -06:00
|
|
|
screen -t status watcher-screen
|
2016-12-21 22:21:53 -06:00
|
|
|
EOF
|
|
|
|
|
2016-12-22 21:41:51 -06:00
|
|
|
WAIT=25
|
2016-12-21 22:21:53 -06:00
|
|
|
echo -n "Waiting $WAIT seconds for tests to start"
|
|
|
|
while [[ $WAIT -gt 0 ]] ; do
|
|
|
|
sleep 1
|
2016-12-22 21:41:51 -06:00
|
|
|
if [[ $(( WAIT % 5 )) == 0 ]] ; then
|
|
|
|
echo -n $WAIT
|
|
|
|
else
|
|
|
|
echo -n '.'
|
|
|
|
fi
|
2016-12-21 22:21:53 -06:00
|
|
|
WAIT=$(( WAIT -1 ))
|
|
|
|
done
|
|
|
|
echo
|
2016-12-21 22:42:56 -06:00
|
|
|
#exec < /dev/tty3 > /dev/tty3
|
|
|
|
#chvt 3
|
|
|
|
|
2016-12-21 22:21:53 -06:00
|
|
|
echo "=====> Begin tests <====="
|
|
|
|
screen -c /usr/local/etc/screenrc
|
|
|
|
|
|
|
|
|