Go to the documentation of this file.
28 #include "../stream-tcp.h"
29 #include "../detect.h"
30 #include "../detect-isdataat.h"
32 static int DetectEngineSMTPFiledataTest02(
void)
39 "(msg:\"file_data smtp test\"; "
40 "file_data; content:\"message\"; sid:1;)");
51 static int DetectFiledataParseTest04(
void)
57 "alert smtp any any -> any any "
58 "(msg:\"test\"; flow:to_client,established; file_data; content:\"abc\"; sid:1;)");
66 UtRegisterTest(
"DetectEngineSMTPFiledataTest02", DetectEngineSMTPFiledataTest02);
67 UtRegisterTest(
"DetectFiledataParseTest04", DetectFiledataParseTest04);
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
main detection engine ctx
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_NOT(expr)
Fail a test if expression evaluates to false.
#define SIG_FLAG_TOSERVER
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
#define PASS
Pass the test.
void DetectFiledataRegisterTests(void)
DetectEngineCtx * DetectEngineCtxInit(void)