summaryrefslogtreecommitdiff
path: root/cpp/src/tests/start_cluster
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-06-25 20:51:30 +0000
committerAlan Conway <aconway@apache.org>2008-06-25 20:51:30 +0000
commit4d560b89fa09056c22cd42e212c9ce8addeecb5a (patch)
tree3a15eb32ca85193ed5d2b97b5c6e7a6f053fb5f1 /cpp/src/tests/start_cluster
parent830943be4ed6ae90edd2e2655720c0dcc721171d (diff)
downloadqpid-python-4d560b89fa09056c22cd42e212c9ce8addeecb5a.tar.gz
Additions to the client API:
- SubscriptionManager::get(queue) to get a single message from a queue. - Set FlowControl per-subscription. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671655 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/start_cluster')
-rwxr-xr-xcpp/src/tests/start_cluster8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/tests/start_cluster b/cpp/src/tests/start_cluster
index 876913bc2d..46ecbad9c5 100755
--- a/cpp/src/tests/start_cluster
+++ b/cpp/src/tests/start_cluster
@@ -3,6 +3,12 @@
# Print the cluster's URL.
#
+# 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."; exit 1; }
+ echo $* | newgrp ais
+}
+
test -f cluster.ports && { echo "cluster.ports file already exists" ; exit 1; }
test -z "$*" && { echo "Usage: $0 cluster-size [options]"; exit 1; }
@@ -13,7 +19,7 @@ CLUSTER=`whoami` # Cluster name=user name, avoid clashes.
OPTS="--load-module ../.libs/libqpidcluster.so -dp0 --log-output=cluster$i.log --cluster-name=$CLUSTER --no-data-dir --auth=no $*"
for (( i=0; i<SIZE; ++i )); do
- PORT=`../qpidd $OPTS` || exit 1
+ PORT=`with_ais_group ../qpidd $OPTS` || exit 1
echo $PORT >> cluster.ports
done