mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Reorganizing btest/policy directory to match new scripts/ organization
Addresses #545
This commit is contained in:
parent
2eea193d79
commit
c3fb0ea035
134 changed files with 2 additions and 2 deletions
11
testing/btest/scripts/base/init-default-coverage.bro
Normal file
11
testing/btest/scripts/base/init-default-coverage.bro
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Makes sure that all base/* scripts are loaded by default via init-default.bro;
|
||||
# and that all scripts loaded there in there actually exist.
|
||||
|
||||
@TEST-EXEC: test -d $DIST/scripts/base
|
||||
@TEST-EXEC: test -e $DIST/scripts/base/init-default.bro
|
||||
@TEST-EXEC: ( cd $DIST/scripts/base && find . -name '*.bro' ) | sort >"all scripts found"
|
||||
@TEST-EXEC: bro misc/loaded-scripts
|
||||
@TEST-EXEC: cat loaded_scripts.log | egrep -v '/build/|/loaded-scripts.bro' | awk 'NR>1{print $2}' | sed 's#/./#/#g' >loaded_scripts.log.tmp
|
||||
@TEST-EXEC: cat loaded_scripts.log.tmp | sed -e ':a' -e '$!N' -e 's/^\(.*\).*\n\1.*/\1/' -e 'ta' >prefix
|
||||
@TEST-EXEC: cat loaded_scripts.log.tmp | sed "s#`cat prefix`#./#g" | sort >init-default.bro
|
||||
@TEST-EXEC: diff -u "all scripts found" init-default.bro 1>&2
|
Loading…
Add table
Add a link
Reference in a new issue