zeek/testing/btest/coverage/bare-mode-errors.test
Johanna Amann c51998361c Parallelize coverage/bare-mode-errors
Currently, coverage/bare-mode-errors is one of the slowest tests in the
entire test suite. This is caused by the fact that it has to repeatedly
launch Zeek for every script that we ship. This is done sequentially.

This commit changes this test to use xargs to spawn 20 parallell
processes.
2025-06-04 13:18:05 +01:00

13 lines
588 B
Text

# Makes sure any given zeek script in the scripts/ tree can be loaded in
# bare mode without error.
#
# 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-REQUIRES: have-zeromq
#
# @TEST-EXEC: test -d $DIST/scripts
# @TEST-EXEC: find $DIST/scripts/ -name "*.zeek" -print0 | xargs -0 -n1 -P 20 -- zeek -b --parse-only >>errors 2>&1
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-sort" btest-diff errors