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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
7f97ec8d
Commit
7f97ec8d
authored
May 25, 2018
by
Spencer Brown
Browse files
Options
Downloads
Patches
Plain Diff
Remove nick setting from integration test running
parent
fdf5288b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
basice2e/run.sh
+5
-10
5 additions, 10 deletions
basice2e/run.sh
build.sh
+8
-0
8 additions, 0 deletions
build.sh
update.sh
+35
-0
35 additions, 0 deletions
update.sh
with
48 additions
and
10 deletions
basice2e/run.sh
+
5
−
10
View file @
7f97ec8d
...
...
@@ -52,11 +52,6 @@ sleep 45 # FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now.
export
LASTNODE
=
"localhost:50004"
export
NICK1
=
"David"
export
NICK2
=
"Jim"
export
NICK3
=
"Ben"
export
NICK4
=
"Rick"
runclients
()
{
echo
"Starting clients..."
CTR
=
0
...
...
@@ -73,7 +68,7 @@ runclients() {
nid
=
$((
(
$cid
%
4
)
+
1
))
eval
NICK
=
\$
{
NICK
${
cid
}
}
# Send a regular message
CLIENTCMD
=
"timeout 60s ../bin/client -f blob
$cid
--numnodes 5 -s
$LASTNODE
-i
$cid
-d
$nid
-m
\"
Hello,
$nid
\"
--nick
$NICK
--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
...
...
@@ -91,7 +86,7 @@ runclients() {
}
# Start a channelbot server
CHANNELCMD
=
"../bin/channelbot -v -i 31
--nick #General
--numnodes 5 -s
$LASTNODE
-f blobchannel --noratchet"
CHANNELCMD
=
"../bin/channelbot -v -i 31 --numnodes 5 -s
$LASTNODE
-f blobchannel --noratchet"
$CHANNELCMD
>>
$CHANNELOUT
2>&1 &
PIDVAL
=
$!
echo
$PIDVAL
>>
results/serverpids
...
...
@@ -105,7 +100,7 @@ echo $PIDVAL >> results/serverpids
echo
"
$UDBCMD
--
$PIDVAL
"
# Start a dummy client
DUMMYCMD
=
"../bin/client -i 35 -d 35 -s
$LASTNODE
--numnodes 5 -m
\"
dummy
\"
--nick
\"
dummy
\"
--dummyfrequency 0.5 --noratchet -f blobdummy"
DUMMYCMD
=
"../bin/client -i 35 -d 35 -s
$LASTNODE
--numnodes 5 -m
\"
dummy
\"
--dummyfrequency 0.5 --noratchet -f blobdummy"
$DUMMYCMD
>>
$DUMMYOUT
2>&1 &
PIDVAL
=
$!
echo
$PIDVAL
>>
results/serverpids
...
...
@@ -114,7 +109,7 @@ echo "$DUMMYCMD -- $PIDVAL"
# Send a registration command
cat
registration-commands.txt |
while
read
LINE
do
CLIENTCMD
=
"timeout 60s ../bin/client -f blob6 --numnodes 5 -s
$LASTNODE
-i 6 -d 13 -m
\"
$LINE
\"
--nick Jake
--noratchet"
CLIENTCMD
=
"timeout 60s ../bin/client -f blob6 --numnodes 5 -s
$LASTNODE
-i 6 -d 13 -m
\"
$LINE
\"
--noratchet"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client6.out 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
...
...
@@ -122,7 +117,7 @@ do
done
# Send a channel message that all clients will receive
CLIENTCMD
=
"timeout 60s ../bin/client -f blob5 --numnodes 5 -s
$LASTNODE
-i 5 -d 31 -m
\"
Channel, Hello
\"
--nick Spencer
--noratchet"
CLIENTCMD
=
"timeout 60s ../bin/client -f blob5 --numnodes 5 -s
$LASTNODE
-i 5 -d 31 -m
\"
Channel, Hello
\"
--noratchet"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client5.out 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
...
...
This diff is collapsed.
Click to expand it.
build.sh
+
8
−
0
View file @
7f97ec8d
...
...
@@ -21,3 +21,11 @@ go generate cmd/version.go
go build
popd
mv
$GOPATH
/src/gitlab.com/privategrity/channelbot/channelbot bin
UDBPATH
=
gitlab.com/privategrity/user-discovery-bot
pushd
$GOPATH
/src/
$UDBPATH
go generate cmd/version.go
popd
go build
-o
udb
$UDBPATH
mv
./udb bin
This diff is collapsed.
Click to expand it.
update.sh
0 → 100755
+
35
−
0
View file @
7f97ec8d
#!/bin/bash
# This intended for updating the tested repos and their dependencies to the
# latest versions before running the integration test.
git pull
rm
-fr
~/.glide
pushd
$GOPATH
/src/gitlab.com/privategrity/client
git clean
-ffdx
git pull
glide cc
glide up
popd
pushd
$GOPATH
/src/gitlab.com/privategrity/server
git clean
-ffdx
git pull
glide cc
glide up
popd
pushd
$GOPATH
/src/gitlab.com/privategrity/channelbot
git clean
-ffdx
git pull
glide cc
glide up
popd
pushd
$GOPATH
/src/gitlab.com/privategrity/user-discovery-bot
git clean
-ffdx
git pull
glide cc
glide up
popd
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