From 0a0c7bce29abe17438f3ac5cdfc167954f6392f9 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@721275 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/run_failover_soak | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'qpid/cpp/src/tests') 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 '\' >/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 <