
maxscale-system-test changed in order to control test environment by itself. Every test checks which machines are running, compare with list of needed machines and start new VMs is they are missing in the running machines list. Tests are executiong MDBCI commands, MDBCI executable should be in the PATH
29 lines
387 B
Bash
Executable File
29 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sudo service maxscale stop
|
|
|
|
hm=`pwd`
|
|
$hm/start_killer.sh &
|
|
if [ $? -ne 0 ] ; then
|
|
exit 1
|
|
fi
|
|
|
|
T="$(date +%s)"
|
|
|
|
sudo maxscale -d -U root
|
|
if [ $? -ne 0 ] ; then
|
|
exit 1
|
|
fi
|
|
|
|
T="$(($(date +%s)-T))"
|
|
echo "Time in seconds: ${T} (including 5 seconds before kill)"
|
|
|
|
if [ "$T" -lt 10 ] ; then
|
|
echo "PASSED"
|
|
exit 0
|
|
else
|
|
echo "FAILED"
|
|
exit 1
|
|
fi
|
|
|