18 # Generate an invitation and let another node join the VPN
20 $tinc $c1 invite bar | $tinc $c2 join
22 # Test equivalence of host config files
24 cmp $d1/hosts/foo $d2/hosts/foo
25 test "`grep ^Ed25519PublicKey $d1/hosts/bar`" = "`grep ^Ed25519PublicKey $d2/hosts/bar`"
27 # Test Mode, Broadcast and ConnectTo statements
29 test `$tinc $c2 get Mode` = switch
30 test `$tinc $c2 get Broadcast` = no
31 test `$tinc $c2 get ConnectTo` = foo
33 # Check whether the new node can join the VPN
43 test `$tinc $c1 dump reachable nodes | wc -l` = 2
44 test `$tinc $c2 dump reachable nodes | wc -l` = 2