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