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
f00043f3
Commit
f00043f3
authored
4 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Updates for latest changes
parent
638d4274
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
basice2e/run.sh
+46
-26
46 additions, 26 deletions
basice2e/run.sh
basice2e/tmp
+6
-2
6 additions, 2 deletions
basice2e/tmp
with
52 additions
and
28 deletions
basice2e/run.sh
+
46
−
26
View file @
f00043f3
...
@@ -160,25 +160,45 @@ runclients
...
@@ -160,25 +160,45 @@ runclients
echo
"RUNNING BASIC CLIENTS (2nd time)..."
echo
"RUNNING BASIC CLIENTS (2nd time)..."
runclients
runclients
# Register two users and then do UDB search on each other
# Send E2E messages between a single user
# mkdir -p blob9
mkdir
-p
blob9
# mkdir -p blob18
mkdir
-p
blob18
# echo "REGISTERING AND SEARCHING WITH PRECANNED USERS..."
echo
"TEST E2E WITH PRECANNED USERS..."
# CLIENTCMD="timeout 90s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client9.log -f blob9/blob9 -E niamh@elixxir.io -i 9 -d 9 -m \"Hi\""
CLIENTCMD
=
"timeout 90s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client9.log --sendCount 2 --receiveCount 2 -s blob9/blob9 --sendid 9 --destid 9 -m
\"
Hi 9->9, with E2E Encryption
\"
"
# eval $CLIENTCMD >> $CLIENTOUT/client9.txt 2>&1 &
eval
$CLIENTCMD
>>
$CLIENTOUT
/client9.txt 2>&1 &
# PIDVAL=$!
PIDVAL
=
$!
# echo "$CLIENTCMD -- $PIDVAL"
echo
"
$CLIENTCMD
--
$PIDVAL
"
# wait $PIDVAL
wait
$PIDVAL
# CLIENTCMD="timeout 90s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client18.log -f blob18/blob18 -E bernardo@elixxir.io -i 18 -d 9 -s \"niamh@elixxir.io\" --keyParams 3,4,2,1.0,2"
echo
"TEST E2E WITH PRECANNED USERS..."
# eval $CLIENTCMD >> $CLIENTOUT/client18.txt 2>&1 &
CLIENTCMD
=
"timeout 90s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client9.log --sendCount 2 --receiveCount 2 -s blob9/blob9 --sendid 9 --destid 9 -m
\"
Hi 9->9, with E2E Encryption
\"
"
# PIDVAL=$!
eval
$CLIENTCMD
>>
$CLIENTOUT
/client9.txt 2>&1 &
# echo "$CLIENTCMD -- $PIDVAL"
PIDVAL
=
$!
# wait $PIDVAL
echo
"
$CLIENTCMD
--
$PIDVAL
"
# CLIENTCMD="timeout 90s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client9.log -f blob9/blob9 -i 9 -d 18 -s \"bernardo@elixxir.io\" --keyParams 3,4,2,1.0,2"
wait
$PIDVAL
# eval $CLIENTCMD >> $CLIENTOUT/client9.txt 2>&1 &
# PIDVAL=$!
# Send E2E messages between two users
# echo "$CLIENTCMD -- $PIDVAL"
CLIENTCMD
=
"timeout 90s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client9.log --sendCount 1 --receiveCount 1 -s blob9/blob9 --sendid 9 --destid 18 -m
\"
Hi 9->18, with E2E Encryption
\"
"
# wait $PIDVAL
eval
$CLIENTCMD
>>
$CLIENTOUT
/client9.txt 2>&1 &
PIDVAL1
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 90s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client18.log --sendCount 1 --receiveCount 1 -s blob18/blob18 --sendid 18 --destid 9 -m
\"
Hi 18->9, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client18.txt 2>&1 &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL1
wait
$PIDVAL2
CLIENTCMD
=
"timeout 90s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client9.log --sendCount 5 --receiveCount 5 -s blob9/blob9 --sendid 9 --destid 18 -m
\"
Hi 9->18, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client9.txt 2>&1 &
PIDVAL1
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 90s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client18.log --sendCount 5 --receiveCount 5 -s blob18/blob18 --sendid 18 --destid 9 -m
\"
Hi 18->9, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client18.txt 2>&1 &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL1
wait
$PIDVAL2
# # Send multiple E2E encrypted messages between users that discovered each other
# # Send multiple E2E encrypted messages between users that discovered each other
# echo "SENDING MESSAGES TO PRECANNED USERS AND FORCING A REKEY..."
# echo "SENDING MESSAGES TO PRECANNED USERS AND FORCING A REKEY..."
...
@@ -246,15 +266,15 @@ runclients
...
@@ -246,15 +266,15 @@ runclients
cp
$CLIENTOUT
/
*
.txt
$CLIENTCLEAN
/
cp
$CLIENTOUT
/
*
.txt
$CLIENTCLEAN
/
# Ignore rekey for now
# Ignore rekey for now
rm
$CLIENTCLEAN
/
*
_rekey.txt
#
rm $CLIENTCLEAN/*_rekey.txt
sed
-i
's/Sending\ Message\ to\ .*,\ :/Sent:/g'
$CLIENTCLEAN
/client4[23].txt
#
sed -i 's/Sending\ Message\ to\ .*,\ :/Sent:/g' $CLIENTCLEAN/client4[23].txt
sed
-i
's/Message\ from\ .*, .* Received:/Received:/g'
$CLIENTCLEAN
/client4[23].txt
#
sed -i 's/Message\ from\ .*, .* Received:/Received:/g' $CLIENTCLEAN/client4[23].txt
for
C
in
$(
ls
-1
$CLIENTCLEAN
)
;
do
#
for C in $(ls -1 $CLIENTCLEAN); do
sort
-o
tmp
$CLIENTCLEAN
/
$C
||
true
#
sort -o tmp $CLIENTCLEAN/$C || true
uniq
tmp
$CLIENTCLEAN
/
$C
||
true
#
uniq tmp $CLIENTCLEAN/$C || true
done
#
done
set
-e
set
-e
...
...
This diff is collapsed.
Click to expand it.
basice2e/tmp
+
6
−
2
View file @
f00043f3
Message from 9, Niamh Received: Hi
Message received: Hello, 7
Sending Message to 9, Niamh: Hi
Message received: Hello, 7
Received 1
Received 1
Sending to AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD: Hello, 4
Sending to AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD: Hello, 4
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