5 # Initialize three nodes
26 # Test import, export and exchange commands
28 $tinc $c1 export | $tinc $c2 exchange | $tinc $c1 import
30 # Test export-all and exchange-all
32 $tinc $c1 export-all | $tinc $c3 exchange | $tinc $c1 import
33 $tinc $c1 exchange-all </dev/null | $tinc $c2 import
35 # Test equivalence of host config files
37 cmp $d1/hosts/foo $d2/hosts/foo
38 cmp $d1/hosts/foo $d3/hosts/foo
39 cmp $d1/hosts/bar $d2/hosts/bar
40 cmp $d1/hosts/bar $d3/hosts/bar
41 cmp $d1/hosts/baz $d2/hosts/baz
42 cmp $d1/hosts/baz $d3/hosts/baz
44 # Check whether the nodes can connect to each other
48 $tinc $c2 add ConnectTo foo
49 $tinc $c3 add ConnectTo foo
58 test `$tinc $c1 dump reachable nodes | wc -l` = 3
59 test `$tinc $c2 dump reachable nodes | wc -l` = 3
60 test `$tinc $c3 dump reachable nodes | wc -l` = 3