Commit 1457bd14 authored by Shane Snyder's avatar Shane Snyder

add client code for mobject-connect-test script

parent e235dcb6
......@@ -11,12 +11,27 @@ fi
source $srcdir/tests/mobject-test-util.sh
TEST_DIR=`$MKTEMP -d /tmp/mobject-connect-test-XXXXXX`
CLUSTER_GID_FILE=$TEST_DIR/cluster.gid
MOBJECT_CLUSTER_FILE=$TEST_DIR/cluster.gid
##############
# start 1 server with 2 second wait, 20s timeout
mobject_test_start_servers 1 2 20 $CLUSTER_GID_FILE
mobject_test_start_servers 1 2 20 $MOBJECT_CLUSTER_FILE
##############
# run 1 connect test client
export MOBJECT_CLUSTER_FILE
run_to 10 tests/mobject-connect-test
if [ $? -ne 0 ]; then
wait
exit 1
fi
##############
wait
# cleanup
rm -rf $TEST_DIR
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment