diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-27 20:54:42 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-27 20:54:42 +0000 |
commit | c95a95f1e775f6ce1b4ef0467b4e74a055cdc1ff (patch) | |
tree | 59baff8c3b436fd8339112a10412ef12eeeea0c4 /cpp/src | |
parent | 83a3e07591edb15d5301dfc8da3e4f90b440d8eb (diff) | |
download | qpid-python-c95a95f1e775f6ce1b4ef0467b4e74a055cdc1ff.tar.gz |
QPID-1485: check required group is set etc when running failover test (patch from mgoulish@redhat.com).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@721275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/tests/run_failover_soak | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpp/src/tests/run_failover_soak b/cpp/src/tests/run_failover_soak index d332cd42b9..5c168c76f2 100755 --- a/cpp/src/tests/run_failover_soak +++ b/cpp/src/tests/run_failover_soak @@ -1,5 +1,29 @@ #!/bin/sh +# Check AIS requirements and run tests if found. +id -ng | grep '\<ais\>' >/dev/null || \ + NOGROUP="The ais group is not your primary group." +ps -u root | grep aisexec >/dev/null || \ + NOAISEXEC="The aisexec daemon is not running as root" + +if test -n "$NOGROUP" -o -n "$NOAISEXEC"; then + cat <<EOF + + =========== WARNING: NOT RUNNING AIS TESTS ============== + + Tests that depend on the openais library (used for clustering) + will not be run because: + + $NOGROUP + $NOAISEXEC + + ========================================================== + +EOF + exit 0; # A warning, not a failure. +fi + + host=127.0.0.1 src_root=.. |