Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
fb69ed75
Commit
fb69ed75
authored
7 years ago
by
Rick Carback
Browse files
Options
Downloads
Patches
Plain Diff
Run message send twice and use -f for the client to store state
parent
c2086ff7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+28
-1
28 additions, 1 deletion
basice2e/run.sh
with
28 additions
and
1 deletion
basice2e/run.sh
+
28
−
1
View file @
fb69ed75
...
...
@@ -5,6 +5,7 @@
set
-e
rm
-fr
results
||
true
rm
blob
*
||
true
SERVERLOGS
=
results/servers
CLIENTOUT
=
results/clients
...
...
@@ -59,7 +60,7 @@ do
for
nid
in
1
do
nid
=
$((
(
$cid
%
4
)
+
1
))
CLIENTCMD
=
"../bin/client --numnodes 5 -s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
"
CLIENTCMD
=
"../bin/client
-f blob
$cid$nid
--numnodes 5 -s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
"
eval
$CLIENTCMD
>
$CLIENTOUT
/client
$cid$nid
.out 2>&1 &
RETVAL
=
$!
eval
CLIENTS
${
CTR
}
=
$RETVAL
...
...
@@ -75,6 +76,32 @@ do
eval wait
\$
{
CLIENTS
${
i
}
}
done
for
cid
in
$(
seq
1 4
)
do
# TODO: Change the recipients to send multiple messages. We can't
# run multiple clients with the same user id so we need
# updates to make that work.
# for nid in 1 2 3 4; do
for
nid
in
1
do
nid
=
$((
(
$cid
%
4
)
+
1
))
CLIENTCMD
=
"../bin/client -f blob
$cid$nid
--numnodes 5 -s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
"
eval
$CLIENTCMD
>
$CLIENTOUT
/client
$cid$nid
.out 2>&1 &
RETVAL
=
$!
eval
CLIENTS
${
CTR
}
=
$RETVAL
echo
"
$CLIENTCMD
--
$RETVAL
"
CTR
=
$((
$CTR
+
1
))
done
done
echo
"WAITING FOR
$CTR
CLIENTS (2nd msg set) TO EXIT..."
for
i
in
$(
seq
0
$((
$CTR
-
1
))
)
do
eval echo
"Waiting on
\$
{CLIENTS
${
i
}
} ..."
eval wait
\$
{
CLIENTS
${
i
}
}
done
diff
-ruN
clients.goldoutput
$CLIENTOUT
echo
"SUCCESS!"
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
register
or
sign in
to comment