Asterisk - The Open Source Telephony Project
21.4.1
|
Test Framework API. More...
Go to the source code of this file.
Data Structures | |
struct | ast_test_capture |
A capture of running an external process. More... | |
struct | ast_test_info |
Contains all the initialization information required to store a new test definition. More... | |
Macros | |
#define | ast_test_debug(test, fmt, ...) ast_cli /* Dummy function that should not be called. */ |
#define | AST_TEST_DEFINE(hdr) static enum ast_test_result_state attribute_unused hdr(struct ast_test_info *info, enum ast_test_command cmd, struct ast_test *test) |
#define | AST_TEST_REGISTER(cb) |
#define | ast_test_status_update(a, b, c...) |
#define | ast_test_suite_event_notify(s, f, ...) |
#define | AST_TEST_UNREGISTER(cb) |
Enumerations | |
enum | ast_test_command { TEST_INIT, TEST_EXECUTE } |
enum | ast_test_result_state { AST_TEST_NOT_RUN, AST_TEST_PASS, AST_TEST_FAIL } |
Test Framework API.
For an overview on how to use the test API, see Asterisk Unit Test API
Definition in file test.h.
#define AST_TEST_DEFINE | ( | hdr | ) | static enum ast_test_result_state attribute_unused hdr(struct ast_test_info *info, enum ast_test_command cmd, struct ast_test *test) |
#define ast_test_suite_event_notify | ( | s, | |
f, | |||
... | |||
) |
Macros used for the Asterisk Test Suite AMI events
Definition at line 189 of file test.h.
Referenced by advanced_options(), ast_audiohook_set_mute_all(), ast_bridge_channel_feature_digit(), ast_channel_callid_set(), ast_check_hangup(), ast_load_resource(), ast_rtp_dtmf_begin(), ast_rtp_ice_start(), ast_rtp_read(), ast_streamfile(), ast_waitfor_nandfds(), auto_unload_resource(), chan_pjsip_indicate(), change_password_realtime(), conf_change_state(), conf_exec(), conf_update_user_mute(), forward_message(), get_folder(), get_folder2(), grab_transfer(), indicate_data_internal(), messaging_app_subscribe_endpoint(), messaging_app_unsubscribe_endpoint(), say_number_full(), vm_change_password(), vm_forwardoptions(), vm_tempgreeting(), and waitstream_core().