Skip to content
Snippets Groups Projects
Commit 21db36bc authored by willcarter's avatar willcarter
Browse files

Modified integration test to use nicknames. This inserts GetContactList...

Modified integration test to use nicknames. This inserts GetContactList functionality into the integration tests.
parent 518208a8
No related branches found
No related tags found
No related merge requests found
Sending Message to 2: Hello, 2 Sending Message to 2, Jim: Hello, 2
Message from 4 Received: Hello, 1 Message from 4, Rick Received: Hello, 1
Sending Message to 2: Hello, 2 Sending Message to 2, Jim: Hello, 2
Message from 4 Received: Hello, 1 Message from 4, Rick Received: Hello, 1
Sending Message to 3: Hello, 3 Sending Message to 3, Ben: Hello, 3
Message from 1 Received: Hello, 2 Message from 1, David Received: Hello, 2
Sending Message to 3: Hello, 3 Sending Message to 3, Ben: Hello, 3
Message from 1 Received: Hello, 2 Message from 1, David Received: Hello, 2
Sending Message to 4: Hello, 4 Sending Message to 4, Rick: Hello, 4
Message from 2 Received: Hello, 3 Message from 2, Jim Received: Hello, 3
Sending Message to 4: Hello, 4 Sending Message to 4, Rick: Hello, 4
Message from 2 Received: Hello, 3 Message from 2, Jim Received: Hello, 3
Sending Message to 1: Hello, 1 Sending Message to 1, David: Hello, 1
Message from 3 Received: Hello, 4 Message from 3, Ben Received: Hello, 4
Sending Message to 1: Hello, 1 Sending Message to 1, David: Hello, 1
Message from 3 Received: Hello, 4 Message from 3, Ben Received: Hello, 4
...@@ -46,7 +46,10 @@ sleep 20 # FIXME: We should not need this, but the servers don't respond quickly ...@@ -46,7 +46,10 @@ sleep 20 # FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now. # enough on boot right now.
LASTNODE="localhost:50004" LASTNODE="localhost:50004"
NICK1="David"
NICK2="Jim"
NICK3="Ben"
NICK4="Rick"
echo "STARTING CLIENTS..." echo "STARTING CLIENTS..."
CTR=0 CTR=0
...@@ -60,7 +63,8 @@ do ...@@ -60,7 +63,8 @@ do
for nid in 1 for nid in 1
do do
nid=$((($cid % 4) + 1)) nid=$((($cid % 4) + 1))
CLIENTCMD="../bin/client -f blob$cid$nid --numnodes 5 -s $LASTNODE -i $cid -d $nid -m \"Hello, $nid\"" NICK=NICK${cid}
CLIENTCMD="../bin/client -f blob$cid$nid --numnodes 5 -s $LASTNODE -i $cid -d $nid -m \"Hello, $nid\" --nick ${!NICK}"
eval $CLIENTCMD >> $CLIENTOUT/client$cid$nid.out 2>&1 & eval $CLIENTCMD >> $CLIENTOUT/client$cid$nid.out 2>&1 &
RETVAL=$! RETVAL=$!
eval CLIENTS${CTR}=$RETVAL eval CLIENTS${CTR}=$RETVAL
...@@ -86,7 +90,8 @@ do ...@@ -86,7 +90,8 @@ do
for nid in 1 for nid in 1
do do
nid=$((($cid % 4) + 1)) nid=$((($cid % 4) + 1))
CLIENTCMD="../bin/client -f blob$cid$nid --numnodes 5 -s $LASTNODE -i $cid -d $nid -m \"Hello, $nid\"" NICK=NICK${cid}
CLIENTCMD="../bin/client -f blob$cid$nid --numnodes 5 -s $LASTNODE -i $cid -d $nid -m \"Hello, $nid\" --nick ${!NICK}"
eval $CLIENTCMD >> $CLIENTOUT/client$cid$nid.out 2>&1 & eval $CLIENTCMD >> $CLIENTOUT/client$cid$nid.out 2>&1 &
RETVAL=$! RETVAL=$!
eval CLIENTS${CTR}=$RETVAL eval CLIENTS${CTR}=$RETVAL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment