mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
21 lines
550 B
Text
21 lines
550 B
Text
#
|
|
# In "normal" test mode, connection uids should be determistic.
|
|
#
|
|
# @TEST-EXEC: bro -C -r $TRACES/wikipedia.trace %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
#
|
|
# Without a seed, they should differ each time:
|
|
#
|
|
# @TEST-EXEC: unset BRO_SEED_FILE && bro -C -r $TRACES/wikipedia.trace %INPUT >output2
|
|
# @TEST-EXEC: cat output output2 | sort | uniq -c | wc -l | sed 's/ //g' >counts
|
|
# @TEST-EXEC: btest-diff counts
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
print c$id, c$uid;
|
|
}
|
|
|
|
event connection_established(c: connection)
|
|
{
|
|
print c$id, c$uid;
|
|
}
|