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
dc1d319b
Commit
dc1d319b
authored
Dec 7, 2022
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Change flags
parent
855b8576
No related branches found
No related tags found
2 merge requests
!68
Master merge
,
!41
Channel integration tests
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+16
-12
16 additions, 12 deletions
basice2e/run.sh
with
16 additions
and
12 deletions
basice2e/run.sh
+
16
−
12
View file @
dc1d319b
...
@@ -1206,25 +1206,25 @@ echo "RUNNING CLIENTS..."
...
@@ -1206,25 +1206,25 @@ echo "RUNNING CLIENTS..."
echo
"TESTING CHANNELS..."
echo
"TESTING CHANNELS..."
# Initialize creator of channel (will use default channel file path in CLI)
# Initialize creator of channel (will use default channel file path in CLI)
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob500
-l
$CLIENTOPTS
$CLIENTOUT
/client500.log --channelIdentityPath
$CLIENTOUT
/channel500 --new
--send
\"
Hello channel, this is 500
\"
"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob500
$CLIENTOPTS
-l
$CLIENTOUT
/client500.log --channelIdentityPath
$CLIENTOUT
/channel500 --new
Channel --sendToChannel --message
\"
Hello
,
channel, this is 500
\"
"
eval
$CLIENTCMD
>
$CLIENTOUT
/client500.txt 2>&1 &
eval
$CLIENTCMD
>
$CLIENTOUT
/client500.txt 2>&1 &
PIDVAL
1
=
$!
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
1
"
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
PIDVAL
1
wait
$
PIDVAL
# Initialize client which will join channel (will use default channel file path in CLI)
# Initialize client which will join channel (will use default channel file path in CLI)
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob501 -l
$CLIENTOPTS
$CLIENTOUT
/client501.log --channelIdentityPath
$CLIENTOUT
/channel501 --join --send
\"
Hello channel, this is 501
\"
"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob501 -l
$CLIENTOPTS
$CLIENTOUT
/client501.log --channelIdentityPath
$CLIENTOUT
/channel501 --join --send
-m
\"
Hello
,
channel, this is 501
\"
"
eval
$CLIENTCMD
>
$CLIENTOUT
/client501.txt 2>&1 &
eval
$CLIENTCMD
>
$CLIENTOUT
/client501.txt 2>&1 &
PIDVAL2
=
$!
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL2
"
echo
"
$CLIENTCMD
--
$PIDVAL2
"
wait
PIDVAL2
wait
$
PIDVAL2
# Initialize another client which will join channel (will use default channel file path in CLI)
# Initialize another client which will join channel (will use default channel file path in CLI)
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob502 -l
$CLIENTOPTS
$CLIENTOUT
/client502.log --channelIdentityPath
$CLIENTOUT
/channel502 --join --send
\"
Hello channel, this is 502
\"
"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob502 -l
$CLIENTOPTS
$CLIENTOUT
/client502.log --channelIdentityPath
$CLIENTOUT
/channel502 --join --send
-m
\"
Hello
,
channel, this is 502
\"
"
eval
$CLIENTCMD
>
$CLIENTOUT
/client502.txt 2>&1 &
eval
$CLIENTCMD
>
$CLIENTOUT
/client502.txt 2>&1 &
PIDVAL3
=
$!
PIDVAL3
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL3
"
echo
"
$CLIENTCMD
--
$PIDVAL3
"
wait
PIDVAL3
wait
$
PIDVAL3
# All clients will leave the channel
# All clients will leave the channel
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob500 -l
$CLIENTOPTS
$CLIENTOUT
/client500.log --channelIdentityPath
$CLIENTOUT
/channel500 --leave"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob500 -l
$CLIENTOPTS
$CLIENTOUT
/client500.log --channelIdentityPath
$CLIENTOUT
/channel500 --leave"
...
@@ -1234,14 +1234,18 @@ echo "$CLIENTCMD -- $PIDVAL1"
...
@@ -1234,14 +1234,18 @@ echo "$CLIENTCMD -- $PIDVAL1"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob501 -l
$CLIENTOPTS
$CLIENTOUT
/client501.log --channelIdentityPath
$CLIENTOUT
/channel501 --leave"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob501 -l
$CLIENTOPTS
$CLIENTOUT
/client501.log --channelIdentityPath
$CLIENTOUT
/channel501 --leave"
eval
$CLIENTCMD
>
$CLIENTOUT
/client501.txt 2>&1 &
eval
$CLIENTCMD
>
$CLIENTOUT
/client501.txt 2>&1 &
PIDVAL
1
=
$!
PIDVAL
2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
1
"
echo
"
$CLIENTCMD
--
$PIDVAL
2
"
# Initialize another client which will join channel (will use default channel file path in CLI)
# Initialize another client which will join channel (will use default channel file path in CLI)
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob502 -l
$CLIENTOPTS
$CLIENTOUT
/client502.log --channelIdentityPath
$CLIENTOUT
/channel502 --leave"
CLIENTCMD
=
"timeout 240s ../bin/client channels -s blob502 -l
$CLIENTOPTS
$CLIENTOUT
/client502.log --channelIdentityPath
$CLIENTOUT
/channel502 --leave"
eval
$CLIENTCMD
>
$CLIENTOUT
/client502.txt 2>&1 &
eval
$CLIENTCMD
>
$CLIENTOUT
/client502.txt 2>&1 &
PIDVAL1
=
$!
PIDVAL3
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL1
"
echo
"
$CLIENTCMD
--
$PIDVAL3
"
wait
$PIDVAL3
wait
$PIDVAL2
wait
$PIDVAL1
echo
"TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
echo
"TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
...
...
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