diff --git a/scripts/test-all-policy.zeek b/scripts/test-all-policy.zeek index 58930dc194..324d6745d6 100644 --- a/scripts/test-all-policy.zeek +++ b/scripts/test-all-policy.zeek @@ -11,9 +11,11 @@ # @load frameworks/control/controllee.zeek # @load frameworks/control/controller.zeek +@ifdef ( Cluster::CLUSTER_BACKEND_ZEROMQ ) @load frameworks/cluster/backend/zeromq/__load__.zeek # @load frameworks/cluster/backend/zeromq/connect.zeek @load frameworks/cluster/backend/zeromq/main.zeek +@endif @load frameworks/cluster/experimental.zeek # Loaded via the above through test-all-policy-cluster.test # when running as a manager, creates cluster.log entries diff --git a/scripts/zeekygen/__load__.zeek b/scripts/zeekygen/__load__.zeek index d22dba2a97..b7ac6992a6 100644 --- a/scripts/zeekygen/__load__.zeek +++ b/scripts/zeekygen/__load__.zeek @@ -2,7 +2,9 @@ # Scripts which are commented out in test-all-policy.zeek. @load protocols/ssl/decryption.zeek +@ifdef ( Cluster::CLUSTER_BACKEND_ZEROMQ ) @load frameworks/cluster/backend/zeromq/connect.zeek +@endif @load frameworks/cluster/nodes-experimental/manager.zeek @load frameworks/control/controllee.zeek @load frameworks/control/controller.zeek diff --git a/testing/btest/coverage/bare-load-baseline.test b/testing/btest/coverage/bare-load-baseline.test index 8b73fb125c..95f06a12eb 100644 --- a/testing/btest/coverage/bare-load-baseline.test +++ b/testing/btest/coverage/bare-load-baseline.test @@ -9,6 +9,7 @@ # below does. Don't ask. :-) # @TEST-REQUIRES: $SCRIPTS/have-spicy # This test logs loaded scripts, so disable it if Spicy and it associated plugin is unavailable. +# @TEST-REQUIRES: have-zeromq # Require ZeroMQ so that the plugin's bif file is loaded. # @TEST-REQUIRES: ! have-spicy-ssl # Enabling Spicy SSL changes the loaded scripts, skip in this case # @TEST-EXEC: zeek -b misc/loaded-scripts # @TEST-EXEC: test -e loaded_scripts.log diff --git a/testing/btest/coverage/bare-mode-errors.test b/testing/btest/coverage/bare-mode-errors.test index ea5b66955e..748a3f95e5 100644 --- a/testing/btest/coverage/bare-mode-errors.test +++ b/testing/btest/coverage/bare-mode-errors.test @@ -6,6 +6,7 @@ # # Require Spicy, otherwise its scripts cannot be loaded. # @TEST-REQUIRES: have-spicy +# @TEST-REQUIRES: have-zeromq # # @TEST-EXEC: test -d $DIST/scripts # @TEST-EXEC: for script in `find $DIST/scripts/ -name \*\.zeek`; do zeek -b --parse-only $script >>errors 2>&1; done diff --git a/testing/btest/coverage/default-load-baseline.test b/testing/btest/coverage/default-load-baseline.test index 2d098279fe..bbf79b6a52 100644 --- a/testing/btest/coverage/default-load-baseline.test +++ b/testing/btest/coverage/default-load-baseline.test @@ -7,7 +7,8 @@ # prefix to make the test work everywhere. That's what the sed magic # below does. Don't ask. :-) -# @TEST-REQUIRES: ${SCRIPTS}/have-spicy +# @TEST-REQUIRES: have-spicy +# @TEST-REQUIRES: have-zeromq # @TEST-REQUIRES: ! have-spicy-ssl # Enabling Spicy SSL changes the loaded scripts, skip in this case # @TEST-EXEC: zeek misc/loaded-scripts # @TEST-EXEC: test -e loaded_scripts.log diff --git a/testing/btest/plugins/hooks.zeek b/testing/btest/plugins/hooks.zeek index b65d321230..25e636a411 100644 --- a/testing/btest/plugins/hooks.zeek +++ b/testing/btest/plugins/hooks.zeek @@ -1,5 +1,6 @@ # @TEST-REQUIRES: test "${ZEEK_ZAM}" != "1" -# @TEST-REQUIRES: ${SCRIPTS}/have-spicy # This test logs loaded scripts, so disable it if Spicy and the associated plugin are unavailable. +# @TEST-REQUIRES: have-spicy # This test logs loaded scripts, so disable it if Spicy and the associated plugin are unavailable. +# @TEST-REQUIRES: have-zeromq # This test logs loaded scripts, so disable it if ZeroMQ isn't available. # @TEST-REQUIRES: ! have-spicy-ssl # Enabling Spicy SSL changes baselines and thus changes raised events. Skip in this case. # @TEST-EXEC: ${DIST}/auxil/zeek-aux/plugin-support/init-plugin -u . Demo Hooks # @TEST-EXEC: cp -r %DIR/hooks-plugin/* .