Skip to content
Snippets Groups Projects
Commit 17e04ce8 authored by Josh Brooks's avatar Josh Brooks
Browse files

Update run command for proto tests

parent aaa651bf
No related branches found
No related tags found
3 merge requests!68Master merge,!11Release,!9Add code for proto USer
...@@ -476,25 +476,25 @@ wait $PIDVAL2 ...@@ -476,25 +476,25 @@ wait $PIDVAL2
# Generate contact and proto user file for client25 # Generate contact and proto user file for client25
echo "TESTING PROTO USER FILE..." echo "TESTING PROTO USER FILE..."
CLIENTCMD="../bin/client proto -l $CLIENTOUT/client25.log -s blob11420 --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/josh25-contact.bin --protoUserOut $CLIENTOUT/client25Proto.json " CLIENTCMD="timeout 20s ../bin/client -l $CLIENTOUT/client25.log -s blob11420 --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/josh25-contact.bin --protoUserOut $CLIENTOUT/client25Proto.json "
eval $CLIENTCMD >> $CLIENTOUT/client25.txt || true & eval $CLIENTCMD >> $CLIENTOUT/client25.txt || true &
PIDVAL=$! PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL" echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL wait $PIDVAL
# Generate contact and proto user file for client 26 # Generate contact and proto user file for client 26
CLIENTCMD="../bin/client proto -l $CLIENTOUT/client26.log -s blob11421 --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/jonah26-contact.bin --protoUserOut $CLIENTOUT/client26Proto.json" CLIENTCMD="timeout 20s ../bin/client -l $CLIENTOUT/client26.log -s blob11421 --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/jonah26-contact.bin --protoUserOut $CLIENTOUT/client26Proto.json"
eval $CLIENTCMD >> $CLIENTOUT/client25.txt || true & eval $CLIENTCMD >> $CLIENTOUT/client26.txt || true &
PIDVAL=$! PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL" echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL wait $PIDVAL
# Clients will now load from the protoUser file and write to session # Clients will now load from the protoUser file and write to session
CLIENTCMD="timeout 240s ../bin/client proto $CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --protoUserPath $CLIENTOUT/client25Proto.json" CLIENTCMD="timeout 60s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --protoUserPath $CLIENTOUT/client25Proto.json"
eval $CLIENTCMD >> $CLIENTOUT/client25.txt || true & eval $CLIENTCMD >> $CLIENTOUT/client25.txt || true &
PIDVAL=$! PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL" echo "$CLIENTCMD -- $PIDVAL"
CLIENTCMD="timeout 240s ../bin/client proto $CLIENTOPTS -l $CLIENTOUT/client26.log -s blob26 --protoUserPath $CLIENTOUT/client26Proto.json" CLIENTCMD="timeout 60s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client26.log -s blob26 --protoUserPath $CLIENTOUT/client26Proto.json"
eval $CLIENTCMD >> $CLIENTOUT/client26.txt || true & eval $CLIENTCMD >> $CLIENTOUT/client26.txt || true &
PIDVAL2=$! PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL2" echo "$CLIENTCMD -- $PIDVAL2"
...@@ -518,10 +518,10 @@ while [ ! -s $CLIENTOUT/jonah26-contact.bin ]; do ...@@ -518,10 +518,10 @@ while [ ! -s $CLIENTOUT/jonah26-contact.bin ]; do
done done
# Print IDs to console # Print IDs to console
TMPID=$(cat $CLIENTOUT/client25.log | grep -a "User\:" | awk -F' ' '{print $5}') TMPID=$(cat $CLIENTOUT/client25.log | grep -a "User\:" | awk -F' ' '{print $5}' | head -1)
JOSHID=${TMPID} JOSHID=${TMPID}
echo "JOSH ID: $JOSHID" echo "JOSH ID: $JOSHID"
TMPID=$(cat $CLIENTOUT/client26.log | grep -a "User\:" | awk -F' ' '{print $5}') TMPID=$(cat $CLIENTOUT/client26.log | grep -a "User\:" | awk -F' ' '{print $5}' | head -1)
JONAHID=${TMPID} JONAHID=${TMPID}
echo "JONAH ID: $JONAHID" echo "JONAH ID: $JONAHID"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment