Commit 88d3b56d authored by Shane Snyder's avatar Shane Snyder

add make check test for mobject-client-test

parent 7957bb28
......@@ -14,7 +14,13 @@ noinst_PROGRAMS += \
endif
TESTS += \
tests/mobject-connect-test.sh
tests/mobject-connect-test.sh \
tests/mobject-client-test.sh
EXTRA_DIST += \
tests/mobject-connect-test.sh \
tests/mobject-client-test.sh \
tests/mobject-test-util.sh
tests_mobject_connect_test_LDADD = src/client/libmobject-store.la ${CLIENT_LIBS}
if HAVE_RADOS
......
#!/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`
MOBJECT_CLUSTER_FILE=$TEST_DIR/cluster.gid
##############
# start 1 server with 2 second wait, 20s timeout
mobject_test_start_servers 1 2 20 $MOBJECT_CLUSTER_FILE
##############
# export some mobject client env variables
export MOBJECT_CLUSTER_FILE
export MOBJECT_SHUTDOWN_KILL_SERVERS=true
# run a mobject test client
run_to 10 tests/mobject-client-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