29 lines
469 B
Bash
Executable file
29 lines
469 B
Bash
Executable file
#!/bin/bash
|
|
|
|
touch /run/test.pid
|
|
cat > /usr/local/etc/screenrc << EOF
|
|
screen -t tests test-all
|
|
split -v
|
|
focus bottom
|
|
screen -t status watcher-screen
|
|
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
|
|
|
|
echo "=====> Begin tests <====="
|
|
screen -c /usr/local/etc/screenrc
|
|
|
|
|