summaryrefslogtreecommitdiff
path: root/cpp/src/tests/start_cluster
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-06-26 18:12:12 +0000
committerAlan Conway <aconway@apache.org>2008-06-26 18:12:12 +0000
commiteabcd5c760c8d3b3e8f6f45a29c19148560f91cd (patch)
treea3f7e152d7ef07d8507136bb35f8a814b1db65c5 /cpp/src/tests/start_cluster
parenta705fb49d4571b3b22ffd597c07e42a1b43e9322 (diff)
downloadqpid-python-eabcd5c760c8d3b3e8f6f45a29c19148560f91cd.tar.gz
Consolidated cluster tests in cluster_test.cpp
Improvements to BrokerFixture for testing. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671969 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/start_cluster')
-rwxr-xr-xcpp/src/tests/start_cluster26
1 files changed, 0 insertions, 26 deletions
diff --git a/cpp/src/tests/start_cluster b/cpp/src/tests/start_cluster
deleted file mode 100755
index 46ecbad9c5..0000000000
--- a/cpp/src/tests/start_cluster
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# Start a cluster of brokers on local host.
-# 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; }
-
-rm -f cluster*.log cluster.ports
-SIZE=$1
-shift
-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=`with_ais_group ../qpidd $OPTS` || exit 1
- echo $PORT >> cluster.ports
-done
-
-