From: Guus Sliepen Date: Thu, 18 Oct 2018 19:41:52 +0000 (+0200) Subject: Skip the legacy protocol test if that protocol is disabled. X-Git-Tag: release-1.1pre18~42 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=1fbaca31a15a37135d8d1de14c56b0df98a8ba1c;p=tinc Skip the legacy protocol test if that protocol is disabled. --- diff --git a/.gitignore b/.gitignore index f3cd877d..1cf6023b 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,7 @@ /test/*.test.* /test/*.log /test/*.trs -/test/pong +/test/splice Makefile Makefile.in core* diff --git a/test/legacy-protocol.test b/test/legacy-protocol.test index ce8e6142..929d2228 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