Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mobject-store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
mobject-store
Commits
106bd3b1
Commit
106bd3b1
authored
Nov 01, 2017
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test utilities for mobject
parent
9d4ed679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
tests/mobject-test-util.sh
tests/mobject-test-util.sh
+35
-0
No files found.
tests/mobject-test-util.sh
0 → 100755
View file @
106bd3b1
#
# General test script utilities
#
if
[
-z
"
$TIMEOUT
"
]
;
then
echo
expected TIMEOUT variable defined to its respective
command
exit
1
fi
function
run_to
()
{
maxtime
=
${
1
}
s
shift
$TIMEOUT
--signal
=
9
$maxtime
"
$@
"
}
function
mobject_test_start_servers
()
{
nservers
=
${
1
:-
4
}
startwait
=
${
2
:-
15
}
maxtime
=
${
3
:-
120
}
cfile
=
${
4
:-
/tmp/mobject-connect-cluster.gid
}
run_to
$maxtime
mpirun
-np
$nservers
src/server/mobject-server-daemon na+sm://
$cfile
&
if
[
$?
-ne
0
]
;
then
# TODO: this doesn't actually work; can't check return code of
# something executing in background. We have to rely on the
# return codes of the actual client side tests to tell if
# everything started properly
exit
1
fi
# wait for servers to start
sleep
${
startwait
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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