suricata
runmode-unittests.c File Reference
#include "suricata-common.h"
#include "config.h"
#include "util-unittest.h"
#include "runmode-unittests.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-address.h"
#include "detect-engine-proto.h"
#include "detect-engine-port.h"
#include "detect-engine-mpm.h"
#include "detect-engine-sigorder.h"
#include "detect-engine-payload.h"
#include "detect-engine-dcepayload.h"
#include "detect-engine-state.h"
#include "detect-engine-tag.h"
#include "detect-engine-modbus.h"
#include "detect-fast-pattern.h"
#include "flow.h"
#include "flow-timeout.h"
#include "flow-manager.h"
#include "flow-var.h"
#include "flow-bit.h"
#include "pkt-var.h"
#include "host.h"
#include "host-bit.h"
#include "ippair.h"
#include "ippair-bit.h"
#include "unix-manager.h"
#include "stream-tcp.h"
#include "app-layer-detect-proto.h"
#include "app-layer-parser.h"
#include "app-layer.h"
#include "app-layer-dcerpc.h"
#include "app-layer-dcerpc-udp.h"
#include "app-layer-htp.h"
#include "app-layer-ftp.h"
#include "app-layer-ssl.h"
#include "app-layer-ssh.h"
#include "app-layer-smtp.h"
#include "util-action.h"
#include "util-radix-tree.h"
#include "util-host-os-info.h"
#include "util-cidr.h"
#include "util-unittest-helper.h"
#include "util-time.h"
#include "util-rule-vars.h"
#include "util-classification-config.h"
#include "util-threshold-config.h"
#include "util-reference-config.h"
#include "util-profiling.h"
#include "util-magic.h"
#include "util-memcmp.h"
#include "util-misc.h"
#include "util-signal.h"
#include "reputation.h"
#include "util-atomic.h"
#include "util-spm.h"
#include "util-hash.h"
#include "util-hashlist.h"
#include "util-bloomfilter.h"
#include "util-bloomfilter-counting.h"
#include "util-pool.h"
#include "util-byte.h"
#include "util-proto-name.h"
#include "util-memrchr.h"
#include "util-mpm-ac.h"
#include "util-mpm-hs.h"
#include "util-decode-asn1.h"
#include "conf.h"
#include "conf-yaml-loader.h"
#include "tmqh-flow.h"
#include "defrag.h"
#include "detect-engine-siggroup.h"
#include "util-streaming-buffer.h"
#include "util-lua.h"

Go to the source code of this file.

Functions

void TmqhSetup (void)
 
void RunUnittests (int list_unittests, const char *regex_arg)
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Definition in file runmode-unittests.c.

Function Documentation

void RunUnittests ( int  list_unittests,
const char *  regex_arg 
)

Run or list unittests

Parameters
list_unittestsIf set to 1, list unittests. Run them if set to 0.
regex_argA regular expression to select unittests to run

This function is terminal and will call exit after being called.

Definition at line 221 of file runmode-unittests.c.

References AppLayerHtpEnableRequestBodyCallback(), AppLayerHtpNeedFileInspection(), AppLayerSetup(), CIDRInit(), DEFAULT_PACKET_SIZE, default_packet_size, GlobalsInitPreConfig(), HostBitInitCtx(), max_pending_packets, MpmHSGlobalCleanup(), MpmTableSetup(), PacketPoolDestroy(), PacketPoolInit(), RegisterAllModules(), SC_ERR_NOT_SUPPORTED, SCClassConfInit(), SCLogError, SCLogInfo, SCProtoNameInit(), SCReferenceConfInit(), SigTableSetup(), SpmTableSetup(), StorageFinalize(), StorageInit(), TagInitCtx(), TmqhSetup(), UtCleanup(), UtInitialize(), UtListTests(), UtRunSelftest(), and UtRunTests().

Referenced by PostRunDeinit().

Here is the call graph for this function:

Here is the caller graph for this function:

void TmqhSetup ( void  )

Definition at line 37 of file tm-queuehandlers.c.

Referenced by PostRunDeinit(), and RunUnittests().

Here is the caller graph for this function: