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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
ab286b04
Commit
ab286b04
authored
Nov 11, 2022
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixes
parent
90344e14
No related branches found
No related tags found
2 merge requests
!68
Master merge
,
!38
Bug fixes
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
basice2e/clients.goldoutput/client121.txt
+1
-0
1 addition, 0 deletions
basice2e/clients.goldoutput/client121.txt
basice2e/run.sh
+41
-41
41 additions, 41 deletions
basice2e/run.sh
with
42 additions
and
41 deletions
basice2e/clients.goldoutput/client121.txt
+
1
−
0
View file @
ab286b04
Adding
Backup update received.
Backup update received.
Backup update received.
Message received: Hello from Client120, with E2E Encryption
Message received: Hello from Client120, with E2E Encryption
Message received: Hello from Client120, with E2E Encryption
...
...
This diff is collapsed.
Click to expand it.
basice2e/run.sh
+
41
−
41
View file @
ab286b04
...
...
@@ -1074,47 +1074,47 @@ wait $PIDVAL2
echo
"FILE TRANSFER FINISHED..."
echo
"TESTING BROADCAST CHANNELS..."
# New broadcast channel...
CLIENTCMD
=
"timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 1800 -l
$CLIENTOUT
/client130.log -s blob130 --new --name broadcast-test --description
\"
Integration test channel
\"
--chanPath results/integration-channel.json --keyPath results/integration-chan-key.pem --receiveCount 0"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client130.txt &
PIDVAL1
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL1
"
wait
$PIDVAL1
# Start client to listen for messages on the channel
CLIENTCMD
=
"timeout 480s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 1800 -l
$CLIENTOUT
/client131.log -s blob131 --chanPath results/integration-channel.json --receiveCount 4"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client131.txt &
PIDVAL1
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL1
"
sleep
10
# Send symmetric broadcast to channel
CLIENTCMD
=
"timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 360 -l
$CLIENTOUT
/client132.log -s blob132 --chanPath results/integration-channel.json --receiveCount 0 --sendDelay 5000 --symmetric
\"
Hello to symmetric channel from channel client 122!
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client132.txt &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL2
"
# Send asymmetric broadcast to channel
CLIENTCMD
=
"timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 360 -l
$CLIENTOUT
/client133.log -s blob133 --chanPath results/integration-channel.json --receiveCount 0 --sendDelay 5000 --keyPath results/integration-chan-key.pem --asymmetric
\"
Hello to asymmetric channel from channel client 123!
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client133.txt &
PIDVAL3
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL3
"
# Send symmetric & asymmetric broadcasts to channel
CLIENTCMD
=
"timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 360 -l
$CLIENTOUT
/client134.log -s blob134 --chanPath results/integration-channel.json --receiveCount 0 --sendDelay 5000 --keyPath results/integration-chan-key.pem --asymmetric
\"
Hello to asymmetric channel from channel client 124!
\"
--symmetric
\"
Hello to symmetric channel from channel client 124!
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client134.txt &
PIDVAL4
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL4
"
wait
$PIDVAL2
wait
$PIDVAL3
wait
$PIDVAL4
wait
$PIDVAL1
echo
"BROADCAST CHANNELS FINISHED..."
#
echo "TESTING BROADCAST CHANNELS..."
#
# New broadcast channel...
#
CLIENTCMD="timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 1800 -l $CLIENTOUT/client130.log -s blob130 --new --name broadcast-test --description \"Integration test channel\" --chanPath results/integration-channel.json --keyPath results/integration-chan-key.pem --receiveCount 0"
#
eval $CLIENTCMD >> $CLIENTOUT/client130.txt &
#
PIDVAL1=$!
#
echo "$CLIENTCMD -- $PIDVAL1"
#
wait $PIDVAL1
#
# Start client to listen for messages on the channel
#
CLIENTCMD="timeout 480s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 1800 -l $CLIENTOUT/client131.log -s blob131 --chanPath results/integration-channel.json --receiveCount 4"
#
eval $CLIENTCMD >> $CLIENTOUT/client131.txt &
#
PIDVAL1=$!
#
echo "$CLIENTCMD -- $PIDVAL1"
#
sleep 10
#
# Send symmetric broadcast to channel
#
CLIENTCMD="timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 360 -l $CLIENTOUT/client132.log -s blob132 --chanPath results/integration-channel.json --receiveCount 0 --sendDelay 5000 --symmetric \"Hello to symmetric channel from channel client 122!\""
#
eval $CLIENTCMD >> $CLIENTOUT/client132.txt &
#
PIDVAL2=$!
#
echo "$CLIENTCMD -- $PIDVAL2"
#
# Send asymmetric broadcast to channel
#
CLIENTCMD="timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 360 -l $CLIENTOUT/client133.log -s blob133 --chanPath results/integration-channel.json --receiveCount 0 --sendDelay 5000 --keyPath results/integration-chan-key.pem --asymmetric \"Hello to asymmetric channel from channel client 123!\""
#
eval $CLIENTCMD >> $CLIENTOUT/client133.txt &
#
PIDVAL3=$!
#
echo "$CLIENTCMD -- $PIDVAL3"
#
# Send symmetric & asymmetric broadcasts to channel
#
CLIENTCMD="timeout 240s ../bin/client broadcast --password hello --ndf results/ndf.json --waitTimeout 360 -l $CLIENTOUT/client134.log -s blob134 --chanPath results/integration-channel.json --receiveCount 0 --sendDelay 5000 --keyPath results/integration-chan-key.pem --asymmetric \"Hello to asymmetric channel from channel client 124!\" --symmetric \"Hello to symmetric channel from channel client 124!\""
#
eval $CLIENTCMD >> $CLIENTOUT/client134.txt &
#
PIDVAL4=$!
#
echo "$CLIENTCMD -- $PIDVAL4"
#
wait $PIDVAL2
#
wait $PIDVAL3
#
wait $PIDVAL4
#
wait $PIDVAL1
#
echo "BROADCAST CHANNELS FINISHED..."
###############################################################################
# Test ephemeral connections
...
...
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