btest: Avoid loading ZeroMQ if not compiled in

...at the same time, add some `TEST-REQUIRES: have-zeromq` which
unfortunately means that developers will usually want libzmq
installed on their system.
This commit is contained in:
Arne Welzel 2024-12-11 17:58:31 +01:00
parent c6c6d88b4c
commit 85189ca918
6 changed files with 10 additions and 2 deletions

View file

@ -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