summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/start_cluster
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-01-29 18:18:52 +0000
committerAlan Conway <aconway@apache.org>2009-01-29 18:18:52 +0000
commitcd751dab9b74348b7dc6cc3a1816ce1ddb42af86 (patch)
treec6bb37da65ddd1f336644f646a9d00b20e508ef2 /qpid/cpp/src/tests/start_cluster
parentadfa9a92e3549e8869b802c2eb930d8954c23767 (diff)
downloadqpid-python-cd751dab9b74348b7dc6cc3a1816ce1ddb42af86.tar.gz
Run python tests against a single-member cluster in check-long.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@738947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/start_cluster')
-rwxr-xr-xqpid/cpp/src/tests/start_cluster17
1 files changed, 7 insertions, 10 deletions
diff --git a/qpid/cpp/src/tests/start_cluster b/qpid/cpp/src/tests/start_cluster
index ee306edf14..a9b45421cb 100755
--- a/qpid/cpp/src/tests/start_cluster
+++ b/qpid/cpp/src/tests/start_cluster
@@ -30,17 +30,14 @@ with_ais_group() {
test -f cluster.ports && { echo "cluster.ports file already exists" ; exit 1; }
rm -f cluster*.log
-SIZE=$1; shift
+SIZE=${1:-1}; shift
CLUSTER=`pwd` # Cluster name=pwd, avoid clashes.
OPTS="-d --load-module ../.libs/cluster.so --cluster-name=$CLUSTER --no-data-dir --auth=no $*"
-if test "$SIZE" = "one"; then # Special case of singleton cluster, use default port.
- ../qpidd -q
- with_ais_group ../qpidd $OPTS --log-to-file=cluster.log || exit 1
-else
- for (( i=0; i<SIZE; ++i )); do
- PORT=`with_ais_group ../qpidd -p0 --log-to-file=cluster$i.log $OPTS` || exit 1
- echo $PORT >> cluster.ports
- done
-fi
+for (( i=0; i<SIZE; ++i )); do
+ PORT=`with_ais_group ../qpidd -p0 --log-to-file=cluster$i.log $OPTS` || exit 1
+ echo $PORT >> cluster.ports
+done
+
+head cluster.ports > qpidd.port # First member's port for tests.