For internal use only.
This test program is used to test the operation of event_gen_register().
Definition in file t_evg_register.c.
#include "event-test.h"
Include dependency graph for t_evg_register.c:
Go to the source code of this file.
Data Structures | |
struct | rule |
Structure for defining a testing rule. More... | |
struct | test |
Test description. | |
Defines | |
#define | rule_init(gens, endfl, first, count) |
Initializer for test rule. | |
#define | test_rule(name, gen, err, rules) |
Declare a test with a test rule. | |
#define | test_norule(name, gen, err) |
Declare a test with no test rules. | |
Enumerations | |
enum | { TGT_01, TGT_02, TGT_03, TGT_04, TGT_05, TGT_06, TGT_07, TGT_08, TGT_09, TGT_10, TGT_11 } |
Test generator list. More... | |
Functions | |
static int | do_rules (ev_ctx_t *ctx, unsigned int rulecnt, const struct rule *rules) |
Test a rule set. | |
int | main (int argc, char **argv) |
Generator registration test program. | |
Variables | |
static struct rule | endcons_rules [] |
Test rule for evg_endcons test. | |
static struct rule | endextforw_rules [] |
Test rule for evg_endextforw test. | |
static struct rule | endextrev_rules [] |
Test rule for evg_endextrev test. | |
static struct rule | midcons_rules [] |
Test rule for evg_midcons test. | |
static struct rule | midextforw_rules [] |
Test rule for evg_midextforw test. | |
static struct rule | midextrev_rules [] |
Test rule for evg_midextrev test. | |
static struct rule | endmerge_rules [] |
Test rule for evg_endmerge test. | |
static struct rule | midmerge_rules [] |
Test rule for evg_midmerge test. | |
static struct test | tests [] |
Tests. |
|
For internal use only. This macro initializes an element of a rule structure array.
Definition at line 74 of file t_evg_register.c. |
|
For internal use only. This macro is a tests struct initializer for tests with no rule.
Definition at line 114 of file t_evg_register.c. |
|
For internal use only. This macro is a tests struct initializer for tests with a rule.
Definition at line 101 of file t_evg_register.c. |
|
For internal use only. This enumeration just builds a list of generator types. Definition at line 42 of file t_evg_register.c. |
|
For internal use only. This function executes the test rule set.
Definition at line 258 of file t_evg_register.c. References rule::count, _ev_ctx_s::ec_gens, rule::first, _ev_gendesc_s::gd_active, _ev_gendesc_s::gd_free, _ev_gendesc_s::gd_magic, _ev_gendesc_s::gd_size, _ev_gendesc_s::gd_type, _ev_genlist_s::gl_count, _ev_genlist_s::gl_list, _ev_gens_s::gs_count, _ev_gens_s::gs_first, _ev_gens_s::gs_gens, and _ev_gens_s::gs_next. Referenced by main(). |
|
For internal use only. This program is used for testing the event generator registration function. Definition at line 297 of file t_evg_register.c. References do_rules(), ev_lib_init, ev_prog_name, ev_test_init, event_destroy(), event_gen_register(), and prog. Here is the call graph for this function: ![]() |
|
For internal use only. Test rule for evg_endcons test. Definition at line 122 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_endextforw test. Definition at line 131 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_endextrev test. Definition at line 140 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_endmerge test. Definition at line 179 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_midcons test. Definition at line 149 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_midextforw test. Definition at line 159 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_midextrev test. Definition at line 169 of file t_evg_register.c. |
|
For internal use only. Test rule for evg_midmerge test. Definition at line 188 of file t_evg_register.c. |
|
For internal use only. This array contains a list of test rules for testing the event_gen_register() function. Definition at line 199 of file t_evg_register.c. |