projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a test for backwards compatibility with the legacy protocol.
[tinc]
/
test
/
invite-join.test
diff --git
a/test/invite-join.test
b/test/invite-join.test
index
dbe6f8a
..
5167320
100755
(executable)
--- a/
test/invite-join.test
+++ b/
test/invite-join.test
@@
-1,6
+1,6
@@
#!/bin/sh
#!/bin/sh
-.
./testlib.sh
+.
"${0%/*}/testlib.sh"
# Initialize one node
# Initialize one node
@@
-9,7
+9,6
@@
init foo
set DeviceType dummy
set Mode switch
set Broadcast no
set DeviceType dummy
set Mode switch
set Broadcast no
-del Port
set Address localhost
set Port 32751
start $r1
set Address localhost
set Port 32751
start $r1
@@
-17,14
+16,12
@@
EOF
# Generate an invitation and let another node join the VPN
# Generate an invitation and let another node join the VPN
-sleep 1
-
$tinc $c1 invite bar | $tinc $c2 join
# Test equivalence of host config files
cmp $d1/hosts/foo $d2/hosts/foo
$tinc $c1 invite bar | $tinc $c2 join
# Test equivalence of host config files
cmp $d1/hosts/foo $d2/hosts/foo
-test "`grep ^E
CDSAPublicKey $d1/hosts/bar`" = "`grep ^ECDSA
PublicKey $d2/hosts/bar`"
+test "`grep ^E
d25519PublicKey $d1/hosts/bar`" = "`grep ^Ed25519
PublicKey $d2/hosts/bar`"
# Test Mode, Broadcast and ConnectTo statements
# Test Mode, Broadcast and ConnectTo statements