17 # Generate an invitation and let another node join the VPN
19 $tinc $c1 invite bar | $tinc $c2 join
21 # Test equivalence of host config files
23 cmp $d1/hosts/foo $d2/hosts/foo
24 test "`grep ^Ed25519PublicKey $d1/hosts/bar`" = "`grep ^Ed25519PublicKey $d2/hosts/bar`"
26 # Test Mode, Broadcast and ConnectTo statements
28 test `$tinc $c2 get Mode` = switch
29 test `$tinc $c2 get Broadcast` = no
30 test `$tinc $c2 get ConnectTo` = foo
32 # Check whether the new node can join the VPN
42 test `$tinc $c1 dump reachable nodes | wc -l` = 2
43 test `$tinc $c2 dump reachable nodes | wc -l` = 2