Asterisk - The Open Source Telephony Project
18.5.0
|
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_timezone_watch) | |
AST_TEST_DEFINE (test_time_str_to_unit) | |
AST_TEST_DEFINE (test_time_create_by_unit) | |
AST_TEST_DEFINE (test_time_create_by_unit_str) | |
AST_TEST_DEFINE (test_time_tv_to_usec) | |
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.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 296 of file test_time.c.
|
static |
Definition at line 296 of file test_time.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 296 of file test_time.c.
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, type, and TZDIR.
AST_TEST_DEFINE | ( | test_time_str_to_unit | ) |
Definition at line 114 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_create_by_unit | ) |
Definition at line 166 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 206 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_tv_to_usec | ) |
Definition at line 246 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.
|
static |
Definition at line 286 of file test_time.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
|
static |
Definition at line 296 of file test_time.c.
|
static |
Definition at line 296 of file test_time.c.