mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -42,13 +42,13 @@ set(BRO_PLUGIN_INSTALL_PATH ${ZEEK_ROOT_DIR}/lib/bro/plugins CACHE STRING "Insta
|
||||||
configure_file(zeek-path-dev.in ${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev)
|
configure_file(zeek-path-dev.in ${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev)
|
||||||
|
|
||||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev.sh
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev.sh
|
||||||
"export BROPATH=`${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev`\n"
|
"export ZEEKPATH=`${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev`\n"
|
||||||
"export BRO_PLUGIN_PATH=\"${CMAKE_CURRENT_BINARY_DIR}/src\":${BRO_PLUGIN_PATH}\n"
|
"export ZEEK_PLUGIN_PATH=\"${CMAKE_CURRENT_BINARY_DIR}/src\":${ZEEK_PLUGIN_PATH}\n"
|
||||||
"export PATH=\"${CMAKE_CURRENT_BINARY_DIR}/src\":$PATH\n")
|
"export PATH=\"${CMAKE_CURRENT_BINARY_DIR}/src\":$PATH\n")
|
||||||
|
|
||||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev.csh
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev.csh
|
||||||
"setenv BROPATH `${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev`\n"
|
"setenv ZEEKPATH `${CMAKE_CURRENT_BINARY_DIR}/zeek-path-dev`\n"
|
||||||
"setenv BRO_PLUGIN_PATH \"${CMAKE_CURRENT_BINARY_DIR}/src\":${BRO_PLUGIN_PATH}\n"
|
"setenv ZEEK_PLUGIN_PATH \"${CMAKE_CURRENT_BINARY_DIR}/src\":${ZEEK_PLUGIN_PATH}\n"
|
||||||
"setenv PATH \"${CMAKE_CURRENT_BINARY_DIR}/src\":$PATH\n")
|
"setenv PATH \"${CMAKE_CURRENT_BINARY_DIR}/src\":$PATH\n")
|
||||||
|
|
||||||
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" VERSION LIMIT_COUNT 1)
|
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" VERSION LIMIT_COUNT 1)
|
||||||
|
|
18
man/zeek.8
18
man/zeek.8
|
@ -122,31 +122,31 @@ show leaks
|
||||||
record heap
|
record heap
|
||||||
.SH ENVIRONMENT
|
.SH ENVIRONMENT
|
||||||
.TP
|
.TP
|
||||||
.B BROPATH
|
.B ZEEKPATH
|
||||||
file search path
|
file search path
|
||||||
.TP
|
.TP
|
||||||
.B BRO_PLUGIN_PATH
|
.B ZEEK_PLUGIN_PATH
|
||||||
plugin search path
|
plugin search path
|
||||||
.TP
|
.TP
|
||||||
.B BRO_PLUGIN_ACTIVATE
|
.B ZEEK_PLUGIN_ACTIVATE
|
||||||
plugins to always activate
|
plugins to always activate
|
||||||
.TP
|
.TP
|
||||||
.B BRO_PREFIXES
|
.B ZEEK_PREFIXES
|
||||||
prefix list
|
prefix list
|
||||||
.TP
|
.TP
|
||||||
.B BRO_DNS_FAKE
|
.B ZEEK_DNS_FAKE
|
||||||
disable DNS lookups
|
disable DNS lookups
|
||||||
.TP
|
.TP
|
||||||
.B BRO_SEED_FILE
|
.B ZEEK_SEED_FILE
|
||||||
file to load seeds from
|
file to load seeds from
|
||||||
.TP
|
.TP
|
||||||
.B BRO_LOG_SUFFIX
|
.B ZEEK_LOG_SUFFIX
|
||||||
ASCII log file extension
|
ASCII log file extension
|
||||||
.TP
|
.TP
|
||||||
.B BRO_PROFILER_FILE
|
.B ZEEK_PROFILER_FILE
|
||||||
Output file for script execution statistics
|
Output file for script execution statistics
|
||||||
.TP
|
.TP
|
||||||
.B BRO_DISABLE_BROXYGEN
|
.B ZEEK_DISABLE_ZEEKYGEN
|
||||||
Disable Zeekygen (Broxygen) documentation support
|
Disable Zeekygen (Broxygen) documentation support
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
.B zeek
|
.B zeek
|
||||||
|
|
|
@ -8,7 +8,7 @@ export {
|
||||||
const default_port = 9999/tcp &redef;
|
const default_port = 9999/tcp &redef;
|
||||||
|
|
||||||
## Default interval to retry listening on a port if it's currently in
|
## Default interval to retry listening on a port if it's currently in
|
||||||
## use already. Use of the BRO_DEFAULT_LISTEN_RETRY environment variable
|
## use already. Use of the ZEEK_DEFAULT_LISTEN_RETRY environment variable
|
||||||
## (set as a number of seconds) will override this option and also
|
## (set as a number of seconds) will override this option and also
|
||||||
## any values given to :zeek:see:`Broker::listen`.
|
## any values given to :zeek:see:`Broker::listen`.
|
||||||
const default_listen_retry = 30sec &redef;
|
const default_listen_retry = 30sec &redef;
|
||||||
|
@ -16,11 +16,11 @@ export {
|
||||||
## Default address on which to listen.
|
## Default address on which to listen.
|
||||||
##
|
##
|
||||||
## .. zeek:see:: Broker::listen
|
## .. zeek:see:: Broker::listen
|
||||||
const default_listen_address = getenv("BRO_DEFAULT_LISTEN_ADDRESS") &redef;
|
const default_listen_address = getenv("ZEEK_DEFAULT_LISTEN_ADDRESS") != "" ? getenv("ZEEK_DEFAULT_LISTEN_ADDRESS") : getenv("BRO_DEFAULT_LISTEN_ADDRESS") &redef;
|
||||||
|
|
||||||
## Default interval to retry connecting to a peer if it cannot be made to
|
## Default interval to retry connecting to a peer if it cannot be made to
|
||||||
## work initially, or if it ever becomes disconnected. Use of the
|
## work initially, or if it ever becomes disconnected. Use of the
|
||||||
## BRO_DEFAULT_CONNECT_RETRY environment variable (set as number of
|
## ZEEK_DEFAULT_CONNECT_RETRY environment variable (set as number of
|
||||||
## seconds) will override this option and also any values given to
|
## seconds) will override this option and also any values given to
|
||||||
## :zeek:see:`Broker::peer`.
|
## :zeek:see:`Broker::peer`.
|
||||||
const default_connect_retry = 30sec &redef;
|
const default_connect_retry = 30sec &redef;
|
||||||
|
@ -70,7 +70,7 @@ export {
|
||||||
const log_batch_interval = 1sec &redef;
|
const log_batch_interval = 1sec &redef;
|
||||||
|
|
||||||
## Max number of threads to use for Broker/CAF functionality. The
|
## Max number of threads to use for Broker/CAF functionality. The
|
||||||
## BRO_BROKER_MAX_THREADS environment variable overrides this setting.
|
## ZEEK_BROKER_MAX_THREADS environment variable overrides this setting.
|
||||||
const max_threads = 1 &redef;
|
const max_threads = 1 &redef;
|
||||||
|
|
||||||
## Interval of time for under-utilized Broker/CAF threads to sleep
|
## Interval of time for under-utilized Broker/CAF threads to sleep
|
||||||
|
@ -235,7 +235,7 @@ export {
|
||||||
##
|
##
|
||||||
## retry: If non-zero, retries listening in regular intervals if the port cannot be
|
## retry: If non-zero, retries listening in regular intervals if the port cannot be
|
||||||
## acquired immediately. 0 disables retries. If the
|
## acquired immediately. 0 disables retries. If the
|
||||||
## BRO_DEFAULT_LISTEN_RETRY environment variable is set (as number
|
## ZEEK_DEFAULT_LISTEN_RETRY environment variable is set (as number
|
||||||
## of seconds), it overrides any value given here.
|
## of seconds), it overrides any value given here.
|
||||||
##
|
##
|
||||||
## Returns: the bound port or 0/? on failure.
|
## Returns: the bound port or 0/? on failure.
|
||||||
|
@ -253,7 +253,7 @@ export {
|
||||||
## retry: an interval at which to retry establishing the
|
## retry: an interval at which to retry establishing the
|
||||||
## connection with the remote peer if it cannot be made initially, or
|
## connection with the remote peer if it cannot be made initially, or
|
||||||
## if it ever becomes disconnected. If the
|
## if it ever becomes disconnected. If the
|
||||||
## BRO_DEFAULT_CONNECT_RETRY environment variable is set (as number
|
## ZEEK_DEFAULT_CONNECT_RETRY environment variable is set (as number
|
||||||
## of seconds), it overrides any value given here.
|
## of seconds), it overrides any value given here.
|
||||||
##
|
##
|
||||||
## Returns: true if it's possible to try connecting with the peer and
|
## Returns: true if it's possible to try connecting with the peer and
|
||||||
|
@ -379,7 +379,9 @@ function listen(a: string, p: port, retry: interval): port
|
||||||
|
|
||||||
if ( bound == 0/tcp )
|
if ( bound == 0/tcp )
|
||||||
{
|
{
|
||||||
local e = getenv("BRO_DEFAULT_LISTEN_RETRY");
|
local e = getenv("ZEEK_DEFAULT_LISTEN_RETRY");
|
||||||
|
if ( e == "" )
|
||||||
|
e = getenv("BRO_DEFAULT_LISTEN_RETRY");
|
||||||
|
|
||||||
if ( e != "" )
|
if ( e != "" )
|
||||||
retry = double_to_interval(to_double(e));
|
retry = double_to_interval(to_double(e));
|
||||||
|
|
|
@ -16,7 +16,7 @@ redef Broker::log_topic = Cluster::rr_log_topic;
|
||||||
|
|
||||||
# If this script isn't found anywhere, the cluster bombs out.
|
# If this script isn't found anywhere, the cluster bombs out.
|
||||||
# Loading the cluster framework requires that a script by this name exists
|
# Loading the cluster framework requires that a script by this name exists
|
||||||
# somewhere in the BROPATH. The only thing in the file should be the
|
# somewhere in the ZEEKPATH. The only thing in the file should be the
|
||||||
# cluster definition in the :zeek:id:`Cluster::nodes` variable.
|
# cluster definition in the :zeek:id:`Cluster::nodes` variable.
|
||||||
@load cluster-layout
|
@load cluster-layout
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@ export {
|
||||||
global worker_count: count = 0;
|
global worker_count: count = 0;
|
||||||
|
|
||||||
## The cluster layout definition. This should be placed into a filter
|
## The cluster layout definition. This should be placed into a filter
|
||||||
## named cluster-layout.zeek somewhere in the BROPATH. It will be
|
## named cluster-layout.zeek somewhere in the ZEEKPATH. It will be
|
||||||
## automatically loaded if the CLUSTER_NODE environment variable is set.
|
## automatically loaded if the CLUSTER_NODE environment variable is set.
|
||||||
## Note that ZeekControl handles all of this automatically.
|
## Note that ZeekControl handles all of this automatically.
|
||||||
## The table is typically indexed by node names/labels (e.g. "manager"
|
## The table is typically indexed by node names/labels (e.g. "manager"
|
||||||
|
@ -210,8 +210,8 @@ export {
|
||||||
const node = getenv("CLUSTER_NODE") &redef;
|
const node = getenv("CLUSTER_NODE") &redef;
|
||||||
|
|
||||||
## Interval for retrying failed connections between cluster nodes.
|
## Interval for retrying failed connections between cluster nodes.
|
||||||
## If set, the BRO_DEFAULT_CONNECT_RETRY (given in number of seconds)
|
## If set, the ZEEK_DEFAULT_CONNECT_RETRY (given in number of seconds)
|
||||||
## overrides this option.
|
## environment variable overrides this option.
|
||||||
const retry_interval = 1min &redef;
|
const retry_interval = 1min &redef;
|
||||||
|
|
||||||
## When using broker-enabled cluster framework, nodes broadcast this event
|
## When using broker-enabled cluster framework, nodes broadcast this event
|
||||||
|
|
|
@ -81,10 +81,14 @@ function default_rotation_postprocessor_func(info: Log::RotationInfo) : bool
|
||||||
{
|
{
|
||||||
# If the filename has a ".gz" extension, then keep it.
|
# If the filename has a ".gz" extension, then keep it.
|
||||||
local gz = info$fname[-3:] == ".gz" ? ".gz" : "";
|
local gz = info$fname[-3:] == ".gz" ? ".gz" : "";
|
||||||
local bls = getenv("BRO_LOG_SUFFIX");
|
local bls = getenv("ZEEK_LOG_SUFFIX");
|
||||||
|
|
||||||
if ( bls == "" )
|
if ( bls == "" )
|
||||||
bls = "log";
|
{
|
||||||
|
bls = getenv("BRO_LOG_SUFFIX");
|
||||||
|
if ( bls == "" )
|
||||||
|
bls = "log";
|
||||||
|
}
|
||||||
|
|
||||||
# Move file to name including both opening and closing time.
|
# Move file to name including both opening and closing time.
|
||||||
local dst = fmt("%s.%s.%s%s", info$path,
|
local dst = fmt("%s.%s.%s%s", info$path,
|
||||||
|
|
|
@ -552,7 +552,7 @@ function is_being_suppressed(n: Notice::Info): bool
|
||||||
}
|
}
|
||||||
|
|
||||||
# Executes a script with all of the notice fields put into the
|
# Executes a script with all of the notice fields put into the
|
||||||
# new process' environment as "BRO_ARG_<field>" variables.
|
# new process' environment as "ZEEK_ARG_<field>" variables.
|
||||||
function execute_with_notice(cmd: string, n: Notice::Info)
|
function execute_with_notice(cmd: string, n: Notice::Info)
|
||||||
{
|
{
|
||||||
# TODO: fix system calls
|
# TODO: fix system calls
|
||||||
|
|
|
@ -1806,7 +1806,14 @@ event net_done(t: time) { done_with_network = T; }
|
||||||
|
|
||||||
function log_file_name(tag: string): string
|
function log_file_name(tag: string): string
|
||||||
{
|
{
|
||||||
local suffix = getenv("BRO_LOG_SUFFIX") == "" ? "log" : getenv("BRO_LOG_SUFFIX");
|
local suffix = getenv("ZEEK_LOG_SUFFIX");
|
||||||
|
if ( suffix == "" )
|
||||||
|
{
|
||||||
|
suffix = getenv("BRO_LOG_SUFFIX");
|
||||||
|
if ( suffix == "" )
|
||||||
|
suffix = "log";
|
||||||
|
}
|
||||||
|
|
||||||
return fmt("%s.%s", tag, suffix);
|
return fmt("%s.%s", tag, suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1839,11 +1846,11 @@ function add_signature_file(sold: string, snew: string): string
|
||||||
|
|
||||||
## Signature files to read. Use ``redef signature_files += "foo.sig"`` to
|
## Signature files to read. Use ``redef signature_files += "foo.sig"`` to
|
||||||
## extend. Signature files added this way will be searched relative to
|
## extend. Signature files added this way will be searched relative to
|
||||||
## ``BROPATH``. Using the ``@load-sigs`` directive instead is preferred
|
## ``ZEEKPATH``. Using the ``@load-sigs`` directive instead is preferred
|
||||||
## since that can search paths relative to the current script.
|
## since that can search paths relative to the current script.
|
||||||
global signature_files = "" &add_func = add_signature_file;
|
global signature_files = "" &add_func = add_signature_file;
|
||||||
|
|
||||||
## ``p0f`` fingerprint file to use. Will be searched relative to ``BROPATH``.
|
## ``p0f`` fingerprint file to use. Will be searched relative to ``ZEEKPATH``.
|
||||||
const passive_fingerprint_file = "base/misc/p0f.fp" &redef;
|
const passive_fingerprint_file = "base/misc/p0f.fp" &redef;
|
||||||
|
|
||||||
## Definition of "secondary filters". A secondary filter is a BPF filter given
|
## Definition of "secondary filters". A secondary filter is a BPF filter given
|
||||||
|
|
|
@ -17,9 +17,13 @@ Brofiler::~Brofiler()
|
||||||
|
|
||||||
bool Brofiler::ReadStats()
|
bool Brofiler::ReadStats()
|
||||||
{
|
{
|
||||||
char* bf = getenv("BRO_PROFILER_FILE");
|
char* bf = getenv("ZEEK_PROFILER_FILE");
|
||||||
if ( ! bf )
|
if ( ! bf )
|
||||||
return false;
|
{
|
||||||
|
bf = getenv("BRO_PROFILER_FILE");
|
||||||
|
if ( ! bf )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
FILE* f = fopen(bf, "r");
|
FILE* f = fopen(bf, "r");
|
||||||
if ( ! f )
|
if ( ! f )
|
||||||
|
@ -47,14 +51,19 @@ bool Brofiler::ReadStats()
|
||||||
|
|
||||||
bool Brofiler::WriteStats()
|
bool Brofiler::WriteStats()
|
||||||
{
|
{
|
||||||
char* bf = getenv("BRO_PROFILER_FILE");
|
char* bf = getenv("ZEEK_PROFILER_FILE");
|
||||||
if ( ! bf ) return false;
|
if ( ! bf )
|
||||||
|
{
|
||||||
|
bf = getenv("BRO_PROFILER_FILE");
|
||||||
|
if ( ! bf )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
SafeDirname dirname{bf};
|
SafeDirname dirname{bf};
|
||||||
|
|
||||||
if ( ! ensure_intermediate_dirs(dirname.result.data()) )
|
if ( ! ensure_intermediate_dirs(dirname.result.data()) )
|
||||||
{
|
{
|
||||||
reporter->Error("Failed to open BRO_PROFILER_FILE destination '%s' for writing", bf);
|
reporter->Error("Failed to open ZEEK_PROFILER_FILE destination '%s' for writing", bf);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +78,7 @@ bool Brofiler::WriteStats()
|
||||||
|
|
||||||
if ( fd == -1 )
|
if ( fd == -1 )
|
||||||
{
|
{
|
||||||
reporter->Error("Failed to generate unique file name from BRO_PROFILER_FILE: %s", bf);
|
reporter->Error("Failed to generate unique file name from ZEEK_PROFILER_FILE: %s", bf);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
f = fdopen(fd, "w");
|
f = fdopen(fd, "w");
|
||||||
|
@ -81,7 +90,7 @@ bool Brofiler::WriteStats()
|
||||||
|
|
||||||
if ( ! f )
|
if ( ! f )
|
||||||
{
|
{
|
||||||
reporter->Error("Failed to open BRO_PROFILER_FILE destination '%s' for writing", bf);
|
reporter->Error("Failed to open ZEEK_PROFILER_FILE destination '%s' for writing", bf);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Imports Bro script Stmt usage information from file pointed to by
|
* Imports Bro script Stmt usage information from file pointed to by
|
||||||
* environment variable BRO_PROFILER_FILE.
|
* environment variable ZEEK_PROFILER_FILE.
|
||||||
*
|
*
|
||||||
* @return: true if usage info was read, otherwise false.
|
* @return: true if usage info was read, otherwise false.
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Combines usage stats from current run with any read from ReadStats(),
|
* Combines usage stats from current run with any read from ReadStats(),
|
||||||
* then writes information to file pointed to by environment variable
|
* then writes information to file pointed to by environment variable
|
||||||
* BRO_PROFILER_FILE. If the value of that env. variable ends with
|
* ZEEK_PROFILER_FILE. If the value of that env. variable ends with
|
||||||
* ".XXXXXX" (exactly 6 X's), then it is first passed through mkstemp
|
* ".XXXXXX" (exactly 6 X's), then it is first passed through mkstemp
|
||||||
* to get a unique file.
|
* to get a unique file.
|
||||||
*
|
*
|
||||||
|
|
|
@ -412,7 +412,7 @@ static bool prepare_environment(TableVal* tbl, bool set)
|
||||||
|
|
||||||
char* tmp = copy_string(key->AsString()->CheckString());
|
char* tmp = copy_string(key->AsString()->CheckString());
|
||||||
to_upper(tmp);
|
to_upper(tmp);
|
||||||
const char* var = fmt("BRO_ARG_%s", tmp);
|
const char* var = fmt("ZEEK_ARG_%s", tmp);
|
||||||
delete [] tmp;
|
delete [] tmp;
|
||||||
|
|
||||||
if ( set )
|
if ( set )
|
||||||
|
@ -468,7 +468,7 @@ function system%(str: string%): int
|
||||||
##
|
##
|
||||||
## env: A :zeek:type:`table` with the environment variables in the form
|
## env: A :zeek:type:`table` with the environment variables in the form
|
||||||
## of key-value pairs. Each specified environment variable name
|
## of key-value pairs. Each specified environment variable name
|
||||||
## will be automatically prepended with ``BRO_ARG_``.
|
## will be automatically prepended with ``ZEEK_ARG_``.
|
||||||
##
|
##
|
||||||
## Returns: The return value from the OS ``system`` function.
|
## Returns: The return value from the OS ``system`` function.
|
||||||
##
|
##
|
||||||
|
|
|
@ -177,7 +177,9 @@ void Manager::InitPostScript()
|
||||||
|
|
||||||
BrokerConfig config{std::move(options)};
|
BrokerConfig config{std::move(options)};
|
||||||
|
|
||||||
auto max_threads_env = getenv("BRO_BROKER_MAX_THREADS");
|
auto max_threads_env = getenv("ZEEK_BROKER_MAX_THREADS");
|
||||||
|
if ( ! max_threads_env )
|
||||||
|
max_threads_env = getenv("BRO_BROKER_MAX_THREADS");
|
||||||
|
|
||||||
if ( max_threads_env )
|
if ( max_threads_env )
|
||||||
config.set("scheduler.max-threads", atoi(max_threads_env));
|
config.set("scheduler.max-threads", atoi(max_threads_env));
|
||||||
|
@ -303,7 +305,9 @@ void Manager::Peer(const string& addr, uint16_t port, double retry)
|
||||||
DBG_LOG(DBG_BROKER, "Starting to peer with %s:%" PRIu16,
|
DBG_LOG(DBG_BROKER, "Starting to peer with %s:%" PRIu16,
|
||||||
addr.c_str(), port);
|
addr.c_str(), port);
|
||||||
|
|
||||||
auto e = getenv("BRO_DEFAULT_CONNECT_RETRY");
|
auto e = getenv("ZEEK_DEFAULT_CONNECT_RETRY");
|
||||||
|
if ( ! e )
|
||||||
|
e = getenv("BRO_DEFAULT_CONNECT_RETRY");
|
||||||
|
|
||||||
if ( e )
|
if ( e )
|
||||||
retry = atoi(e);
|
retry = atoi(e);
|
||||||
|
|
|
@ -102,7 +102,7 @@ public:
|
||||||
* @param addr an address to connect to, e.g. "localhost" or "127.0.0.1".
|
* @param addr an address to connect to, e.g. "localhost" or "127.0.0.1".
|
||||||
* @param port the TCP port on which the remote side is listening.
|
* @param port the TCP port on which the remote side is listening.
|
||||||
* @param retry If non-zero, the time after which to retry if
|
* @param retry If non-zero, the time after which to retry if
|
||||||
* connection cannot be established, or breaks. BRO_DEFAULT_CONNECT_RETRY
|
* connection cannot be established, or breaks. ZEEK_DEFAULT_CONNECT_RETRY
|
||||||
* environment variable overrides this value.
|
* environment variable overrides this value.
|
||||||
*/
|
*/
|
||||||
void Peer(const std::string& addr, uint16_t port, double retry = 10.0);
|
void Peer(const std::string& addr, uint16_t port, double retry = 10.0);
|
||||||
|
|
|
@ -444,9 +444,13 @@ bool Ascii::DoHeartbeat(double network_time, double current_time)
|
||||||
|
|
||||||
string Ascii::LogExt()
|
string Ascii::LogExt()
|
||||||
{
|
{
|
||||||
const char* ext = getenv("BRO_LOG_SUFFIX");
|
const char* ext = getenv("ZEEK_LOG_SUFFIX");
|
||||||
if ( ! ext )
|
if ( ! ext )
|
||||||
ext = "log";
|
{
|
||||||
|
ext = getenv("BRO_LOG_SUFFIX");
|
||||||
|
if ( ! ext )
|
||||||
|
ext = "log";
|
||||||
|
}
|
||||||
|
|
||||||
return ext;
|
return ext;
|
||||||
}
|
}
|
||||||
|
|
39
src/main.cc
39
src/main.cc
|
@ -145,12 +145,12 @@ const char* bro_version()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* bro_dns_fake()
|
bool bro_dns_fake()
|
||||||
{
|
{
|
||||||
if ( ! getenv("BRO_DNS_FAKE") )
|
if ( getenv("ZEEK_DNS_FAKE") || getenv("BRO_DNS_FAKE") )
|
||||||
return "off";
|
return true;
|
||||||
else
|
else
|
||||||
return "on";
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void usage(int code = 1)
|
void usage(int code = 1)
|
||||||
|
@ -200,15 +200,15 @@ void usage(int code = 1)
|
||||||
fprintf(stderr, " -n|--idmef-dtd <idmef-msg.dtd> | specify path to IDMEF DTD file\n");
|
fprintf(stderr, " -n|--idmef-dtd <idmef-msg.dtd> | specify path to IDMEF DTD file\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(stderr, " $BROPATH | file search path (%s)\n", bro_path().c_str());
|
fprintf(stderr, " $ZEEKPATH | file search path (%s)\n", bro_path().c_str());
|
||||||
fprintf(stderr, " $BRO_PLUGIN_PATH | plugin search path (%s)\n", bro_plugin_path());
|
fprintf(stderr, " $ZEEK_PLUGIN_PATH | plugin search path (%s)\n", bro_plugin_path());
|
||||||
fprintf(stderr, " $BRO_PLUGIN_ACTIVATE | plugins to always activate (%s)\n", bro_plugin_activate());
|
fprintf(stderr, " $ZEEK_PLUGIN_ACTIVATE | plugins to always activate (%s)\n", bro_plugin_activate());
|
||||||
fprintf(stderr, " $BRO_PREFIXES | prefix list (%s)\n", bro_prefixes().c_str());
|
fprintf(stderr, " $ZEEK_PREFIXES | prefix list (%s)\n", bro_prefixes().c_str());
|
||||||
fprintf(stderr, " $BRO_DNS_FAKE | disable DNS lookups (%s)\n", bro_dns_fake());
|
fprintf(stderr, " $ZEEK_DNS_FAKE | disable DNS lookups (%s)\n", bro_dns_fake() ? "on" : "off");
|
||||||
fprintf(stderr, " $BRO_SEED_FILE | file to load seeds from (not set)\n");
|
fprintf(stderr, " $ZEEK_SEED_FILE | file to load seeds from (not set)\n");
|
||||||
fprintf(stderr, " $BRO_LOG_SUFFIX | ASCII log file extension (.%s)\n", logging::writer::Ascii::LogExt().c_str());
|
fprintf(stderr, " $ZEEK_LOG_SUFFIX | ASCII log file extension (.%s)\n", logging::writer::Ascii::LogExt().c_str());
|
||||||
fprintf(stderr, " $BRO_PROFILER_FILE | Output file for script execution statistics (not set)\n");
|
fprintf(stderr, " $ZEEK_PROFILER_FILE | Output file for script execution statistics (not set)\n");
|
||||||
fprintf(stderr, " $BRO_DISABLE_BROXYGEN | Disable Zeekygen documentation support (%s)\n", getenv("BRO_DISABLE_BROXYGEN") ? "set" : "not set");
|
fprintf(stderr, " $ZEEK_DISABLE_ZEEKYGEN | Disable Zeekygen documentation support (%s)\n", getenv("ZEEK_DISABLE_ZEEKYGEN") || getenv("BRO_DISABLE_BROXYGEN") ? "set" : "not set");
|
||||||
fprintf(stderr, " $ZEEK_DNS_RESOLVER | IPv4/IPv6 address of DNS resolver to use (%s)\n", getenv("ZEEK_DNS_RESOLVER") ? getenv("ZEEK_DNS_RESOLVER") : "not set, will use first IPv4 address from /etc/resolv.conf");
|
fprintf(stderr, " $ZEEK_DNS_RESOLVER | IPv4/IPv6 address of DNS resolver to use (%s)\n", getenv("ZEEK_DNS_RESOLVER") ? getenv("ZEEK_DNS_RESOLVER") : "not set, will use first IPv4 address from /etc/resolv.conf");
|
||||||
|
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
@ -427,7 +427,11 @@ int main(int argc, char** argv)
|
||||||
char* bst_file = 0;
|
char* bst_file = 0;
|
||||||
char* id_name = 0;
|
char* id_name = 0;
|
||||||
char* events_file = 0;
|
char* events_file = 0;
|
||||||
char* seed_load_file = getenv("BRO_SEED_FILE");
|
|
||||||
|
char* seed_load_file = getenv("ZEEK_SEED_FILE");
|
||||||
|
if ( ! seed_load_file )
|
||||||
|
seed_load_file = getenv("BRO_SEED_FILE");
|
||||||
|
|
||||||
char* seed_save_file = 0;
|
char* seed_save_file = 0;
|
||||||
char* user_pcap_filter = 0;
|
char* user_pcap_filter = 0;
|
||||||
char* debug_streams = 0;
|
char* debug_streams = 0;
|
||||||
|
@ -488,7 +492,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
enum DNS_MgrMode dns_type = DNS_DEFAULT;
|
enum DNS_MgrMode dns_type = DNS_DEFAULT;
|
||||||
|
|
||||||
dns_type = getenv("BRO_DNS_FAKE") ? DNS_FAKE : DNS_DEFAULT;
|
dns_type = bro_dns_fake() ? DNS_FAKE : DNS_DEFAULT;
|
||||||
|
|
||||||
RETSIGTYPE (*oldhandler)(int);
|
RETSIGTYPE (*oldhandler)(int);
|
||||||
|
|
||||||
|
@ -496,7 +500,10 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
prefixes.append(strdup("")); // "" = "no prefix"
|
prefixes.append(strdup("")); // "" = "no prefix"
|
||||||
|
|
||||||
char* p = getenv("BRO_PREFIXES");
|
char* p = getenv("ZEEK_PREFIXES");
|
||||||
|
if ( ! p )
|
||||||
|
p = getenv("BRO_PREFIXES");
|
||||||
|
|
||||||
if ( p )
|
if ( p )
|
||||||
add_to_name_list(p, ':', prefixes);
|
add_to_name_list(p, ':', prefixes);
|
||||||
|
|
||||||
|
|
|
@ -174,12 +174,12 @@ bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_
|
||||||
|
|
||||||
DBG_LOG(DBG_PLUGINS, "Activating plugin %s", name.c_str());
|
DBG_LOG(DBG_PLUGINS, "Activating plugin %s", name.c_str());
|
||||||
|
|
||||||
// Add the "scripts" and "bif" directories to BROPATH.
|
// Add the "scripts" and "bif" directories to ZEEKPATH.
|
||||||
std::string scripts = dir + "scripts";
|
std::string scripts = dir + "scripts";
|
||||||
|
|
||||||
if ( is_dir(scripts) )
|
if ( is_dir(scripts) )
|
||||||
{
|
{
|
||||||
DBG_LOG(DBG_PLUGINS, " Adding %s to BROPATH", scripts.c_str());
|
DBG_LOG(DBG_PLUGINS, " Adding %s to ZEEKPATH", scripts.c_str());
|
||||||
add_to_bro_path(scripts);
|
add_to_bro_path(scripts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Activates a plugin that SearchDynamicPlugins() has previously discovered.
|
* Activates a plugin that SearchDynamicPlugins() has previously discovered.
|
||||||
* Activating a plugin involves loading its dynamic module, making its
|
* Activating a plugin involves loading its dynamic module, making its
|
||||||
* bifs available, and adding its script paths to BROPATH.
|
* bifs available, and adding its script paths to ZEEKPATH.
|
||||||
*
|
*
|
||||||
* @param name The name of the plugin, as found previously by
|
* @param name The name of the plugin, as found previously by
|
||||||
* SearchPlugin().
|
* SearchPlugin().
|
||||||
|
@ -92,7 +92,7 @@ public:
|
||||||
*
|
*
|
||||||
* @param all If true, activates all plugins that are found. If false,
|
* @param all If true, activates all plugins that are found. If false,
|
||||||
* activates only those that should always be activated unconditionally,
|
* activates only those that should always be activated unconditionally,
|
||||||
* as specified via the BRO_PLUGIN_ACTIVATE enviroment variable. In other
|
* as specified via the ZEEK_PLUGIN_ACTIVATE enviroment variable. In other
|
||||||
* words, it's \c true in standard mode and \c false in bare mode.
|
* words, it's \c true in standard mode and \c false in bare mode.
|
||||||
*
|
*
|
||||||
* @return True if all plugins have been loaded successfully. If one
|
* @return True if all plugins have been loaded successfully. If one
|
||||||
|
|
|
@ -927,8 +927,8 @@ int yywrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
// For each file scanned so far, and for each @prefix, look for a
|
// For each file scanned so far, and for each @prefix, look for a
|
||||||
// prefixed and flattened version of the loaded file in BROPATH. The
|
// prefixed and flattened version of the loaded file in ZEEKPATH. The
|
||||||
// flattening involves taking the path in BROPATH in which the
|
// flattening involves taking the path in ZEEKPATH in which the
|
||||||
// scanned file lives and replacing '/' path separators with a '.' If
|
// scanned file lives and replacing '/' path separators with a '.' If
|
||||||
// the scanned file is "__load__.zeek", that part of the flattened
|
// the scanned file is "__load__.zeek", that part of the flattened
|
||||||
// file name is discarded. If the prefix is non-empty, it gets placed
|
// file name is discarded. If the prefix is non-empty, it gets placed
|
||||||
|
|
33
src/util.cc
33
src/util.cc
|
@ -958,10 +958,15 @@ const std::string& bro_path()
|
||||||
{
|
{
|
||||||
if ( bro_path_value.empty() )
|
if ( bro_path_value.empty() )
|
||||||
{
|
{
|
||||||
const char* path = getenv("BROPATH");
|
const char* path = getenv("ZEEKPATH");
|
||||||
|
|
||||||
if ( ! path )
|
if ( ! path )
|
||||||
path = DEFAULT_ZEEKPATH;
|
{
|
||||||
|
path = getenv("BROPATH");
|
||||||
|
|
||||||
|
if ( ! path )
|
||||||
|
path = DEFAULT_ZEEKPATH;
|
||||||
|
}
|
||||||
|
|
||||||
bro_path_value = path;
|
bro_path_value = path;
|
||||||
}
|
}
|
||||||
|
@ -979,20 +984,30 @@ extern void add_to_bro_path(const string& dir)
|
||||||
|
|
||||||
const char* bro_plugin_path()
|
const char* bro_plugin_path()
|
||||||
{
|
{
|
||||||
const char* path = getenv("BRO_PLUGIN_PATH");
|
const char* path = getenv("ZEEK_PLUGIN_PATH");
|
||||||
|
|
||||||
if ( ! path )
|
if ( ! path )
|
||||||
path = BRO_PLUGIN_INSTALL_PATH;
|
{
|
||||||
|
path = getenv("BRO_PLUGIN_PATH");
|
||||||
|
|
||||||
|
if ( ! path )
|
||||||
|
path = BRO_PLUGIN_INSTALL_PATH;
|
||||||
|
}
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* bro_plugin_activate()
|
const char* bro_plugin_activate()
|
||||||
{
|
{
|
||||||
const char* names = getenv("BRO_PLUGIN_ACTIVATE");
|
const char* names = getenv("ZEEK_PLUGIN_ACTIVATE");
|
||||||
|
|
||||||
if ( ! names )
|
if ( ! names )
|
||||||
names = "";
|
{
|
||||||
|
names = getenv("BRO_PLUGIN_ACTIVATE");
|
||||||
|
|
||||||
|
if ( ! names )
|
||||||
|
names = "";
|
||||||
|
}
|
||||||
|
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
|
@ -1388,7 +1403,11 @@ FILE* rotate_file(const char* name, RecordVal* rotate_info)
|
||||||
|
|
||||||
const char* log_file_name(const char* tag)
|
const char* log_file_name(const char* tag)
|
||||||
{
|
{
|
||||||
const char* env = getenv("BRO_LOG_SUFFIX");
|
const char* env = getenv("ZEEK_LOG_SUFFIX");
|
||||||
|
|
||||||
|
if ( ! env )
|
||||||
|
env = getenv("BRO_LOG_SUFFIX");
|
||||||
|
|
||||||
return fmt("%s.%s", tag, (env ? env : "log"));
|
return fmt("%s.%s", tag, (env ? env : "log"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -326,9 +326,9 @@ std::string flatten_script_name(const std::string& name,
|
||||||
std::string normalize_path(const std::string& path);
|
std::string normalize_path(const std::string& path);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strip the BROPATH component from a path.
|
* Strip the ZEEKPATH component from a path.
|
||||||
* @param path A file/directory path that may be within a BROPATH component.
|
* @param path A file/directory path that may be within a ZEEKPATH component.
|
||||||
* @return *path* minus the common BROPATH component (if any) removed.
|
* @return *path* minus the common ZEEKPATH component (if any) removed.
|
||||||
*/
|
*/
|
||||||
std::string without_bropath_component(const std::string& path);
|
std::string without_bropath_component(const std::string& path);
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ Manager::Manager(const string& arg_config, const string& bro_command)
|
||||||
identifiers(), all_info(), last_identifier_seen(), incomplete_type(),
|
identifiers(), all_info(), last_identifier_seen(), incomplete_type(),
|
||||||
enum_mappings(), config(arg_config), bro_mtime()
|
enum_mappings(), config(arg_config), bro_mtime()
|
||||||
{
|
{
|
||||||
if ( getenv("BRO_DISABLE_BROXYGEN") )
|
if ( getenv("ZEEK_DISABLE_ZEEKYGEN") || getenv("BRO_DISABLE_BROXYGEN") )
|
||||||
disabled = true;
|
disabled = true;
|
||||||
|
|
||||||
// If running bro without the "-X" option, then we don't need bro_mtime.
|
// If running bro without the "-X" option, then we don't need bro_mtime.
|
||||||
|
|
|
@ -179,8 +179,8 @@ public:
|
||||||
{ return identifiers.GetInfo(name); }
|
{ return identifiers.GetInfo(name); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param name Name of a Bro script ("normalized" to be a path relative
|
* @param name Name of a Zeek script ("normalized" to be a path relative
|
||||||
* to a component within BROPATH).
|
* to a component within ZEEKPATH).
|
||||||
* @return a script info object associated with \a name or a null pointer
|
* @return a script info object associated with \a name or a null pointer
|
||||||
* if it's not a known script name.
|
* if it's not a known script name.
|
||||||
*/
|
*/
|
||||||
|
@ -188,8 +188,8 @@ public:
|
||||||
{ return scripts.GetInfo(name); }
|
{ return scripts.GetInfo(name); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param name Nmae of a Bro script package ("normalized" to be a path
|
* @param name Name of a Zeek script package ("normalized" to be a path
|
||||||
* relative to a component within BROPATH).
|
* relative to a component within ZEEKPATH).
|
||||||
* @return a package info object assocated with \a name or a null pointer
|
* @return a package info object assocated with \a name or a null pointer
|
||||||
* if it's not a known package name.
|
* if it's not a known package name.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
namespace zeekygen {
|
namespace zeekygen {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Information about a Bro script package.
|
* Information about a Zeek script package.
|
||||||
*/
|
*/
|
||||||
class PackageInfo : public Info {
|
class PackageInfo : public Info {
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ctor.
|
* Ctor.
|
||||||
* @param name The name of the Bro script package (relative path from a
|
* @param name The name of the Zeek script package (relative path from a
|
||||||
* component within BROPATH.
|
* component within ZEEKPATH).
|
||||||
*/
|
*/
|
||||||
explicit PackageInfo(const std::string& name);
|
explicit PackageInfo(const std::string& name);
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ctor.
|
* Ctor.
|
||||||
* @param name Name of script: a path relative to a component in BROPATH.
|
* @param name Name of script: a path relative to a component in ZEEKPATH.
|
||||||
* @param path Absolute path to the script.
|
* @param path Absolute path to the script.
|
||||||
*/
|
*/
|
||||||
ScriptInfo(const std::string& name, const std::string& path);
|
ScriptInfo(const std::string& name, const std::string& path);
|
||||||
|
@ -48,7 +48,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Register a dependency on another script.
|
* Register a dependency on another script.
|
||||||
* @param name Name of a script with this one @loads. This is the
|
* @param name Name of a script with this one @loads. This is the
|
||||||
* "normalized" name (a path relative to a component in BROPATH).
|
* "normalized" name (a path relative to a component in ZEEKPATH).
|
||||||
*/
|
*/
|
||||||
void AddDependency(const std::string& name)
|
void AddDependency(const std::string& name)
|
||||||
{ dependencies.insert(name); }
|
{ dependencies.insert(name); }
|
||||||
|
|
|
@ -471,7 +471,7 @@ void ScriptTarget::DoGenerate() const
|
||||||
if ( IsDir() )
|
if ( IsDir() )
|
||||||
{
|
{
|
||||||
// Target name is a dir, matching scripts are written within that dir
|
// Target name is a dir, matching scripts are written within that dir
|
||||||
// with a dir tree that parallels the script's BROPATH location.
|
// with a dir tree that parallels the script's ZEEKPATH location.
|
||||||
|
|
||||||
set<string> targets;
|
set<string> targets;
|
||||||
vector<string> dir_contents = dir_contents_recursive(Name());
|
vector<string> dir_contents = dir_contents_recursive(Name());
|
||||||
|
|
|
@ -294,7 +294,7 @@ public:
|
||||||
* @param name Output file name or directory. If it's a directory,
|
* @param name Output file name or directory. If it's a directory,
|
||||||
* then one document for each script that matches the pattern is written to
|
* then one document for each script that matches the pattern is written to
|
||||||
* the directory in a directory structure which mirrors the script's path
|
* the directory in a directory structure which mirrors the script's path
|
||||||
* relative to a component in BROPATH.
|
* relative to a component in ZEEKPATH.
|
||||||
* @param pattern Dependency pattern.
|
* @param pattern Dependency pattern.
|
||||||
*/
|
*/
|
||||||
ScriptTarget(const std::string& name, const std::string& pattern)
|
ScriptTarget(const std::string& name, const std::string& pattern)
|
||||||
|
|
|
@ -33,8 +33,8 @@ function get_identifier_comments%(name: string%): string
|
||||||
## Retrieve the Zeekygen-style summary comments (``##!``) associated with
|
## Retrieve the Zeekygen-style summary comments (``##!``) associated with
|
||||||
## a Bro script.
|
## a Bro script.
|
||||||
##
|
##
|
||||||
## name: the name of a Bro script. It must be a relative path to where
|
## name: the name of a Zeek script. It must be a relative path to where
|
||||||
## it is located within a particular component of BROPATH and use
|
## it is located within a particular component of ZEEKPATH and use
|
||||||
## the same file name extension/suffix as the actual file (e.g. ".zeek").
|
## the same file name extension/suffix as the actual file (e.g. ".zeek").
|
||||||
##
|
##
|
||||||
## Returns: summary comments associated with script with *name*. If
|
## Returns: summary comments associated with script with *name*. If
|
||||||
|
@ -52,8 +52,8 @@ function get_script_comments%(name: string%): string
|
||||||
|
|
||||||
## Retrieve the contents of a Bro script package's README file.
|
## Retrieve the contents of a Bro script package's README file.
|
||||||
##
|
##
|
||||||
## name: the name of a Bro script package. It must be a relative path
|
## name: the name of a Zeek script package. It must be a relative path
|
||||||
## to where it is located within a particular component of BROPATH.
|
## to where it is located within a particular component of ZEEKPATH.
|
||||||
##
|
##
|
||||||
## Returns: contents of the package's README file. If *name* is not a known
|
## Returns: contents of the package's README file. If *name* is not a known
|
||||||
## package, an empty string is returned.
|
## package, an empty string is returned.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Test the quality of HLL once by checking adding a large number of IP entries.
|
# Test the quality of HLL once by checking adding a large number of IP entries.
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: zeek -b %INPUT > out
|
# @TEST-EXEC: zeek -b %INPUT > out
|
||||||
# @TEST-EXEC: BRO_SEED_FILE="" zeek -b %INPUT > out2
|
# @TEST-EXEC: ZEEK_SEED_FILE="" zeek -b %INPUT > out2
|
||||||
# @TEST-EXEC: head -n1 out2 >> out
|
# @TEST-EXEC: head -n1 out2 >> out
|
||||||
# @TEST-EXEC: btest-diff out
|
# @TEST-EXEC: btest-diff out
|
||||||
|
|
||||||
|
|
|
@ -7,17 +7,17 @@ event zeek_init()
|
||||||
local vars: table[string] of string = { ["TESTBRO"] = "helloworld" };
|
local vars: table[string] of string = { ["TESTBRO"] = "helloworld" };
|
||||||
|
|
||||||
# make sure the env. variable is not set
|
# make sure the env. variable is not set
|
||||||
local myvar = getenv("BRO_ARG_TESTBRO");
|
local myvar = getenv("ZEEK_ARG_TESTBRO");
|
||||||
if ( |myvar| != 0 )
|
if ( |myvar| != 0 )
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
# check if command runs with the env. variable defined
|
# check if command runs with the env. variable defined
|
||||||
local a = system_env("echo $BRO_ARG_TESTBRO > testfile", vars);
|
local a = system_env("echo $ZEEK_ARG_TESTBRO > testfile", vars);
|
||||||
if ( a != 0 )
|
if ( a != 0 )
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
# make sure the env. variable is still not set
|
# make sure the env. variable is still not set
|
||||||
myvar = getenv("BRO_ARG_TESTBRO");
|
myvar = getenv("ZEEK_ARG_TESTBRO");
|
||||||
if ( |myvar| != 0 )
|
if ( |myvar| != 0 )
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: BRO_SEED_FILE= zeek -b %INPUT >out
|
# @TEST-EXEC: ZEEK_SEED_FILE= zeek -b %INPUT >out
|
||||||
# @TEST-EXEC: BRO_SEED_FILE= zeek -b %INPUT >>out
|
# @TEST-EXEC: ZEEK_SEED_FILE= zeek -b %INPUT >>out
|
||||||
# @TEST-EXEC: cat out | sort | uniq | wc -l | sed 's/ //g' >count
|
# @TEST-EXEC: cat out | sort | uniq | wc -l | sed 's/ //g' >count
|
||||||
# @TEST-EXEC: btest-diff count
|
# @TEST-EXEC: btest-diff count
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ IgnoreDirs = .svn CVS .tmp
|
||||||
IgnoreFiles = *.tmp *.swp #* *.trace .DS_Store
|
IgnoreFiles = *.tmp *.swp #* *.trace .DS_Store
|
||||||
|
|
||||||
[environment]
|
[environment]
|
||||||
BROPATH=`bash -c %(testbase)s/../../build/zeek-path-dev`
|
ZEEKPATH=`bash -c %(testbase)s/../../build/zeek-path-dev`
|
||||||
BRO_SEED_FILE=%(testbase)s/random.seed
|
ZEEK_SEED_FILE=%(testbase)s/random.seed
|
||||||
BRO_PLUGIN_PATH=
|
ZEEK_PLUGIN_PATH=
|
||||||
TZ=UTC
|
TZ=UTC
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
BTEST_PATH=%(testbase)s/../../aux/btest
|
BTEST_PATH=%(testbase)s/../../aux/btest
|
||||||
|
@ -21,11 +21,11 @@ DIST=%(testbase)s/../..
|
||||||
BUILD=%(testbase)s/../../build
|
BUILD=%(testbase)s/../../build
|
||||||
TEST_DIFF_CANONIFIER=%(testbase)s/../scripts/diff-canonifier
|
TEST_DIFF_CANONIFIER=%(testbase)s/../scripts/diff-canonifier
|
||||||
TMPDIR=%(testbase)s/.tmp
|
TMPDIR=%(testbase)s/.tmp
|
||||||
BRO_PROFILER_FILE=%(testbase)s/.tmp/script-coverage/XXXXXX
|
ZEEK_PROFILER_FILE=%(testbase)s/.tmp/script-coverage/XXXXXX
|
||||||
BTEST_RST_FILTER=$SCRIPTS/rst-filter
|
BTEST_RST_FILTER=$SCRIPTS/rst-filter
|
||||||
BRO_DNS_FAKE=1
|
ZEEK_DNS_FAKE=1
|
||||||
BRO_DEFAULT_LISTEN_ADDRESS=127.0.0.1
|
ZEEK_DEFAULT_LISTEN_ADDRESS=127.0.0.1
|
||||||
BRO_DEFAULT_LISTEN_RETRY=1
|
ZEEK_DEFAULT_LISTEN_RETRY=1
|
||||||
BRO_DEFAULT_CONNECT_RETRY=1
|
ZEEK_DEFAULT_CONNECT_RETRY=1
|
||||||
BRO_DISABLE_BROXYGEN=1
|
ZEEK_DISABLE_ZEEKYGEN=1
|
||||||
ZEEK_ALLOW_INIT_ERRORS=1
|
ZEEK_ALLOW_INIT_ERRORS=1
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
# Without a seed, they should differ each time:
|
# Without a seed, they should differ each time:
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: unset BRO_SEED_FILE && zeek -C -r $TRACES/wikipedia.trace %INPUT >output2
|
# @TEST-EXEC: unset ZEEK_SEED_FILE && unset BRO_SEED_FILE && zeek -C -r $TRACES/wikipedia.trace %INPUT >output2
|
||||||
# @TEST-EXEC: cat output output2 | sort | uniq -c | wc -l | sed 's/ //g' >counts
|
# @TEST-EXEC: cat output output2 | sort | uniq -c | wc -l | sed 's/ //g' >counts
|
||||||
# @TEST-EXEC: btest-diff counts
|
# @TEST-EXEC: btest-diff counts
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: BRO_DNS_FAKE=1 zeek -b %INPUT >out
|
# @TEST-EXEC: ZEEK_DNS_FAKE=1 zeek -b %INPUT >out
|
||||||
# @TEST-EXEC: btest-diff out
|
# @TEST-EXEC: btest-diff out
|
||||||
|
|
||||||
redef exit_only_after_terminate = T;
|
redef exit_only_after_terminate = T;
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
#
|
#
|
||||||
# @TEST-REQUIRES: zeek --help 2>&1 | grep -q mem-leaks
|
# @TEST-REQUIRES: zeek --help 2>&1 | grep -q mem-leaks
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek -m %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek -m %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek -m %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek -m %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek -m %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek -m %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 60
|
# @TEST-EXEC: btest-bg-wait 60
|
||||||
|
|
||||||
@TEST-START-FILE cluster-layout.zeek
|
@TEST-START-FILE cluster-layout.zeek
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
# @TEST-REQUIRES: zeek --help 2>&1 | grep -q mem-leaks
|
# @TEST-REQUIRES: zeek --help 2>&1 | grep -q mem-leaks
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: zeek -m %INPUT>out
|
# @TEST-EXEC: zeek -m %INPUT>out
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek -m %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek -m %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek -m runnumber=1 %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek -m runnumber=1 %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek -m runnumber=2 %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek -m runnumber=2 %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 60
|
# @TEST-EXEC: btest-bg-wait 60
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
# @TEST-EXEC: cp %INPUT foo/bar/test.zeek
|
# @TEST-EXEC: cp %INPUT foo/bar/test.zeek
|
||||||
# @TEST-EXEC: cp %INPUT foo/bar/test2.zeek
|
# @TEST-EXEC: cp %INPUT foo/bar/test2.zeek
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:.:./foo zeek -b misc/loaded-scripts loader bar/test
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:.:./foo zeek -b misc/loaded-scripts loader bar/test
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:.:./foo zeek -b misc/loaded-scripts loader bar/test.zeek
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:.:./foo zeek -b misc/loaded-scripts loader bar/test.zeek
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:.:./foo zeek -b misc/loaded-scripts loader foo/bar/test
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:.:./foo zeek -b misc/loaded-scripts loader foo/bar/test
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:.:./foo zeek -b misc/loaded-scripts loader foo/bar/test.zeek
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:.:./foo zeek -b misc/loaded-scripts loader foo/bar/test.zeek
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:.:./foo zeek -b misc/loaded-scripts loader `pwd`/foo/bar/test.zeek
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:.:./foo zeek -b misc/loaded-scripts loader `pwd`/foo/bar/test.zeek
|
||||||
# @TEST-EXEC-FAIL: BROPATH=$BROPATH:.:./foo zeek -b misc/loaded-scripts loader bar/test2
|
# @TEST-EXEC-FAIL: ZEEKPATH=$ZEEKPATH:.:./foo zeek -b misc/loaded-scripts loader bar/test2
|
||||||
|
|
||||||
global pi = 3.14;
|
global pi = 3.14;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: BRO_PROFILER_FILE=coverage zeek -b %INPUT
|
# @TEST-EXEC: ZEEK_PROFILER_FILE=coverage zeek -b %INPUT
|
||||||
# @TEST-EXEC: grep %INPUT coverage | sort -k2 >output
|
# @TEST-EXEC: grep %INPUT coverage | sort -k2 >output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Shouldn't emit any warnings about not being able to document something
|
# Shouldn't emit any warnings about not being able to document something
|
||||||
# that's supplied via command line script.
|
# that's supplied via command line script.
|
||||||
|
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek %INPUT -e 'redef myvar=10; print myvar' >output 2>&1
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek %INPUT -e 'redef myvar=10; print myvar' >output 2>&1
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
const myvar = 5 &redef;
|
const myvar = 5 &redef;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b %INPUT >out
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b %INPUT >out
|
||||||
# @TEST-EXEC: btest-diff out
|
# @TEST-EXEC: btest-diff out
|
||||||
|
|
||||||
##! This is a test script.
|
##! This is a test script.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
||||||
# @TEST-EXEC: btest-diff autogen-reST-enums.rst
|
# @TEST-EXEC: btest-diff autogen-reST-enums.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -X zeekygen.config %INPUT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -X zeekygen.config %INPUT
|
||||||
# @TEST-EXEC: btest-diff example.rst
|
# @TEST-EXEC: btest-diff example.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
||||||
# @TEST-EXEC: btest-diff autogen-reST-func-params.rst
|
# @TEST-EXEC: btest-diff autogen-reST-func-params.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-diff test.rst
|
# @TEST-EXEC: btest-diff test.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-diff test.rst
|
# @TEST-EXEC: btest-diff test.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-diff test.rst
|
# @TEST-EXEC: btest-diff test.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
||||||
# @TEST-EXEC: btest-diff autogen-reST-records.rst
|
# @TEST-EXEC: btest-diff autogen-reST-records.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-diff test.rst
|
# @TEST-EXEC: btest-diff test.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-diff test.rst
|
# @TEST-EXEC: btest-diff test.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
||||||
# @TEST-EXEC: btest-diff autogen-reST-type-aliases.rst
|
# @TEST-EXEC: btest-diff autogen-reST-type-aliases.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
# @TEST-EXEC: unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN; zeek -b -X zeekygen.config %INPUT
|
||||||
# @TEST-EXEC: btest-diff autogen-reST-vectors.rst
|
# @TEST-EXEC: btest-diff autogen-reST-vectors.rst
|
||||||
|
|
||||||
@TEST-START-FILE zeekygen.config
|
@TEST-START-FILE zeekygen.config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# @TEST-EXEC: unset BRO_DNS_FAKE && zeek -b %INPUT >out
|
# @TEST-EXEC: unset ZEEK_DNS_FAKE && unset BRO_DNS_FAKE && zeek -b %INPUT >out
|
||||||
# @TEST-EXEC: btest-diff out
|
# @TEST-EXEC: btest-diff out
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} --install-root=`pwd`/test-install
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} --install-root=`pwd`/test-install
|
||||||
# @TEST-EXEC: make
|
# @TEST-EXEC: make
|
||||||
# @TEST-EXEC: make install
|
# @TEST-EXEC: make install
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd`/test-install zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd`/test-install zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd`/test-install zeek Demo/Foo -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd`/test-install zeek Demo/Foo -r $TRACES/empty.trace >>output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
|
|
||||||
mkdir -p scripts/Demo/Foo/base/
|
mkdir -p scripts/Demo/Foo/base/
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: bash %INPUT
|
# @TEST-EXEC: bash %INPUT
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
|
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r $TRACES/empty.trace >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek Demo/Foo -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek Demo/Foo -r $TRACES/empty.trace >>output
|
||||||
|
|
||||||
# @TEST-EXEC: echo =-= >>output
|
# @TEST-EXEC: echo =-= >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -b -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -b -r $TRACES/empty.trace >>output
|
||||||
# @TEST-EXEC: echo =-= >>output
|
# @TEST-EXEC: echo =-= >>output
|
||||||
# @TEST-EXEC-FAIL: BRO_PLUGIN_PATH=`pwd` zeek -b Demo/Foo -r $TRACES/empty.trace >>output
|
# @TEST-EXEC-FAIL: ZEEK_PLUGIN_PATH=`pwd` zeek -b Demo/Foo -r $TRACES/empty.trace >>output
|
||||||
|
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -b ./activate.zeek -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -b ./activate.zeek -r $TRACES/empty.trace >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -b ./activate.zeek Demo/Foo -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -b ./activate.zeek Demo/Foo -r $TRACES/empty.trace >>output
|
||||||
|
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -b Demo::Foo Demo/Foo -r $TRACES/empty.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -b Demo::Foo Demo/Foo -r $TRACES/empty.trace >>output
|
||||||
|
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/file-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/file-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/ftp/retr.trace %INPUT >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r $TRACES/ftp/retr.trace %INPUT >>output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
|
|
||||||
event file_new(f: fa_file)
|
event file_new(f: fa_file)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Hooks
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Hooks
|
||||||
# @TEST-EXEC: cp -r %DIR/hooks-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/hooks-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_ACTIVATE="Demo::Hooks" BRO_PLUGIN_PATH=`pwd` zeek -b -r $TRACES/http/get.trace %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Demo::Hooks" ZEEK_PLUGIN_PATH=`pwd` zeek -b -r $TRACES/http/get.trace %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
@unload base/misc/version
|
@unload base/misc/version
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace >>output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/legacy-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/legacy-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: unset ZEEK_PLUGIN_PATH; BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace %INPUT >>output
|
# @TEST-EXEC: unset ZEEK_PLUGIN_PATH; BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace %INPUT >>output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
|
|
||||||
event foo_message(c: connection, data: string)
|
event foo_message(c: connection, data: string)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Log Hooks
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Log Hooks
|
||||||
# @TEST-EXEC: cp -r %DIR/logging-hooks-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/logging-hooks-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_ACTIVATE="Log::Hooks" BRO_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Log::Hooks" ZEEK_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
# @TEST-EXEC: btest-diff ssh.log
|
# @TEST-EXEC: btest-diff ssh.log
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/pktdumper-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/pktdumper-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace -w foo::XXX %INPUT FilteredTraceDetection::enable=F >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace -w foo::XXX %INPUT FilteredTraceDetection::enable=F >>output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/pktsrc-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/pktsrc-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r foo::XXX %INPUT FilteredTraceDetection::enable=F >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r foo::XXX %INPUT FilteredTraceDetection::enable=F >>output
|
||||||
# @TEST-EXEC: btest-diff conn.log
|
# @TEST-EXEC: btest-diff conn.log
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Testing NoPatchVersion
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Testing NoPatchVersion
|
||||||
# @TEST-EXEC: cp -r %DIR/plugin-nopatchversion-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/plugin-nopatchversion-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=$(pwd) zeek -N Testing::NoPatchVersion >> output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=$(pwd) zeek -N Testing::NoPatchVersion >> output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Testing WithPatchVersion
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Testing WithPatchVersion
|
||||||
# @TEST-EXEC: cp -r %DIR/plugin-withpatchversion-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/plugin-withpatchversion-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=$(pwd) zeek -N Testing::WithPatchVersion >> output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=$(pwd) zeek -N Testing::WithPatchVersion >> output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/protocol-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/protocol-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace %INPUT >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r $TRACES/port4242.trace %INPUT >>output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
|
|
||||||
event foo_message(c: connection, data: string)
|
event foo_message(c: connection, data: string)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/reader-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/reader-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` btest-bg-run zeek zeek %INPUT
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` btest-bg-run zeek zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 10
|
# @TEST-EXEC: btest-bg-wait 10
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff out
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Reporter Hook
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Reporter Hook
|
||||||
# @TEST-EXEC: cp -r %DIR/reporter-hook-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/reporter-hook-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_ACTIVATE="Reporter::Hook" BRO_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Reporter::Hook" ZEEK_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
# @TEST-EXEC: ${DIST}/aux/zeek-aux/plugin-support/init-plugin -u . Demo Foo
|
||||||
# @TEST-EXEC: cp -r %DIR/writer-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/writer-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --bro-dist=${DIST} && make
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -NN Demo::Foo >>output
|
||||||
# @TEST-EXEC: echo === >>output
|
# @TEST-EXEC: echo === >>output
|
||||||
# @TEST-EXEC: BRO_PLUGIN_PATH=`pwd` zeek -r $TRACES/socks.trace Log::default_writer=Log::WRITER_FOO %INPUT | sort >>output
|
# @TEST-EXEC: ZEEK_PLUGIN_PATH=`pwd` zeek -r $TRACES/socks.trace Log::default_writer=Log::WRITER_FOO %INPUT | sort >>output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run logger-1 BROPATH=$BROPATH:.. CLUSTER_NODE=logger-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run logger-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=logger-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run logger-2 BROPATH=$BROPATH:.. CLUSTER_NODE=logger-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run logger-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=logger-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run manager BROPATH=$BROPATH:.. CLUSTER_NODE=manager zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: btest-diff logger-1/test.log
|
# @TEST-EXEC: btest-diff logger-1/test.log
|
||||||
# @TEST-EXEC: btest-diff logger-2/test.log
|
# @TEST-EXEC: btest-diff logger-2/test.log
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
# @TEST-PORT: BROKER_PORT6
|
# @TEST-PORT: BROKER_PORT6
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run logger-1 CLUSTER_NODE=logger-1 BROPATH=$BROPATH:.. zeek %INPUT
|
# @TEST-EXEC: btest-bg-run logger-1 CLUSTER_NODE=logger-1 ZEEKPATH=$ZEEKPATH:.. zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 CLUSTER_NODE=manager-1 BROPATH=$BROPATH:.. zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 CLUSTER_NODE=manager-1 ZEEKPATH=$ZEEKPATH:.. zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 CLUSTER_NODE=proxy-1 BROPATH=$BROPATH:.. zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 CLUSTER_NODE=proxy-1 ZEEKPATH=$ZEEKPATH:.. zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 CLUSTER_NODE=proxy-2 BROPATH=$BROPATH:.. zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 CLUSTER_NODE=proxy-2 ZEEKPATH=$ZEEKPATH:.. zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 CLUSTER_NODE=worker-1 BROPATH=$BROPATH:.. zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 CLUSTER_NODE=worker-1 ZEEKPATH=$ZEEKPATH:.. zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 CLUSTER_NODE=worker-2 BROPATH=$BROPATH:.. zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 CLUSTER_NODE=worker-2 ZEEKPATH=$ZEEKPATH:.. zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff logger-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff logger-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
# @TEST-PORT: BROKER_PORT5
|
# @TEST-PORT: BROKER_PORT5
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: sleep 1
|
# @TEST-EXEC: sleep 1
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 15
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff worker-1/.stdout
|
# @TEST-EXEC: btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: sleep 1
|
# @TEST-EXEC: sleep 1
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: sleep 15
|
# @TEST-EXEC: sleep 15
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 15
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff worker-1/.stdout
|
# @TEST-EXEC: btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: sleep 1
|
# @TEST-EXEC: sleep 1
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 15
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff worker-1/.stdout
|
# @TEST-EXEC: btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. zeek -Bbroker %INPUT frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: btest-bg-run controllee ZEEKPATH=$ZEEKPATH:.. zeek -Bbroker %INPUT frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. zeek -Bbroker %INPUT test-redef frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=configuration_update
|
# @TEST-EXEC: btest-bg-run controller ZEEKPATH=$ZEEKPATH:.. zeek -Bbroker %INPUT test-redef frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=configuration_update
|
||||||
# @TEST-EXEC: btest-bg-wait 10
|
# @TEST-EXEC: btest-bg-wait 10
|
||||||
# @TEST-EXEC: btest-diff controllee/.stdout
|
# @TEST-EXEC: btest-diff controllee/.stdout
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. zeek %INPUT only-for-controllee frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: btest-bg-run controllee ZEEKPATH=$ZEEKPATH:.. zeek %INPUT only-for-controllee frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. zeek %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=id_value Control::arg=test_var
|
# @TEST-EXEC: btest-bg-run controller ZEEKPATH=$ZEEKPATH:.. zeek %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=id_value Control::arg=test_var
|
||||||
# @TEST-EXEC: btest-bg-wait -k 10
|
# @TEST-EXEC: btest-bg-wait -k 10
|
||||||
# @TEST-EXEC: btest-diff controller/.stdout
|
# @TEST-EXEC: btest-diff controller/.stdout
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# @TEST-PORT: BROKER_PORT
|
# @TEST-PORT: BROKER_PORT
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. zeek %INPUT frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
# @TEST-EXEC: btest-bg-run controllee ZEEKPATH=$ZEEKPATH:.. zeek %INPUT frameworks/control/controllee Broker::default_port=$BROKER_PORT
|
||||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. zeek %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=shutdown
|
# @TEST-EXEC: btest-bg-run controller ZEEKPATH=$ZEEKPATH:.. zeek %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=$BROKER_PORT Control::cmd=shutdown
|
||||||
# @TEST-EXEC: btest-bg-wait 10
|
# @TEST-EXEC: btest-bg-wait 10
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# additional path, but there's currently a problem in btest with using
|
# additional path, but there's currently a problem in btest with using
|
||||||
# %DIR after TEST-START-NEXT.
|
# %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-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE subdir/input.data
|
@TEST-START-FILE subdir/input.data
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# an input file uses an absolute-path source.
|
# an input file uses an absolute-path source.
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: cat %INPUT | sed "s|@path_prefix@|$PWD|" >input.zeek
|
# @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-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE input.data
|
@TEST-START-FILE input.data
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# These tests verify that when setting neither InputAscii::path_prefix
|
# These tests verify that when setting neither InputAscii::path_prefix
|
||||||
# nor InputBinary::path_prefix, Zeek correctly locates local input files.
|
# 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-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE input.data
|
@TEST-START-FILE input.data
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# from the current working directory.
|
# from the current working directory.
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: mkdir -p alternative
|
# @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-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE alternative/input.data
|
@TEST-START-FILE alternative/input.data
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait -k 10
|
# @TEST-EXEC: btest-bg-wait -k 10
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff worker-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait -k 10
|
# @TEST-EXEC: btest-bg-wait -k 10
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff worker-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: mkdir -p intel
|
# @TEST-EXEC: mkdir -p intel
|
||||||
# @TEST-EXEC: cat %INPUT | sed "s|@path_prefix@|$PWD/intel|" >input.zeek
|
# @TEST-EXEC: cat %INPUT | sed "s|@path_prefix@|$PWD/intel|" >input.zeek
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b input.zeek >output
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b input.zeek >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE intel/test.data
|
@TEST-START-FILE intel/test.data
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# prepended first, then the input framework one.
|
# prepended first, then the input framework one.
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: mkdir -p input/intel
|
# @TEST-EXEC: mkdir -p input/intel
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b %INPUT >output
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b %INPUT >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE input/intel/test.data
|
@TEST-START-FILE input/intel/test.data
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Input::REREAD ingestion mode.)
|
# Input::REREAD ingestion mode.)
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: mkdir -p alternative
|
# @TEST-EXEC: mkdir -p alternative
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b %INPUT >output
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b %INPUT >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE alternative/test.data
|
@TEST-START-FILE alternative/test.data
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# This test verifies that when setting neither InputAscii::path_prefix
|
# This test verifies that when setting neither InputAscii::path_prefix
|
||||||
# nor Intel::path_prefix, Zeek correctly locates local intel files.
|
# nor Intel::path_prefix, Zeek correctly locates local intel files.
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: BROPATH=$BROPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b %INPUT >output
|
# @TEST-EXEC: ZEEKPATH=$ZEEKPATH:$TEST_BASE/scripts/base/frameworks/intel/path-prefix zeek -b %INPUT >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
@TEST-START-FILE test.data
|
@TEST-START-FILE test.data
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait -k 10
|
# @TEST-EXEC: btest-bg-wait -k 10
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: btest-diff manager-1/intel.log
|
# @TEST-EXEC: btest-diff manager-1/intel.log
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# @TEST-PORT: BROKER_PORT1
|
# @TEST-PORT: BROKER_PORT1
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait -k 13
|
# @TEST-EXEC: btest-bg-wait -k 13
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff manager-1/.stdout
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff worker-1/.stdout
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort btest-diff worker-1/.stdout
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# @TEST-EXEC: BRO_LOG_SUFFIX=txt zeek -r $TRACES/wikipedia.trace
|
# @TEST-EXEC: ZEEK_LOG_SUFFIX=txt zeek -r $TRACES/wikipedia.trace
|
||||||
# @TEST-EXEC: test -f conn.txt
|
# @TEST-EXEC: test -f conn.txt
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 20
|
# @TEST-EXEC: btest-bg-wait 20
|
||||||
# @TEST-EXEC: btest-diff manager-1/notice.log
|
# @TEST-EXEC: btest-diff manager-1/notice.log
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
# @TEST-PORT: BROKER_PORT4
|
# @TEST-PORT: BROKER_PORT4
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run proxy-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=proxy-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 20
|
# @TEST-EXEC: btest-bg-wait 20
|
||||||
# @TEST-EXEC: btest-diff manager-1/notice.log
|
# @TEST-EXEC: btest-diff manager-1/notice.log
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 15
|
||||||
|
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 20
|
# @TEST-EXEC: btest-bg-wait 20
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# @TEST-PORT: BROKER_PORT1
|
# @TEST-PORT: BROKER_PORT1
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 25
|
# @TEST-EXEC: btest-bg-wait 25
|
||||||
|
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 15
|
||||||
|
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# @TEST-PORT: BROKER_PORT2
|
# @TEST-PORT: BROKER_PORT2
|
||||||
# @TEST-PORT: BROKER_PORT3
|
# @TEST-PORT: BROKER_PORT3
|
||||||
#
|
#
|
||||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run manager-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=manager-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-1 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-1 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
# @TEST-EXEC: btest-bg-run worker-2 ZEEKPATH=$ZEEKPATH:.. CLUSTER_NODE=worker-2 zeek %INPUT
|
||||||
# @TEST-EXEC: btest-bg-wait 15
|
# @TEST-EXEC: btest-bg-wait 15
|
||||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue