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

This adds two example plugins within testing/builtin-plugins/Files: * protocol-plugin copied over from testing/btest/plugins/protocol-plugin * py-lib-plugin that embeds Python to have a dependency on an external shared library which was already available in CI and fun to use, too. Closes #2837
9 lines
311 B
Text
9 lines
311 B
Text
# @TEST-DOC: Run a bit of Python for the kicks, assume there'll be no Python 4 in the near future.
|
|
# @TEST-EXEC: zeek %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
Python::run_simple_string("import sys; print(\"Python\", sys.version_info.major)");
|
|
Python::run_simple_string("print(sys)");
|
|
}
|