Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
mobject-store
Commits
88d3b56d
Commit
88d3b56d
authored
Nov 07, 2017
by
Shane Snyder
Browse files
add make check test for mobject-client-test
parent
7957bb28
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/Makefile.subdir
View file @
88d3b56d
...
...
@@ -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
...
...
tests/mobject-client-test.sh
0 → 100755
View file @
88d3b56d
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment