Skip the legacy protocol test if that protocol is disabled.
[tinc] / test / legacy-protocol.test
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