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 f3cd877..1cf6023 100644 (file)
@@ -41,7 +41,7 @@
 /test/*.test.*
 /test/*.log
 /test/*.trs
-/test/pong
+/test/splice
 Makefile
 Makefile.in
 core*
index ce8e614..929d222 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