18#include "../suricata-common.h"
21#include "../detect-parse.h"
22#include "../detect-engine-prefilter-common.h"
24#include "../detect-ipaddr.h"
26#include "../util-unittest.h"
28static int DetectIPAddrParseTest01(
void)
34 de_ctx,
"alert ip any any -> any any (ip.src; content:\"A\"; sid:1; rev:1;)");
44void DetectIPAddrRegisterTests(
void)
46 UtRegisterTest(
"DetectIPAddrParseTest01", DetectIPAddrParseTest01);
DetectEngineCtx * DetectEngineCtxInit(void)
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
#define PASS
Pass the test.
main detection engine ctx