Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
dec7b672
Commit
dec7b672
authored
Dec 08, 2017
by
Shane Snyder
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get make check scripts working again
parent
8c2225b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
22 deletions
+5
-22
tests/basic.sh
tests/basic.sh
+0
-9
tests/test-util.sh
tests/test-util.sh
+5
-13
No files found.
tests/basic.sh
View file @
dec7b672
...
...
@@ -9,15 +9,6 @@ source $srcdir/tests/test-util.sh
# start 1 server with 2 second wait, 20s timeout
test_start_servers 1 2 20
# actual test case
#####################
# run_to 10 src/SOME_EXAMPLE_PROGRAM $svr1
# if [ $? -ne 0 ]; then
# run_to 10 src/bb-shutdown $svr1 &> /dev/null
# wait
# exit 1
# fi
sleep
1
#####################
...
...
tests/test-util.sh
View file @
dec7b672
...
...
@@ -26,25 +26,17 @@ function test_start_servers ()
{
nservers
=
${
1
:-
4
}
startwait
=
${
2
:-
15
}
maxtime
=
${
3
:-
120
}
s
repfactor
=
${
4
:-
0
}
pid
=
$$
startport
=
3344
endport
=
`
expr
3344 +
$nservers
- 1
`
maxtime
=
${
3
:-
120
}
# start daemons
for
i
in
`
seq
$
startport
$endport
`
for
i
in
`
seq
$
nservers
`
do
truncate
-s
100M
$TMPBASE
/foo-
$i
.dat
if
[
$?
-ne
0
]
;
then
exit
1
fi
pmempool create obj
$TMPBASE
/foo-
$i
.dat
src/bake-bulk-mkpool
-s
100M
$TMPBASE
/svr-
$i
.dat
if
[
$?
-ne
0
]
;
then
exit
1
fi
timeout
--signal
=
9
${
maxtime
}
src/bake-bulk-server-daemon tcp://localhost:
$i
$TMPBASE
/foo
-
$i
.dat &
run_to
${
maxtime
}
src/bake-bulk-server-daemon
-f
$TMPBASE
/svr-
$i
.addr na+sm
$TMPBASE
/svr
-
$i
.dat &
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
...
...
@@ -57,5 +49,5 @@ function test_start_servers ()
# wait for servers to start
sleep
${
startwait
}
svr1
=
"tcp://localhost:
$startport
"
svr1
=
`
cat
$TMPBASE
/svr-1.addr
`
}
Shane Snyder
@ssnyder
mentioned in issue
#4 (closed)
·
Dec 14, 2017
mentioned in issue
#4 (closed)
mentioned in issue #4
Toggle commit list
Shane Snyder
@ssnyder
mentioned in issue
#1 (closed)
·
Dec 14, 2017
mentioned in issue
#1 (closed)
mentioned in issue #1
Toggle commit list
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