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
87d98f57
Commit
87d98f57
authored
6 years ago
by
Spencer Brown
Browse files
Options
Downloads
Patches
Plain Diff
Register with different blobs to run messages through the gateway
parent
e3fc30fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+38
-3
38 additions, 3 deletions
basice2e/run.sh
with
38 additions
and
3 deletions
basice2e/run.sh
+
38
−
3
View file @
87d98f57
...
@@ -69,7 +69,41 @@ runclients() {
...
@@ -69,7 +69,41 @@ runclients() {
nid
=
$((
(
$cid
%
4
)
+
1
))
nid
=
$((
(
$cid
%
4
)
+
1
))
eval
NICK
=
\$
{
NICK
${
cid
}
}
eval
NICK
=
\$
{
NICK
${
cid
}
}
# Send a regular message
# Send a regular message
CLIENTCMD
=
"timeout 60s ../bin/client -f blob
$cid
--numnodes 5
$GATEWAY
-s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
--noratchet"
CLIENTCMD
=
"timeout 60s ../bin/client -f blob
$cid
--numnodes 5 -s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
--noratchet"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client
$cid$nid
.out 2>&1 &
PIDVAL
=
$!
eval
CLIENTS
${
CTR
}
=
$PIDVAL
echo
"
$CLIENTCMD
--
$PIDVAL
"
CTR
=
$((
$CTR
+
1
))
done
done
echo
"WAITING FOR
$CTR
CLIENTS TO EXIT..."
for
i
in
$(
seq
0
$((
$CTR
-
1
))
)
do
eval echo
"Waiting on
\$
{CLIENTS
${
i
}
} ..."
eval wait
\$
{
CLIENTS
${
i
}
}
done
}
GATEWAY
=
localhost:8443
runclientsgw
()
{
echo
"Starting clients through gateway..."
CTR
=
0
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
))
eval
NICK
=
\$
{
NICK
${
cid
}
}
# Send a regular message
CLIENTCMD
=
"timeout 60s ../bin/client -f blobgw
$cid
--numnodes 5 -g
$GATEWAY
-s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
--noratchet"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client
$cid$nid
.out 2>&1 &
eval
$CLIENTCMD
>>
$CLIENTOUT
/client
$cid$nid
.out 2>&1 &
PIDVAL
=
$!
PIDVAL
=
$!
eval
CLIENTS
${
CTR
}
=
$PIDVAL
eval
CLIENTS
${
CTR
}
=
$PIDVAL
...
@@ -137,9 +171,10 @@ echo "RUNNING CLIENTS..."
...
@@ -137,9 +171,10 @@ echo "RUNNING CLIENTS..."
runclients
runclients
echo
"RUNNING CLIENTS (2nd time)..."
echo
"RUNNING CLIENTS (2nd time)..."
runclients
runclients
# Same function, different blob names
echo
"RUNNING CLIENTS THROUGH GATEWAY..."
echo
"RUNNING CLIENTS THROUGH GATEWAY..."
GATEWAY
=
"-g localhost:8443"
runclientsgw
runclients
# HACK HACK HACK: Remove the ratchet warning from client output
# HACK HACK HACK: Remove the ratchet warning from client output
for
F
in
$(
find results/clients
-type
f
)
for
F
in
$(
find results/clients
-type
f
)
...
...
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