3 # shellcheck source=testlib.sh
6 echo [STEP] Initialize two nodes
13 set ExperimentalProtocol no
20 set ExperimentalProtocol no
23 create_script foo hosts/bar-up
24 create_script bar hosts/foo-up
26 echo [STEP] Exchange configuration
28 tinc foo export | tinc bar exchange | tinc foo import
29 tinc bar add ConnectTo foo
32 echo [STEP] Test various ciphers and digests
34 # The full suite results in a large test matrix and it takes a lot of time to run.
35 # The list was reduced to the strongest available algorithms (and "none").
36 digests="none sha256 sha512"
37 ciphers="none aes-256-cbc camellia-256-cbc"
39 for digest in $digests; do
40 for cipher in $ciphers; do
41 echo "Testing $cipher $digest"
49 wait_script foo hosts/bar-up
50 wait_script bar hosts/foo-up
52 tinc foo info bar | grep reachable