Test Framework API. More...
Go to the source code of this file.
Data Structures | |
struct | ast_test_info |
Contains all the initialization information required to store a new test definition. More... | |
Defines | |
#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_assert(exp) (void)0; |
#define | ast_test_suite_event_notify(s, f,...) (void)0; |
#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_REGISTER | ( | cb | ) |
Definition at line 127 of file test.h.
Referenced by ast_data_init(), ast_features_init(), load_module(), sip_config_parser_register_tests(), sip_dialplan_function_register_tests(), and sip_request_parser_register_tests().
#define ast_test_status_update | ( | a, | |||
b, | |||||
c... | ) |
Definition at line 129 of file test.h.
Referenced by AST_TEST_DEFINE(), and build_conf().
#define ast_test_suite_assert | ( | exp | ) | (void)0; |
Definition at line 185 of file test.h.
Referenced by vm_execmain().
#define ast_test_suite_event_notify | ( | s, | |||
f, | |||||
... | ) | (void)0; |
Macros used for the Asterisk Test Suite AMI events
Definition at line 184 of file test.h.
Referenced by advanced_options(), ast_channel_bridge(), ast_check_hangup(), ast_load_resource(), ast_module_reload(), ast_play_and_wait(), ast_stream_and_wait(), ast_unload_resource(), ast_waitfor_nandfds(), change_password_realtime(), conf_exec(), conf_play(), conf_run(), dialout(), forward_message(), get_folder(), get_folder2(), mixmonitor_thread(), play_message(), vm_authenticate(), vm_change_password(), vm_change_password_shell(), vm_execmain(), vm_forwardoptions(), vm_newuser(), vm_options(), vm_tempgreeting(), and wait_file().
#define AST_TEST_UNREGISTER | ( | cb | ) |
Definition at line 128 of file test.h.
Referenced by __unload_module(), sip_config_parser_unregister_tests(), sip_dialplan_function_unregister_tests(), sip_request_parser_unregister_tests(), and unload_module().
enum ast_test_command |
Definition at line 195 of file test.h.
00195 { 00196 TEST_INIT, 00197 TEST_EXECUTE, 00198 };
Definition at line 189 of file test.h.
00189 { 00190 AST_TEST_NOT_RUN, 00191 AST_TEST_PASS, 00192 AST_TEST_FAIL, 00193 };