Optimize integration testing
- Add injection package plug-in - Add libstellar_dynamic.so to facilitate unit testing of upper-level plug-ins
This commit is contained in:
36
test/packet_inject/packet_inject_test.h
Normal file
36
test/packet_inject/packet_inject_test.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef _PACKET_INJECT_TEST_H
|
||||
#define _PACKET_INJECT_TEST_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#define MAX_COMPARISON 16
|
||||
|
||||
struct packet_inject_case
|
||||
{
|
||||
int finish_clean_work_dir;
|
||||
const char *descriptor;
|
||||
const char *work_dir;
|
||||
|
||||
const char *input_prefix;
|
||||
const char *input_pcap;
|
||||
|
||||
struct
|
||||
{
|
||||
const char *expect_pcap;
|
||||
const char *inject_pcap;
|
||||
} compares[MAX_COMPARISON];
|
||||
|
||||
const char *packet_injector_cmd[16];
|
||||
const char *diff_skip_pattern;
|
||||
};
|
||||
|
||||
void packet_inject_test(struct packet_inject_case *test);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user