document the new binlog stats
[beanstalkd.git] / check.sh
blobe573176e30952cbddbbf05cb57f3c33dcf934af8
1 #!/usr/bin/env bash
3 if /sbin/ifconfig | egrep -q '^lo[[:alnum:]]*:?[[:space:]]+'; then
4 echo "loopback interface is configured, getting on with tests"
5 else
6 echo "loopback interface is NOT configured, won't run tests"
7 exit 0
8 fi
10 for t in "$@"; do
11 echo $t
13 res=$?
14 test "$res" = 1 && echo "FAIL: $t"
15 test "$res" = 0 || exit 1
16 done