mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

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.
13 lines
588 B
Text
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
|