mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Rename all BRO-prefixed environment variables
For backward compatibility when reading values, we first check the ZEEK-prefixed value, and if not set, then check the corresponding BRO-prefixed value.
This commit is contained in:
parent
d6096b1618
commit
1a74516db1
105 changed files with 330 additions and 274 deletions
|
@ -9,7 +9,7 @@
|
|||
# additional path, but there's currently a problem in btest with using
|
||||
# %DIR after TEST-START-NEXT.
|
||||
#
|
||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b input.zeek >output
|
||||
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b input.zeek >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@TEST-START-FILE subdir/input.data
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# an input file uses an absolute-path source.
|
||||
#
|
||||
# @TEST-EXEC: cat %INPUT | sed "s|@path_prefix@|$PWD|" >input.zeek
|
||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b input.zeek >output
|
||||
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b input.zeek >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@TEST-START-FILE input.data
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# These tests verify that when setting neither InputAscii::path_prefix
|
||||
# nor InputBinary::path_prefix, Zeek correctly locates local input files.
|
||||
#
|
||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b %INPUT >output
|
||||
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@TEST-START-FILE input.data
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# from the current working directory.
|
||||
#
|
||||
# @TEST-EXEC: mkdir -p alternative
|
||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b %INPUT >output
|
||||
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/input/path-prefix zeek -b %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@TEST-START-FILE alternative/input.data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue