summaryrefslogtreecommitdiff
path: root/cpp/src/tests/start_cluster
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-10-01 16:55:58 +0000
committerAlan Conway <aconway@apache.org>2009-10-01 16:55:58 +0000
commit054546a9f7dda8e6877550c46eb258c623e67de6 (patch)
tree9cb54e090ad84f588d0d811f7df689dbbff8bc61 /cpp/src/tests/start_cluster
parenta27debd4d1711ecdb9980419325f0707bb13c3f7 (diff)
downloadqpid-python-054546a9f7dda8e6877550c46eb258c623e67de6.tar.gz
Fix QPID-2086 - problem with read-credit.
Also cleaned up the cluster test scripts. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/start_cluster')
-rwxr-xr-xcpp/src/tests/start_cluster9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpp/src/tests/start_cluster b/cpp/src/tests/start_cluster
index 585ba082d5..fb3d27373a 100755
--- a/cpp/src/tests/start_cluster
+++ b/cpp/src/tests/start_cluster
@@ -23,20 +23,17 @@
#
# Execute command with the ais group set.
-with_ais_group() {
- id -nG | grep '\<ais\>' >/dev/null || { echo "You are not a member of the ais group." 1>&2; exit 1; }
- echo $* | newgrp ais
-}
+. `dirname $0`/ais_check
rm -f cluster*.log cluster.ports qpidd.port
SIZE=${1:-3}; shift
CLUSTER=`pwd` # Cluster name=pwd, avoid clashes.
-OPTS="-d --no-module-dir --load-module ../.libs/cluster.so --cluster-name=$CLUSTER --auth=no $@"
+OPTS="-d --no-module-dir --load-module ../.libs/cluster.so --cluster-name=$CLUSTER --auth=no --log-enable notice+ --log-enable debug+:cluster $@"
for (( i=0; i<SIZE; ++i )); do
DDIR=`mktemp -d /tmp/start_cluster.XXXXXXXXXX`
- PORT=`with_ais_group ../qpidd -p0 --log-to-file=cluster$i.log $OPTS --data-dir=$DDIR` || exit 1
+ PORT=`with_ais_group ../qpidd -p0 --log-to-file=cluster$i.log $OPTS --data-dir=$DDIR` || exit 1
echo $PORT >> cluster.ports
done