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 | 0a0c7bce29abe17438f3ac5cdfc167954f6392f9 (patch) | |
| tree | f231718af3b3f243c227202ebaf017404c3c66d4 /qpid/cpp/src/tests | |
| parent | f7536e37883be4982b7c8b92e4a95913367c3ff0 (diff) | |
| download | qpid-python-0a0c7bce29abe17438f3ac5cdfc167954f6392f9.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@721275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
| -rwxr-xr-x | qpid/cpp/src/tests/run_failover_soak | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/run_failover_soak b/qpid/cpp/src/tests/run_failover_soak index d332cd42b9..5c168c76f2 100755 --- a/qpid/cpp/src/tests/run_failover_soak +++ b/qpid/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=.. |
