Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
95eed029
Commit
95eed029
authored
Mar 2, 2018
by
Rick Carback
Browse files
Options
Downloads
Patches
Plain Diff
Initial basic integration test
parent
179625b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+56
-2
56 additions, 2 deletions
basice2e/run.sh
with
56 additions
and
2 deletions
basice2e/run.sh
+
56
−
2
View file @
95eed029
#!/bin/sh
../bin/server
--help
../bin/client
--help
# NOTE: This is verbose on purpose.
set
-e
mkdir
-p
results
../bin/server
-v
-i
0
--config
server-1.yaml
>
results/server-1.console 2>&1 &
SERVER1
=
$!
../bin/server
-v
-i
1
--config
server-2.yaml
>
results/server-2.console 2>&1 &
SERVER2
=
$!
../bin/server
-v
-i
2
--config
server-3.yaml
>
results/server-3.console 2>&1 &
SERVER3
=
$!
../bin/server
-v
-i
3
--config
server-4.yaml
>
results/server-4.console 2>&1 &
SERVER4
=
$!
../bin/server
-v
-i
4
--config
server-5.yaml
>
results/server-5.console 2>&1 &
SERVER5
=
$!
echo
"STARTED SERVERS with PIDs:"
echo
$SERVER1
echo
$SERVER2
echo
$SERVER3
echo
$SERVER4
echo
$SERVER5
finish
()
{
echo
"STOPPING SERVERS..."
kill
$SERVER1
kill
$SERVER2
kill
$SERVER3
kill
$SERVER4
kill
$SERVER5
}
trap
finish EXIT
sleep
25
# FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now.
LASTNODE
=
"localhost:50004"
echo
"STARTING CLIENTS..."
CTR
=
0
for
cid
in
1 2 3 4
;
do
for
nid
in
1 2 3 4
;
do
../bin/client
-s
$LASTNODE
-i
$cid
-d
$nid
-m
"Hello,
$nid
"
>
results/client
$cid$nid
.out 2>&1 &
eval
CLIENTS
${
CTR
}
=
$!
CTR
=
$((
$CTR
+
1
))
done
done
echo
"WAITING FOR CLIENTS TO EXIT..."
for
i
in
$(
seq
0
$CTR
)
;
do
eval wait
$CLIENTS
${
i
}
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment