Skip to content
Snippets Groups Projects
Commit 36ebc542 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

Merge branch 'setnick-exorcism' into 'master'

Remove nick setting from integration test

See merge request privategrity/integration!13
parents fdf5288b 7f97ec8d
No related branches found
No related tags found
No related merge requests found
...@@ -52,11 +52,6 @@ sleep 45 # FIXME: We should not need this, but the servers don't respond quickly ...@@ -52,11 +52,6 @@ sleep 45 # FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now. # enough on boot right now.
export LASTNODE="localhost:50004" export LASTNODE="localhost:50004"
export NICK1="David"
export NICK2="Jim"
export NICK3="Ben"
export NICK4="Rick"
runclients() { runclients() {
echo "Starting clients..." echo "Starting clients..."
CTR=0 CTR=0
...@@ -73,7 +68,7 @@ runclients() { ...@@ -73,7 +68,7 @@ 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 -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 & eval $CLIENTCMD >> $CLIENTOUT/client$cid$nid.out 2>&1 &
PIDVAL=$! PIDVAL=$!
eval CLIENTS${CTR}=$PIDVAL eval CLIENTS${CTR}=$PIDVAL
...@@ -91,7 +86,7 @@ runclients() { ...@@ -91,7 +86,7 @@ runclients() {
} }
# Start a channelbot server # 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 & $CHANNELCMD >> $CHANNELOUT 2>&1 &
PIDVAL=$! PIDVAL=$!
echo $PIDVAL >> results/serverpids echo $PIDVAL >> results/serverpids
...@@ -105,7 +100,7 @@ echo $PIDVAL >> results/serverpids ...@@ -105,7 +100,7 @@ echo $PIDVAL >> results/serverpids
echo "$UDBCMD -- $PIDVAL" echo "$UDBCMD -- $PIDVAL"
# Start a dummy client # 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 & $DUMMYCMD >> $DUMMYOUT 2>&1 &
PIDVAL=$! PIDVAL=$!
echo $PIDVAL >> results/serverpids echo $PIDVAL >> results/serverpids
...@@ -114,7 +109,7 @@ echo "$DUMMYCMD -- $PIDVAL" ...@@ -114,7 +109,7 @@ echo "$DUMMYCMD -- $PIDVAL"
# Send a registration command # Send a registration command
cat registration-commands.txt | while read LINE cat registration-commands.txt | while read LINE
do 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 & eval $CLIENTCMD >> $CLIENTOUT/client6.out 2>&1 &
PIDVAL=$! PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL" echo "$CLIENTCMD -- $PIDVAL"
...@@ -122,7 +117,7 @@ do ...@@ -122,7 +117,7 @@ do
done done
# Send a channel message that all clients will receive # 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 & eval $CLIENTCMD >> $CLIENTOUT/client5.out 2>&1 &
PIDVAL=$! PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL" echo "$CLIENTCMD -- $PIDVAL"
......
...@@ -21,3 +21,11 @@ go generate cmd/version.go ...@@ -21,3 +21,11 @@ go generate cmd/version.go
go build go build
popd popd
mv $GOPATH/src/gitlab.com/privategrity/channelbot/channelbot bin 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
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment