2016-12-23 03:47:40 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
touch /run/test.pid
|
|
|
|
cat > /usr/local/etc/screenrc << EOF
|
2017-01-25 22:30:16 -06:00
|
|
|
screen -t tests stat-bonding
|
2016-12-23 03:47:40 -06:00
|
|
|
split -v
|
|
|
|
focus bottom
|
|
|
|
screen -t status journalctl -f
|
|
|
|
EOF
|
|
|
|
|
|
|
|
WAIT=25
|
|
|
|
echo -n "Waiting $WAIT seconds for tests to start"
|
|
|
|
while [[ $WAIT -gt 0 ]] ; do
|
|
|
|
sleep 1
|
|
|
|
WAIT=$(( WAIT -1 ))
|
|
|
|
if [[ $(( WAIT % 5 )) == 0 ]] ; then
|
|
|
|
echo -n $WAIT
|
|
|
|
else
|
|
|
|
echo -n '.'
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo
|
|
|
|
#exec < /dev/tty3 > /dev/tty3
|
|
|
|
#chvt 3
|
|
|
|
|
2017-01-25 22:30:16 -06:00
|
|
|
echo "=====> Begin setup <====="
|
|
|
|
setup-netdev
|
2016-12-23 03:47:40 -06:00
|
|
|
echo "=====> Begin tests <====="
|
|
|
|
screen -c /usr/local/etc/screenrc
|
|
|
|
|
|
|
|
|