GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MON / dev > mon_unit_test / rad750
#include <MON/MON_msgs.h>
#include <MON/MON_pubdefs.h>
#include <MSG/MSG_pubdefs.h>
#include <mon_test_control.h>
#include <mon_unit_test.h>
#include <string.h>
Classes | |
struct | _mon_Control_Info |
MON control test state. More... | |
Typedefs | |
typedef struct _mon_Control_Info | mon_Control_Info |
Typedef for _mon_Control_Info. | |
Functions | |
static int | mon_initialize_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_initialize() and validate the results. | |
static int | mon_shutdown_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_shutdown() and validate the results. | |
static int | mon_start_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_start() and validate the results. | |
static int | mon_start_db_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_start_with_db() and validate the results. | |
static int | mon_stop_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_stop() and validate the results. | |
static int | mon_get_loading_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_get_loading() and validate the results. | |
static int | mon_start_perf_mon_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_start_perf_mon() and validate the results. | |
static int | mon_stop_perf_mon_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_stop_perf_mon() and validate the results. | |
static int | mon_collect_perf_stats_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_collect_perf_stats() and validate the results. | |
static int | mon_set_watchdog_wrap (test_Test_Descriptor *td_p, int id, mon_Control_Info *info_p) |
Call MON_set_watchdog() and validate the results. | |
void | mon_test_control (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for MON control functions. |
** CVS $Id: mon_test_control.c,v 1.4 2011/03/28 23:52:02 russell Exp $ **
int mon_collect_perf_stats_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_collect_perf_stats() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_collect_perf_stats(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_get_loading_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_get_loading() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_get_loading(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_initialize_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_initialize() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_initialize(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_set_watchdog_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_set_watchdog() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_set_watchdog(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_shutdown_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_shutdown() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_shutdown(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_start_db_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_start_with_db() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_start_with_db(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_start_perf_mon_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_start_perf_mon() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_start_perf_mon(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_start_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_start() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, _mon_Control_Info::idle_attr_p, MON_start(), _mon_Control_Info::poll_attr_p, test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_stop_perf_mon_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_stop_perf_mon() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_stop_perf_mon(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
int mon_stop_wrap | ( | test_Test_Descriptor * | td_p, | |
int | id, | |||
mon_Control_Info * | info_p | |||
) | [static] |
Call MON_stop() and validate the results.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to control test state. |
0 | Success. | |
-1 | Failure. |
References _mon_Control_Info::exp_status, MON_stop(), test_Pop_State(), test_Push_State(), test_Show_Msg_OK(), and test_Status_Compare().
void mon_test_control | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for MON control functions.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _test_Test_Descriptor::exec, _mon_Control_Info::exp_status, _test_Test_Descriptor::fail, _mon_Control_Info::idle_attr_p, mon_collect_perf_stats_wrap(), mon_get_loading_wrap(), mon_initialize_wrap(), mon_set_watchdog_wrap(), mon_shutdown_wrap(), mon_start_db_wrap(), mon_start_perf_mon_wrap(), mon_start_wrap(), mon_stop_perf_mon_wrap(), mon_stop_wrap(), _mon_Control_Info::poll_attr_p, test_Pop_State(), and test_Push_State().
Referenced by mon_unit_test().