Do not load Spicy scripts if Spicy is not available.

This commit is contained in:
Robin Sommer 2023-05-15 13:27:01 +02:00
parent 57eb7b4d2a
commit a62e153dd3
No known key found for this signature in database
GPG key ID: D8187293B3FFE5D0
7 changed files with 29 additions and 1 deletions

View file

@ -4,6 +4,9 @@
# Commonly, this test may fail if one forgets to @load some base/ scripts
# when writing a new zeek scripts.
#
# Require Spicy, otherwise its scripts cannot be loaded.
# @TEST-REQUIRES: have-spicy
#
# @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
# @TEST-EXEC: TEST_DIFF_CANONIFIER="grep -v -e 'Use the external.*bro-simple-scan package' -e 'The MQTT scripts have been moved out of policy/' | $SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-sort" btest-diff errors