|
#define | ACL_CONFIG_DENY "0.0.0.0/0" |
|
#define | ACL_CONFIG_PERMIT "1.2.3.4/32" |
|
#define | ACL_DEFAULT NULL |
|
#define | BOOL_CONFIG "true" |
|
#define | BOOL_DEFAULT "false" |
|
#define | BOOLFLAG1 1 << 0 |
|
#define | BOOLFLAG1_CONFIG "true" |
|
#define | BOOLFLAG1_DEFAULT "false" |
|
#define | BOOLFLAG2 1 << 1 |
|
#define | BOOLFLAG2_CONFIG "false" |
|
#define | BOOLFLAG2_DEFAULT "false" |
|
#define | BOOLFLAG3 1 << 2 |
|
#define | BOOLFLAG3_CONFIG "true" |
|
#define | BOOLFLAG3_DEFAULT "false" |
|
#define | CODEC_CONFIG "!all,ulaw,g729" |
|
#define | CODEC_DEFAULT "!all,alaw" |
|
#define | CONFIG_FILE "test_config.conf" |
|
#define | CONFIG_INCLUDE_FILE "test_config_include.conf" |
|
#define | CUSTOM_CONFIG "yes" |
|
#define | CUSTOM_DEFAULT "no" |
|
#define | DEFAULTVAL 42 |
|
#define | DOUBLE_CONFIG "0.1" |
|
#define | DOUBLE_DEFAULT "1.1" |
|
#define | EPSILON 0.001 |
|
#define | INT_CONFIG "-1" |
|
#define | INT_DEFAULT "-2" |
|
#define | NOT_EQUAL_FAIL(field, format) |
|
#define | SOCKADDR_CONFIG "1.2.3.4:1234" |
|
#define | SOCKADDR_DEFAULT "4.3.2.1:4321" |
|
#define | STR_CONFIG "test" |
|
#define | STR_DEFAULT "default" |
|
#define | TEST_PARSE(input, should_succeed, expected_result, flags, result, ...) |
|
#define | TIMELEN_CONFIG "1" |
|
#define | TIMELEN_DEFAULT "2" |
|
#define | TOOBIG_I32 "2147483649" |
|
#define | TOOBIG_U32 "4294967297" |
|
#define | TOOSMALL_I32 "-2147483649" |
|
#define | TOOSMALL_U32 "-4294967297" |
|
#define | UINT_CONFIG "1" |
|
#define | UINT_DEFAULT "2" |
|
|
static void | __reg_module (void) |
|
static void | __unreg_module (void) |
|
static | AO2_GLOBAL_OBJ_STATIC (global_obj) |
|
struct ast_module * | AST_MODULE_SELF_SYM (void) |
|
| AST_TEST_DEFINE (copy_config) |
|
| AST_TEST_DEFINE (config_basic_ops) |
|
| AST_TEST_DEFINE (config_filtered_ops) |
|
| AST_TEST_DEFINE (config_template_ops) |
|
| AST_TEST_DEFINE (config_save) |
|
| AST_TEST_DEFINE (config_hook) |
|
| AST_TEST_DEFINE (ast_parse_arg_test) |
|
| AST_TEST_DEFINE (config_options_test) |
|
| AST_TEST_DEFINE (config_dialplan_function) |
|
| AST_TEST_DEFINE (variable_lists_match) |
|
| AST_TEST_DEFINE (variable_list_join_replace) |
|
| AST_TEST_DEFINE (variable_list_from_string) |
|
static struct ast_config * | build_cfg (void) |
| Build ast_config struct from above definitions. More...
|
|
| CONFIG_INFO_TEST (cfg_info, global_obj, test_config_alloc,.files=ACO_FILES(&config_test_conf),) |
|
static int | customopt_handler (const struct aco_option *opt, struct ast_variable *var, void *obj) |
|
static void | delete_config_file (void) |
| Delete config file created by write_config_file.
|
|
static int | hook_cb (struct ast_config *cfg) |
|
static int | load_module (void) |
|
static void * | test_config_alloc (void) |
|
static void | test_config_destructor (void *obj) |
|
static int | test_config_validity (struct ast_config *cfg) |
| Tests that the contents of an ast_config is what is expected. More...
|
|
static void * | test_item_alloc (const char *cat) |
|
static int | test_item_cmp (void *obj, void *arg, int flags) |
|
static void | test_item_destructor (void *obj) |
|
static void * | test_item_find (struct ao2_container *container, const char *cat) |
|
static int | unload_module (void) |
|
static int | write_config_file (void) |
| Write the config file to disk. More...
|
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Config test module" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
const char | cat1 [] = "Capitals" |
|
const char | cat1varname1 [] = "Germany" |
|
const char | cat1varname2 [] = "China" |
|
const char | cat1varname3 [] = "Canada" |
|
const char | cat1varvalue1 [] = "Berlin" |
|
const char | cat1varvalue2 [] = "Beijing" |
|
const char | cat1varvalue3 [] = "Ottawa" |
|
const char | cat2 [] = "Protagonists" |
|
const char | cat2varname1 [] = "1984" |
|
const char | cat2varname2 [] = "Green Eggs And Ham" |
|
const char | cat2varname3 [] = "The Kalevala" |
|
const char | cat2varvalue1 [] = "Winston Smith" |
|
const char | cat2varvalue2 [] = "Sam I Am" |
|
const char | cat2varvalue3 [] = "Vainamoinen" |
|
struct association | categories [] |
|
struct aco_file | config_test_conf |
|
static struct aco_type | global |
|
static struct aco_type | global_defaults |
|
static int | hook_config_sane |
|
static int | hook_run |
|
static struct aco_type | item |
|
static const char * | item_blacklist [] |
|
Configuration unit tests.
- Author
- Mark Michelson mmich.nosp@m.elso.nosp@m.n@dig.nosp@m.ium..nosp@m.com
Definition in file test_config.c.