mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58: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
23
testing/btest/plugins/plugin-load-dependency/1/src/Plugin.cc
Normal file
23
testing/btest/plugins/plugin-load-dependency/1/src/Plugin.cc
Normal file
|
@ -0,0 +1,23 @@
|
|||
|
||||
#include "Plugin.h"
|
||||
|
||||
namespace btest::plugin::Testing_Plugin1 { Plugin plugin; }
|
||||
|
||||
using namespace btest::plugin::Testing_Plugin1;
|
||||
|
||||
extern void Plugin2_foo();
|
||||
|
||||
zeek::plugin::Configuration Plugin::Configure()
|
||||
{
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "Testing::Plugin1";
|
||||
config.description = "Plugin1 has a load dependency on Plugin2";
|
||||
config.version.major = 1;
|
||||
config.version.minor = 0;
|
||||
config.version.patch = 0;
|
||||
|
||||
printf("in Plugin1\n");
|
||||
Plugin2_foo();
|
||||
|
||||
return config;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue