mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Fix outdated documentation unit tests.
This commit is contained in:
parent
fc190eb9f1
commit
97962d25f2
12 changed files with 15 additions and 11 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
2.3-635 | 2015-03-30 11:02:45 -0500
|
||||||
|
|
||||||
|
* Fix outdated documentation unit tests. (Jon Siwek)
|
||||||
|
|
||||||
2.3-634 | 2015-03-30 10:22:45 -0500
|
2.3-634 | 2015-03-30 10:22:45 -0500
|
||||||
|
|
||||||
* Add a canonifier to a unit test's output. (Jon Siwek)
|
* Add a canonifier to a unit test's output. (Jon Siwek)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.3-634
|
2.3-635
|
||||||
|
|
|
@ -19,5 +19,5 @@ export {
|
||||||
event bro_init() &priority=5
|
event bro_init() &priority=5
|
||||||
{
|
{
|
||||||
BrokerComm::enable();
|
BrokerComm::enable();
|
||||||
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test]);
|
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test, $path="test"]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ export {
|
||||||
|
|
||||||
event bro_init() &priority=3
|
event bro_init() &priority=3
|
||||||
{
|
{
|
||||||
Log::create_stream(MimeMetrics::LOG, [$columns=Info]);
|
Log::create_stream(MimeMetrics::LOG, [$columns=Info, $path="mime_metrics"]);
|
||||||
local r1: SumStats::Reducer = [$stream="mime.bytes",
|
local r1: SumStats::Reducer = [$stream="mime.bytes",
|
||||||
$apply=set(SumStats::SUM)];
|
$apply=set(SumStats::SUM)];
|
||||||
local r2: SumStats::Reducer = [$stream="mime.hits",
|
local r2: SumStats::Reducer = [$stream="mime.hits",
|
||||||
|
|
|
@ -27,7 +27,7 @@ function factorial(n: count): count
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
# Create the logging stream.
|
# Create the logging stream.
|
||||||
Log::create_stream(LOG, [$columns=Info]);
|
Log::create_stream(LOG, [$columns=Info, $path="factor"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
event bro_done()
|
event bro_done()
|
||||||
|
|
|
@ -4,7 +4,7 @@ framework_logging_factorial_03.bro
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
Log::create_stream(LOG, [$columns=Info]);
|
Log::create_stream(LOG, [$columns=Info, $path="factor"]);
|
||||||
|
|
||||||
local filter: Log::Filter = [$name="split-mod5s", $path_func=mod5];
|
local filter: Log::Filter = [$name="split-mod5s", $path_func=mod5];
|
||||||
Log::add_filter(Factor::LOG, filter);
|
Log::add_filter(Factor::LOG, filter);
|
||||||
|
|
|
@ -26,7 +26,7 @@ function factorial(n: count): count
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
Log::create_stream(LOG, [$columns=Info, $ev=log_factor]);
|
Log::create_stream(LOG, [$columns=Info, $ev=log_factor, $path="factor"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
event bro_done()
|
event bro_done()
|
||||||
|
|
|
@ -19,5 +19,5 @@ export {
|
||||||
event bro_init() &priority=5
|
event bro_init() &priority=5
|
||||||
{
|
{
|
||||||
BrokerComm::enable();
|
BrokerComm::enable();
|
||||||
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test]);
|
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test, $path="test"]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ export {
|
||||||
|
|
||||||
event bro_init() &priority=3
|
event bro_init() &priority=3
|
||||||
{
|
{
|
||||||
Log::create_stream(MimeMetrics::LOG, [$columns=Info]);
|
Log::create_stream(MimeMetrics::LOG, [$columns=Info, $path="mime_metrics"]);
|
||||||
local r1: SumStats::Reducer = [$stream="mime.bytes",
|
local r1: SumStats::Reducer = [$stream="mime.bytes",
|
||||||
$apply=set(SumStats::SUM)];
|
$apply=set(SumStats::SUM)];
|
||||||
local r2: SumStats::Reducer = [$stream="mime.hits",
|
local r2: SumStats::Reducer = [$stream="mime.hits",
|
||||||
|
|
|
@ -27,7 +27,7 @@ function factorial(n: count): count
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
# Create the logging stream.
|
# Create the logging stream.
|
||||||
Log::create_stream(LOG, [$columns=Info]);
|
Log::create_stream(LOG, [$columns=Info, $path="factor"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
event bro_done()
|
event bro_done()
|
||||||
|
|
|
@ -4,7 +4,7 @@ framework_logging_factorial_03.bro
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
Log::create_stream(LOG, [$columns=Info]);
|
Log::create_stream(LOG, [$columns=Info, $path="factor"]);
|
||||||
|
|
||||||
local filter: Log::Filter = [$name="split-mod5s", $path_func=mod5];
|
local filter: Log::Filter = [$name="split-mod5s", $path_func=mod5];
|
||||||
Log::add_filter(Factor::LOG, filter);
|
Log::add_filter(Factor::LOG, filter);
|
||||||
|
|
|
@ -26,7 +26,7 @@ function factorial(n: count): count
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
Log::create_stream(LOG, [$columns=Info, $ev=log_factor]);
|
Log::create_stream(LOG, [$columns=Info, $ev=log_factor, $path="factor"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
event bro_done()
|
event bro_done()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue