GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MON / V0-3-1 > mon_unit_test / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

mon_test_control.c File Reference

Test the MON package control functions. More...

#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.


Detailed Description

Test the MON package control functions.

**  CVS $Id: mon_test_control.c,v 1.4 2011/03/28 23:52:02 russell Exp $
**  

Function Documentation

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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to control test state.
Return values:
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 
)


Generated on Fri Sep 30 18:56:22 2011 by  doxygen 1.5.8