mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
27 lines
633 B
Text
27 lines
633 B
Text
# This tests a PCAP with a few MySQL commands from the Wireshark samples.
|
|
|
|
# @TEST-EXEC: zeek -b -r $TRACES/mysql/mysql.trace %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
# @TEST-EXEC: btest-diff mysql.log
|
|
|
|
@load base/protocols/mysql
|
|
|
|
event mysql_ok(c: connection, affected_rows: count)
|
|
{
|
|
print "mysql ok", affected_rows;
|
|
}
|
|
|
|
event mysql_result_row(c: connection, row: string_vec)
|
|
{
|
|
print "mysql result row", row;
|
|
}
|
|
|
|
event mysql_error(c: connection, code: count, msg: string)
|
|
{
|
|
print "mysql error", code, msg;
|
|
}
|
|
|
|
event mysql_command_request(c: connection, command: count, arg: string)
|
|
{
|
|
print "mysql request", command, arg;
|
|
}
|