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