mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Add test creating multiple plugins with load dependencies.
If we load plugins purely alphabetically, the 1st Zeek run in the test will success while the 2nd will fail.
This commit is contained in:
parent
f70a7cb4d3
commit
3ebfcdf0ae
9 changed files with 167 additions and 0 deletions
21
testing/btest/plugins/plugin-load-dependency/2/src/Plugin.cc
Normal file
21
testing/btest/plugins/plugin-load-dependency/2/src/Plugin.cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
#include "Plugin.h"
|
||||
|
||||
namespace btest::plugin::Testing_Plugin2 { Plugin plugin; }
|
||||
|
||||
using namespace btest::plugin::Testing_Plugin2;
|
||||
|
||||
void Plugin2_foo() {
|
||||
printf("in Plugin2\n");
|
||||
}
|
||||
|
||||
zeek::plugin::Configuration Plugin::Configure()
|
||||
{
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "Testing::Plugin2";
|
||||
config.description = "Plugin2 provides a load dependency for Plugin1 and Plugin3";
|
||||
config.version.major = 1;
|
||||
config.version.minor = 0;
|
||||
config.version.patch = 0;
|
||||
return config;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue