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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
cd56564a
Commit
cd56564a
authored
3 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Prelim protonet test which *should* pass
parent
19f96d3a
No related branches found
Branches containing commit
No related tags found
2 merge requests
!68
Master merge
,
!11
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+44
-24
44 additions, 24 deletions
basice2e/run.sh
with
44 additions
and
24 deletions
basice2e/run.sh
+
44
−
24
View file @
cd56564a
...
...
@@ -441,30 +441,30 @@ wait $PIDVAL2
# wait $PIDVAL2
echo
"FORCING HISTORICAL ROUNDS..."
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
--forceHistoricalRounds --unsafe -l
$CLIENTOUT
/client35.log -s blob35 --sendid 1 --destid 2 --sendCount 5 --receiveCount 5 -m
\"
Hello from 1, without E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client35.txt
||
true
&
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
--forceHistoricalRounds --unsafe -l
$CLIENTOUT
/client36.log -s blob36 --sendid 2 --destid 1 --sendCount 5 --receiveCount 5 -m
\"
Hello from 2, without E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client36.txt
||
true
&
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
wait
$PIDVAL2
#
echo "FORCING HISTORICAL ROUNDS..."
#
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS --forceHistoricalRounds --unsafe -l $CLIENTOUT/client35.log -s blob35 --sendid 1 --destid 2 --sendCount 5 --receiveCount 5 -m \"Hello from 1, without E2E Encryption\""
#
eval $CLIENTCMD >> $CLIENTOUT/client35.txt || true &
#
PIDVAL=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS --forceHistoricalRounds --unsafe -l $CLIENTOUT/client36.log -s blob36 --sendid 2 --destid 1 --sendCount 5 --receiveCount 5 -m \"Hello from 2, without E2E Encryption\""
#
eval $CLIENTCMD >> $CLIENTOUT/client36.txt || true &
#
PIDVAL2=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
wait $PIDVAL
#
wait $PIDVAL2
echo
"FORCING MESSAGE PICKUP RETRY... "
# Higher timeouts for this test to allow message pickup retry to function
CLIENTCMD
=
"timeout 360s ../bin/client
$CLIENTOPTS
--forceMessagePickupRetry -l
$CLIENTOUT
/client20.log -s blob20 --sendid 20 --destid 21 --sendCount 5 --receiveCount 5 -m
\"
Hello from 20, without E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client20.txt
||
true
&
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 360s ../bin/client
$CLIENTOPTS
--forceMessagePickupRetry -l
$CLIENTOUT
/client21.log -s blob21 --sendid 21 --destid 20 --sendCount 5 --receiveCount 5 -m
\"
Hello from 21, without E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client21.txt
||
true
&
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
wait
$PIDVAL2
#
echo "FORCING MESSAGE PICKUP RETRY... "
#
# Higher timeouts for this test to allow message pickup retry to function
#
CLIENTCMD="timeout 360s ../bin/client $CLIENTOPTS --forceMessagePickupRetry -l $CLIENTOUT/client20.log -s blob20 --sendid 20 --destid 21 --sendCount 5 --receiveCount 5 -m \"Hello from 20, without E2E Encryption\""
#
eval $CLIENTCMD >> $CLIENTOUT/client20.txt || true &
#
PIDVAL=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
CLIENTCMD="timeout 360s ../bin/client $CLIENTOPTS --forceMessagePickupRetry -l $CLIENTOUT/client21.log -s blob21 --sendid 21 --destid 20 --sendCount 5 --receiveCount 5 -m \"Hello from 21, without E2E Encryption\""
#
eval $CLIENTCMD >> $CLIENTOUT/client21.txt || true &
#
PIDVAL2=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
wait $PIDVAL
#
wait $PIDVAL2
# Single-use test: client53 sends message to client52; client52 responds with
...
...
@@ -769,10 +769,30 @@ rm $CLIENTCLEAN/client*.txt.bak
set
-e
GOLDOUTPUT
=
clients.goldoutput
if
[
"
$NETWORKENTRYPOINT
"
!=
"localhost:8440"
]
then
rm
-fr
clients.net_goldoutput
||
true
GOLDOUTPUT
=
clients.net_goldoutput
cp
-ra
clients.goldoutput clients.net_goldoutput
# Delete the localhost only files
rm
$GOLDOUTPUT
/client13
*
||
true
rm
$GOLDOUTPUT
/client18
*
||
true
rm
$GOLDOUTPUT
/client19
*
||
true
rm
$GOLDOUTPUT
/client2[01]
*
||
true
rm
$GOLDOUTPUT
/client31
*
||
true
rm
$GOLDOUTPUT
/client3[56]
*
||
true
rm
$GOLDOUTPUT
/client45
*
||
true
rm
$GOLDOUTPUT
/client56
*
||
true
rm
$GOLDOUTPUT
/client67
*
||
true
rm
$GOLDOUTPUT
/client74
*
||
true
rm
$GOLDOUTPUT
/client9
*
||
true
fi
echo
"TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
set
+x
diff
-aruN
clients.goldoutput
$CLIENTCLEAN
diff
-aruN
$GOLDOUTPUT
$CLIENTCLEAN
cat
$CLIENTOUT
/client42.log |
grep
-a
"Could not confirm authentication channel"
>
results/deleteContact.txt
||
true
echo
"CHECKING FOR SUCCESSFUL CONTACT DELETION"
if
[
-s
results/deleteContact.txt
]
...
...
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