5 echo [STEP] Initialize one node
18 echo [STEP] Generate an invitation and let another node join the VPN
20 invitation=$(tinc foo invite bar)
21 tinc bar join "$invitation"
23 echo [STEP] Test equivalence of host config files
25 diff -w "$DIR_FOO/hosts/foo" "$DIR_BAR/hosts/foo"
26 test "$(grep ^Ed25519PublicKey "$DIR_FOO/hosts/bar")" = "$(grep ^Ed25519PublicKey "$DIR_BAR/hosts/bar")"
28 echo [STEP] Test Mode, Broadcast and ConnectTo statements
30 test "$(tinc bar get Mode)" = switch
31 test "$(tinc bar get Broadcast)" = no
32 test "$(tinc bar get ConnectTo)" = foo
34 echo [STEP] Check whether the new node can join the VPN
41 create_script foo hosts/bar-up
42 create_script bar hosts/foo-up
46 wait_script foo hosts/bar-up
47 wait_script bar hosts/foo-up