Skip the legacy protocol test if that protocol is disabled.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 18 Oct 2018 19:41:52 +0000 (21:41 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 18 Oct 2018 19:56:58 +0000 (21:56 +0200)
.gitignore
test/legacy-protocol.test

index f3cd877db0d9cc6fdfc548e1ecfc182fbe7f159b..1cf6023b81eda81878c149f7b15f28322ca28626 100644 (file)
@@ -41,7 +41,7 @@
 /test/*.test.*
 /test/*.log
 /test/*.trs
-/test/pong
+/test/splice
 Makefile
 Makefile.in
 core*
index ce8e61422276aada0c8c551f4eded6210b7aedf1..929d2228a1f1b5f5f7f3d5307dd3bc775b4909ce 100755 (executable)
@@ -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