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

Providing an unknown plugin debug stream with -B was previously silently accepted. This caused user confusing as the behavior is "no output, but seems to work". Check the enabled debug streams once all plugins have been loaded and exit early on for invalid streams. $ ZEEK_PLUGIN_PATH=./build zeek -B plugin-zeek-myplugin -e 'print zeek_version();' error in <command line>, line 3: No plugin debug stream 'plugin-zeek-myplugin' found Closes #913.
7 lines
354 B
Text
7 lines
354 B
Text
# This requires Zeek with debug streams support.
|
|
# @TEST-REQUIRES: test "$(zeek-config --build_type)" = "debug"
|
|
|
|
# @TEST-EXEC: zeek -B plugin-Zeek-HTTP -e 'event zeek_init() { print "zeek_init"; }' 2>zeek.stderr
|
|
# @TEST-EXEC-FAIL: zeek -B plugin-zeek-http -e 'event zeek_init() { print "zeek_init"; }' 2>zeek.stderr
|
|
|
|
# @TEST-EXEC: btest-diff zeek.stderr
|