From cd7e007f8f931f994c829e9853ecfbb469cb20aa Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 29 Jan 2009 18:18:52 +0000 Subject: Run python tests against a single-member cluster in check-long. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@738947 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/start_cluster | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'cpp/src/tests/start_cluster') diff --git a/cpp/src/tests/start_cluster b/cpp/src/tests/start_cluster index ee306edf14..a9b45421cb 100755 --- a/cpp/src/tests/start_cluster +++ b/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> cluster.ports - done -fi +for (( i=0; i> cluster.ports +done + +head cluster.ports > qpidd.port # First member's port for tests. -- cgit v1.2.1