Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Make basic use of capture capability in test framework. More...
#include "asterisk.h"
#include "asterisk/utils.h"
#include "asterisk/module.h"
#include "asterisk/test.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (test_capture_false) | |
AST_TEST_DEFINE (test_capture_stdout_stderr) | |
AST_TEST_DEFINE (test_capture_true) | |
AST_TEST_DEFINE (test_capture_with_dynamic) | |
AST_TEST_DEFINE (test_capture_with_stdin) | |
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 = "Capture support test" , .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 |
Make basic use of capture capability in test framework.
Exercise the capture capabilities built into the test framework so that external commands might be used to generate validating results used on corroborating tests.
Definition in file test_capture.c.
|
static |
Definition at line 378 of file test_capture.c.
|
static |
Definition at line 378 of file test_capture.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 378 of file test_capture.c.
AST_TEST_DEFINE | ( | test_capture_false | ) |
Definition at line 101 of file test_capture.c.
References args, ast_check_command_in_path(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, cleanup(), ast_test_capture::errlen, ast_test_capture::exitcode, sip_to_pjsip::info(), NULL, ast_test_capture::outlen, ast_test_capture::pid, status, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | test_capture_stdout_stderr | ) |
Definition at line 299 of file test_capture.c.
References args, ast_check_command_in_path(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, cleanup(), ast_test_capture::errbuf, ast_test_capture::errlen, ast_test_capture::exitcode, sip_to_pjsip::info(), NULL, ast_test_capture::outbuf, ast_test_capture::outlen, ast_test_capture::pid, status, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | test_capture_true | ) |
Definition at line 42 of file test_capture.c.
References args, ast_check_command_in_path(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, cleanup(), ast_test_capture::errlen, ast_test_capture::exitcode, sip_to_pjsip::info(), NULL, ast_test_capture::outlen, ast_test_capture::pid, status, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | test_capture_with_dynamic | ) |
Definition at line 223 of file test_capture.c.
References args, ast_check_command_in_path(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, cleanup(), ast_test_capture::errlen, ast_test_capture::exitcode, sip_to_pjsip::info(), NULL, ast_test_capture::outbuf, ast_test_capture::outlen, ast_test_capture::pid, status, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | test_capture_with_stdin | ) |
Definition at line 160 of file test_capture.c.
References args, ast_check_command_in_path(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, cleanup(), ast_test_capture::errlen, ast_test_capture::exitcode, sip_to_pjsip::info(), NULL, ast_test_capture::outbuf, ast_test_capture::outlen, ast_test_capture::pid, status, TEST_EXECUTE, and TEST_INIT.
|
static |
Definition at line 368 of file test_capture.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 358 of file test_capture.c.
References AST_TEST_UNREGISTER.
|
static |
Definition at line 378 of file test_capture.c.
|
static |
Definition at line 378 of file test_capture.c.