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-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1fbaca31a15a37135d8d1de14c56b0df98a8ba1c;p=oweals%2Ftinc.git Skip the legacy protocol test if that protocol is disabled. --- diff --git a/.gitignore b/.gitignore index f3cd877..1cf6023 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 ce8e614..929d222 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