X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Flegacy-protocol.test;h=520587747f4f3c795932f7ddb92043301252aa08;hb=6779e381e59092b317a63356180db9a832ffb47d;hp=ce8e61422276aada0c8c551f4eded6210b7aedf1;hpb=69e550f5950e31fb97eb4558c3d6e564211ab03a;p=tinc diff --git a/test/legacy-protocol.test b/test/legacy-protocol.test index ce8e6142..52058774 100755 --- a/test/legacy-protocol.test +++ b/test/legacy-protocol.test @@ -1,5 +1,10 @@ #!/bin/sh +# Skip this test if the legacy protocol is disabled +if grep -q "define DISABLE_LEGACY 1" "${0%/*}/../config.h"; then + exit 77 +fi + . "${0%/*}/testlib.sh" # Initialize two nodes @@ -70,7 +75,7 @@ $tinc $c2 set ExperimentalProtocol no $tinc $c1 start $r1 $tinc $c2 start $r2 -sleep 1 +sleep 5 test `$tinc $c1 dump reachable nodes | wc -l` = 1 test `$tinc $c2 dump reachable nodes | wc -l` = 1