mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Add testcases for plugin with doctest usage
This commit is contained in:
parent
5c44dfbb9e
commit
78803b04fc
11 changed files with 113 additions and 0 deletions
25
testing/btest/plugins/doctest-plugin/src/Plugin.cc
Normal file
25
testing/btest/plugins/doctest-plugin/src/Plugin.cc
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
#include "Plugin.h"
|
||||
|
||||
#include <zeek/3rdparty/doctest.h>
|
||||
|
||||
|
||||
namespace btest::plugin::Demo_Doctest { Plugin plugin; }
|
||||
|
||||
using namespace btest::plugin::Demo_Doctest;
|
||||
|
||||
zeek::plugin::Configuration Plugin::Configure()
|
||||
{
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "Demo::Doctest";
|
||||
config.description = "Run doctest in a unit-test enabled build";
|
||||
config.version.major = 1;
|
||||
config.version.minor = 0;
|
||||
config.version.patch = 0;
|
||||
return config;
|
||||
}
|
||||
|
||||
TEST_CASE("doctest-plugin/demotest")
|
||||
{
|
||||
CHECK(true);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue