Add tests from develop

Added tests from develop. The test results need to be modified for 2.0.
This commit is contained in:
Markus Mäkelä
2017-05-26 15:40:40 +03:00
parent ad109408b5
commit d7d4ec29bb
596 changed files with 48543 additions and 0 deletions

View File

@ -0,0 +1,3 @@
sleep 5
$maxscale_access_sudo /usr/bin/killall maxscale -s INT

View File

@ -0,0 +1,28 @@
#!/bin/bash
$maxscale_access_sudo service maxscale stop
hm=`pwd`
$hm/start_killer.sh &
if [ $? -ne 0 ] ; then
exit 1
fi
T="$(date +%s)"
$maxscale_access_sudo maxscale -d
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