From e235dcb6e43dcc9a399229ffc1019cc9c9c0d3da Mon Sep 17 00:00:00 2001 From: Shane Snyder Date: Wed, 1 Nov 2017 12:22:47 -0500 Subject: [PATCH] get the connect test to start servers --- tests/mobject-connect-test.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/mobject-connect-test.sh b/tests/mobject-connect-test.sh index e69de29..9bd10dd 100755 --- a/tests/mobject-connect-test.sh +++ b/tests/mobject-connect-test.sh @@ -0,0 +1,22 @@ +#!/bin/bash -x + +if [ -z $srcdir ]; then + echo srcdir variable not set. + exit 1 +fi +if [ -z "$MKTEMP" ] ; then + echo expected MKTEMP variable defined to its respective command + exit 1 +fi +source $srcdir/tests/mobject-test-util.sh + +TEST_DIR=`$MKTEMP -d /tmp/mobject-connect-test-XXXXXX` +CLUSTER_GID_FILE=$TEST_DIR/cluster.gid + +# start 1 server with 2 second wait, 20s timeout +mobject_test_start_servers 1 2 20 $CLUSTER_GID_FILE + +wait + +# cleanup +rm -rf $TEST_DIR -- 2.26.2