From c95a95f1e775f6ce1b4ef0467b4e74a055cdc1ff Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 27 Nov 2008 20:54:42 +0000 Subject: 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 --- cpp/src/tests/run_failover_soak | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'cpp') 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 '\' >/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 <