suricata
util-unittest.h File Reference

Go to the source code of this file.

Data Structures

struct  UtTest_
 

Macros

#define FAIL
 Fail a test. More...
 
#define FAIL_IF(expr)
 Fail a test if expression evaluates to true. More...
 
#define FAIL_IF_NOT(expr)
 Fail a test if expression evaluates to false. More...
 
#define FAIL_IF_NULL(expr)
 Fail a test if expression evaluates to NULL. More...
 
#define FAIL_IF_NOT_NULL(expr)
 Fail a test if expression evaluates to non-NULL. More...
 
#define PASS
 Pass the test. More...
 

Typedefs

typedef struct UtTest_ UtTest
 

Functions

void UtRegisterTest (const char *name, int(*TestFn)(void))
 Register unit test. More...
 
uint32_t UtRunTests (const char *regex_arg)
 Run all registered unittests. More...
 
void UtInitialize (void)
 Initialize unit test list. More...
 
void UtCleanup (void)
 Cleanup unit test list. More...
 
int UtRunSelftest (const char *regex_arg)
 Run self tests. More...
 
void UtListTests (const char *regex_arg)
 List all registered unit tests. More...
 
void UtRunModeRegister (void)
 

Variables

int unittests_fatal
 

Detailed Description