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

* test-all.bro renamed to test-all-policy.bro because it lists only the optional scripts now. * A new test that checks that the default config loads everything in base/*/ * A new test that runs bare mode but loads all optional policy scripts (which fails horribly right now ...) * A new loaded_scripts test for the bare mode.
8 lines
504 B
Text
8 lines
504 B
Text
# Makes sure that all policy/* scripts are loaded in test-all-policy.bro; and that
|
|
# all scripts loaded there actually exist.
|
|
|
|
@TEST-EXEC: test -e $DIST/scripts/test-all-policy.bro
|
|
@TEST-EXEC: test -d $DIST/scripts
|
|
@TEST-EXEC: ( cd $DIST/scripts/policy && find . -name '*.bro' ) | sort >"all scripts found"
|
|
@TEST-EXEC: cat $DIST/scripts/test-all-policy.bro | grep '@load' | sed 'sm^\( *# *\)\{0,\}@load *m./mg' | sort >test-all-policy.bro
|
|
@TEST-EXEC: diff -u "all scripts found" test-all-policy.bro 1>&2
|