zeek/testing/builtin-plugins/tests/python.zeek
Arne Welzel 1912ba7002 cirrus: Add smoke testing for builtin plugins
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
2023-03-08 22:32:29 +01:00

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)");
}