Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Timezone tests. More...
#include "asterisk.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/test.h"
Go to the source code of this file.
Macros | |
#define | TZDIR "/usr/share/zoneinfo" |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (test_time_create_by_unit) | |
AST_TEST_DEFINE (test_time_create_by_unit_str) | |
AST_TEST_DEFINE (test_time_str_to_unit) | |
AST_TEST_DEFINE (test_time_tv_to_usec) | |
AST_TEST_DEFINE (test_timezone_watch) | |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Time Tests" , .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 |
Timezone tests.
Definition in file test_time.c.
#define TZDIR "/usr/share/zoneinfo" |
Definition at line 44 of file test_time.c.
|
static |
Definition at line 300 of file test_time.c.
|
static |
Definition at line 300 of file test_time.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 300 of file test_time.c.
AST_TEST_DEFINE | ( | test_time_create_by_unit | ) |
Definition at line 170 of file test_time.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, ast_time_create_by_unit(), sip_to_pjsip::info(), TEST_EXECUTE, TEST_INIT, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MICROSECOND, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_MONTH, TIME_UNIT_NANOSECOND, TIME_UNIT_SECOND, TIME_UNIT_WEEK, and TIME_UNIT_YEAR.
AST_TEST_DEFINE | ( | test_time_create_by_unit_str | ) |
Definition at line 210 of file test_time.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, ast_time_create_by_unit_str(), sip_to_pjsip::info(), TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | test_time_str_to_unit | ) |
Definition at line 118 of file test_time.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, ast_time_str_to_unit(), sip_to_pjsip::info(), TEST_EXECUTE, TEST_INIT, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MICROSECOND, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_MONTH, TIME_UNIT_NANOSECOND, TIME_UNIT_SECOND, TIME_UNIT_WEEK, and TIME_UNIT_YEAR.
AST_TEST_DEFINE | ( | test_time_tv_to_usec | ) |
Definition at line 250 of file test_time.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, ast_time_create(), ast_time_tv_to_usec(), sip_to_pjsip::info(), TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | test_timezone_watch | ) |
Definition at line 48 of file test_time.c.
References ARRAY_LEN, ast_localtime(), ast_localtime_wakeup_monitor(), ast_log, ast_safe_system(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_tvnow(), errno, sip_to_pjsip::info(), LOG_WARNING, mkdtemp(), TEST_EXECUTE, TEST_INIT, ast_tm::tm_hour, ast_tm::tm_isdst, type, and TZDIR.
|
static |
Definition at line 290 of file test_time.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 280 of file test_time.c.
References AST_TEST_UNREGISTER.
|
static |
Definition at line 300 of file test_time.c.
|
static |
Definition at line 300 of file test_time.c.