Skip to content
Snippets Groups Projects
Commit fc6fb9cc authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge branch 'feature/mic-ERROR_CMIX-316' into 'master'

Feature/mic error cmix 316

See merge request privategrity/integration!7
parents 7b240f98 703ec092
No related branches found
No related tags found
No related merge requests found
...@@ -45,69 +45,51 @@ trap finish INT ...@@ -45,69 +45,51 @@ trap finish INT
sleep 20 # FIXME: We should not need this, but the servers don't respond quickly 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" export LASTNODE="localhost:50004"
NICK1="David" export NICK1="David"
NICK2="Jim" export NICK2="Jim"
NICK3="Ben" export NICK3="Ben"
NICK4="Rick" export NICK4="Rick"
echo "STARTING CLIENTS..." runclients() {
CTR=0 echo "Starting clients..."
CTR=0
for cid in $(seq 1 4) 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 do
nid=$((($cid % 4) + 1)) # TODO: Change the recipients to send multiple messages. We can't
eval NICK=\${NICK${cid}} # run multiple clients with the same user id so we need
CLIENTCMD="../bin/client -f blob$cid$nid --numnodes 5 -s $LASTNODE -i $cid -d $nid -m \"Hello, $nid\" --nick $NICK" # updates to make that work.
eval $CLIENTCMD >> $CLIENTOUT/client$cid$nid.out 2>&1 & # for nid in 1 2 3 4; do
RETVAL=$! for nid in 1
eval CLIENTS${CTR}=$RETVAL do
echo "$CLIENTCMD -- $RETVAL" nid=$((($cid % 4) + 1))
CTR=$(($CTR + 1)) eval 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 &
RETVAL=$!
eval CLIENTS${CTR}=$RETVAL
echo "$CLIENTCMD -- $RETVAL"
CTR=$(($CTR + 1))
done
done 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
CTR=0 echo "WAITING FOR $CTR CLIENTS TO EXIT..."
for cid in $(seq 1 4) for i in $(seq 0 $(($CTR - 1)))
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 do
nid=$((($cid % 4) + 1)) eval echo "Waiting on \${CLIENTS${i}} ..."
eval NICK=\${NICK${cid}} eval wait \${CLIENTS${i}}
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 &
RETVAL=$!
eval CLIENTS${CTR}=$RETVAL
echo "$CLIENTCMD -- $RETVAL"
CTR=$(($CTR + 1))
done done
done }
echo "WAITING FOR $CTR CLIENTS (2nd msg set) TO EXIT..." echo "RUNNING CLIENTS..."
for i in $(seq 0 $(($CTR - 1))) runclients
do echo "RUNNING CLIENTS (2nd time)..."
eval echo "Waiting on \${CLIENTS${i}} ..." runclients
eval wait \${CLIENTS${i}}
done
diff -ruN clients.goldoutput $CLIENTOUT diff -ruN clients.goldoutput $CLIENTOUT
cat $SERVERLOGS/*.log | grep "ERROR" > results/server-errors.txt || true
cat $SERVERLOGS/*.log | grep "FATAL" >> results/server-errors.txt || true
diff -ruN results/server-errors.txt noerrors.txt
echo "SUCCESS!" echo "SUCCESS!"
logPath: "results/server-1.log" logPath: "results/servers/server-1.log"
verbose: "false" verbose: "false"
batchSize: 4 batchSize: 4
dbUsername: "cmix" dbUsername: "cmix"
......
logPath: "results/server-2.log" logPath: "results/servers/server-2.log"
verbose: "false" verbose: "false"
batchSize: 4 batchSize: 4
dbUsername: "cmix" dbUsername: "cmix"
......
logPath: "results/server-3.log" logPath: "results/servers/server-3.log"
verbose: "false" verbose: "false"
batchSize: 4 batchSize: 4
dbUsername: "cmix" dbUsername: "cmix"
......
logPath: "results/server-4.log" logPath: "results/servers/server-4.log"
verbose: "false" verbose: "false"
batchSize: 4 batchSize: 4
dbUsername: "cmix" dbUsername: "cmix"
......
logPath: "results/server-5.log" logPath: "results/servers/server-5.log"
verbose: "false" verbose: "false"
batchSize: 4 batchSize: 4
dbUsername: "cmix" dbUsername: "cmix"
......
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