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

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
15 lines
903 B
Text
15 lines
903 B
Text
# This test is meant to cover whether the set of scripts that get loaded by
|
|
# default matches a baseline of known defaults. When new scripts are
|
|
# added to the scripts/base/ directory, the baseline will usually just need
|
|
# to be updated.
|
|
#
|
|
# As the output has absolute paths in it, we need to remove the common
|
|
# prefix to make the test work everywhere. That's what the sed magic
|
|
# below does. Don't ask. :-)
|
|
|
|
# @TEST-EXEC: zeek misc/loaded-scripts
|
|
# @TEST-EXEC: test -e loaded_scripts.log
|
|
# @TEST-EXEC: cat loaded_scripts.log | egrep -v '#' | sed 's/ //g' | sed -e ':a' -e '$!N' -e 's/^\(.*\).*\n\1.*/\1/' -e 'ta' >prefix
|
|
# @TEST-EXEC: (test -L $BUILD && basename $(readlink $BUILD) || basename $BUILD) >buildprefix
|
|
# @TEST-EXEC: cat loaded_scripts.log | sed "s#`cat buildprefix`#build#g" | sed "s#`cat prefix`##g" >canonified_loaded_scripts.log
|
|
# @TEST-EXEC: btest-diff canonified_loaded_scripts.log
|