GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / dev > lim_unit_test / sun-gcc
#include <LIM/LIM_pubdefs.h>
#include <PBS/WUT.h>
#include <LIM/../src/LIM_pool.h>
#include <LIM/../src/LIM_task.h>
Classes | |
struct | _test_Cmd_Counts |
Summary of received command count values for simulated tasks. More... | |
struct | _test_Start_Parms |
Parameters from most recent Start command to simulated tasks. More... | |
struct | _test_Slew_Info |
Slew-Request command parameters. More... | |
struct | _test_Test_Descriptor |
Description of a test state. More... | |
Defines | |
#define | DIM(a) (sizeof (a) / sizeof ((a)[0])) |
Dimension of an array. | |
Typedefs | |
typedef struct _test_Cmd_Counts | test_Cmd_Counts |
Typedef for _test_Cmd_Counts. | |
typedef struct _test_Start_Parms | test_Start_Parms |
Typedef for _test_Start_Parms. | |
typedef struct _test_Slew_Info | test_Slew_Info |
Typedef for _test_Slew_Info. | |
typedef struct _test_Test_Descriptor | test_Test_Descriptor |
Typedef for _test_Test_Descriptor. | |
Functions | |
void | test_Push_State (test_Test_Descriptor *td_p, const char *desc, const int index) |
Enter a new test state. | |
void | test_Pop_State (test_Test_Descriptor *td_p) |
Return for a test state. | |
void | test_Show (const test_Test_Descriptor *td_p, const int level, const char *item_1, const char *item_2) |
Display text with indentation. | |
void | test_Show_Msg_OK (const test_Test_Descriptor *td_p) |
Indicate that the next error message is expected. | |
const char * | test_Status_Name (const unsigned int status) |
Return a text description of a status code. | |
void | test_Sleep_Sec (int num_secs) |
Sleep for the specified number of seconds. | |
int | test_Delay (const test_Test_Descriptor *td_p, const unsigned int num_usecs) |
Delay the current task a number of microseconds. | |
int | test_Generic_Error (const test_Test_Descriptor *td_p, const char *fmt, const char *str_param, const unsigned int int_param) |
Display a generic error message. | |
int | test_Count_Compare (const test_Test_Descriptor *td_p, const test_Cmd_Counts *exp_p, const test_Cmd_Counts *act_p, const char *desc) |
Verify command count values. | |
int | test_Parm_Compare (const test_Test_Descriptor *td_p, const test_Start_Parms *exp_p, const test_Start_Parms *act_p, const char *desc) |
Verify simulated task start parameter values. | |
void | test_Show_Info (const test_Test_Descriptor *td_p, const LIM_Info *exp_p, const LIM_Info *act_p) |
Display LIM info. | |
int | test_Info_Compare (const test_Test_Descriptor *td_p, const LIM_Info *expect_p, const LIM_Info *actual_p, const char *desc) |
Verify the contents of LIM information. | |
void | test_Show_Slew (const test_Test_Descriptor *td_p, const test_Slew_Info *exp_p, const test_Slew_Info *act_p, const char *desc) |
Display Slew-Request command parameters. | |
int | test_Slew_Compare (const test_Test_Descriptor *td_p, const test_Slew_Info *exp_p, const test_Slew_Info *act_p, const char *desc) |
Verify Slew-Request command parameters. | |
int | test_Memory_Compare (const test_Test_Descriptor *td_p, const void *expect_p, const void *actual_p, const void *mask_p, const size_t num_bytes) |
Verify the contents of a buffer in memory. | |
int | test_NULL_Compare (const test_Test_Descriptor *td_p, const unsigned int actual, const char *desc) |
Check a 32-bit value to make sure it is not NULL. | |
int | test_Status_Compare (const test_Test_Descriptor *td_p, const unsigned int expect, const unsigned int actual, const char *func) |
Check a MSG status code value. | |
int | test_Status_Success (const test_Test_Descriptor *td_p, const unsigned int actual, const char *func) |
Check a MSG status code to make sure it's reporting success. | |
int | test_Value32_Compare (const test_Test_Descriptor *td_p, const unsigned int expect, const unsigned int actual, const char *desc) |
Check a 32-bit value. | |
void | test_Show_Item (const test_Test_Descriptor *td_p, const char *name, const char *fmt, const char *str_param, const unsigned int int_param) |
Display an item of data. | |
void | lim_test_arr (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM ARR mode handling. | |
void | lim_test_cal (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM CALIBRATION mode handling. | |
void | lim_test_command (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM telecommands. | |
void | lim_test_control (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM control functions. | |
void | lim_test_diag (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM DIAGNOSTIC mode handling. | |
void | lim_test_gbm (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM GBM command handling. | |
void | lim_test_init (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Init the LIM package unit test. | |
void | lim_test_load_shed (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM Load-Shed handling. | |
void | lim_test_mode (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM mode handling. | |
void | lim_test_physics (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM PHYSICS mode handling. | |
void | lim_test_pids (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM PID configuration command handling. | |
void | lim_test_pig (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM PIG command handling. | |
void | lim_test_pool (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM pool functions. | |
void | lim_test_saa (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM SAA command handling. | |
void | lim_test_shutdown (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Shutdown the LIM package unit test. | |
void | lim_test_too (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM TOO mode handling. | |
void | lim_test_use_cases (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for LIM use cases. |
** CVS $Id: lim_unit_test.h,v 1.19 2011/03/30 22:23:43 apw Exp $ **
void lim_test_arr | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM ARR mode handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_abort(), CMD_send_arr_response(), CMD_send_cal_abort(), CMD_send_cal_start(), CMD_send_config_gbm(), CMD_send_gbm_int(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_phys_active(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Start_Parms::consign, _test_Start_Parms::cpus, _test_Start_Parms::db, _test_Slew_Info::dec, _test_Slew_Info::dwell_time, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_lpa_counts, _WRAP_Info::exp_lpa_parms, _WRAP_Info::exp_slew, _test_Test_Descriptor::fail, _test_Start_Parms::ignore, _LIM_Info::last_action, _LIM_Info::last_status, _test_Start_Parms::latc, LIM_ACTION_OP_MODE_CHANGE, lim_arr_send_grb_cmds(), lim_arr_transition(), LIM_OP_MODE_QUIESCENT, LPA_fail_next_bulk(), _test_Start_Parms::mode, _LIM_Info::op_mode, _test_Slew_Info::ra, _test_Start_Parms::run, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), _test_Slew_Info::transaction_id, WRAP_exp_arr_abort(), WRAP_exp_arr_response(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_gbm_int_arr(), WRAP_exp_gbm_pri_allow(), WRAP_exp_gbm_pri_disable(), WRAP_exp_gbm_pri_disallow(), WRAP_exp_gbm_pri_enable(), WRAP_exp_gbm_red_allow(), WRAP_exp_gbm_red_disable(), WRAP_exp_gbm_red_disallow(), WRAP_exp_gbm_red_enable(), WRAP_exp_grb_confirm(), WRAP_exp_grb_confirm_normal(), WRAP_exp_grb_finish(), WRAP_exp_grb_suspect(), WRAP_exp_lpa_idle(), WRAP_exp_lpa_running(), WRAP_exp_lpa_stopping(), WRAP_exp_op_mode_arr(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_physics(), WRAP_exp_op_mode_quiescent(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_start(), WRAP_exp_phys_start_arr0(), WRAP_exp_phys_start_arr0_bad(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_start_status(), WRAP_exp_phys_stop(), WRAP_exp_phys_stop_full(), WRAP_exp_saa_enter_bad(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_enter_idle(), WRAP_exp_saa_enter_stop(), WRAP_exp_saa_exit(), WRAP_exp_too_idle(), WRAP_exp_too_start_phys(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_cal | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM CALIBRATION mode handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_cal_abort(), CMD_send_cal_complete(), CMD_send_cal_other(), CMD_send_cal_start(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_shutdown(), _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_lci_counts, _test_Test_Descriptor::fail, LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_cal_start_status(), WRAP_exp_fwd_cal_abort(), WRAP_exp_fwd_cal_other(), WRAP_exp_lci_idle(), WRAP_exp_lci_running(), WRAP_exp_lci_stopping(), WRAP_exp_op_mode_cal(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_exit(), WRAP_exp_send_cal_start(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_command | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM telecommands.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::cal_apid, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_abort(), CMD_send_arr_response(), CMD_send_bias_acd(), CMD_send_bias_cal(), CMD_send_bias_tkr(), CMD_send_cal_abort(), CMD_send_cal_other(), CMD_send_cal_start(), CMD_send_config_gbm(), CMD_send_config_hv(), CMD_send_config_pid(), CMD_send_diag_abort(), CMD_send_diag_other(), CMD_send_diag_start(), CMD_send_gbm_calc_info(), CMD_send_gbm_closeout(), CMD_send_gbm_repoint(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_latc_config(), CMD_send_latc_record(), CMD_send_latc_verify(), CMD_send_load_shed(), CMD_send_look_at_me(), CMD_send_main_feed_on(), CMD_send_no_op(), CMD_send_phys_active(), CMD_send_phys_complete(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_pig_record(), CMD_send_power_off(), CMD_send_power_on(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Start_Parms::consign, _test_Start_Parms::cpus, _test_Start_Parms::db, _WRAP_Info::diag_abort_fc, _WRAP_Info::diag_apid, _WRAP_Info::diag_start_fc, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info_status, _WRAP_Info::exp_lci_counts, _WRAP_Info::exp_ldf_counts, _WRAP_Info::exp_lpa_counts, _WRAP_Info::exp_lpa_parms, _WRAP_Info::exp_ltc_counts, _WRAP_Info::exp_status, _test_Test_Descriptor::fail, _test_Start_Parms::ignore, _test_Start_Parms::latc, lim_bias_acd_test(), lim_bias_cal_test(), lim_bias_tkr_test(), lim_power_cfg_test(), lim_siu_cfg_test(), _test_Start_Parms::mode, _WRAP_Info::phys_apid, _test_Start_Parms::run, SIM_init_tasks(), SIM_shutdown_tasks(), SIM_start_tasks(), SIM_stop_tasks(), test_Delay(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_gbm_pri_allow(), WRAP_exp_gbm_pri_disallow(), WRAP_exp_gbm_red_allow(), WRAP_exp_gbm_red_disallow(), WRAP_exp_gbm_rep_allow(), WRAP_exp_gbm_rep_disallow(), WRAP_exp_hv_allow(), WRAP_exp_hv_disallow(), WRAP_exp_lpa_idle(), WRAP_exp_ltc_stop(), WRAP_exp_phys_complete(), WRAP_exp_pid_primary(), WRAP_exp_pid_redundant(), WRAP_exp_saa_enter(), WRAP_exp_saa_exit(), WRAP_exp_shed_alert(), WRAP_exp_shed_begin(), WRAP_exp_shed_end(), WRAP_exp_siu_reboot(), WRAP_init_info(), WRAP_start_LIM(), and WRAP_stop_LIM().
Referenced by lim_unit_test().
void lim_test_control | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM control functions.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, _WRAP_Info::cal_apid, _WRAP_Info::diag_apid, _test_Test_Descriptor::exec, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_status, _test_Test_Descriptor::fail, _WRAP_Info::num_exp_telem, _WRAP_Info::phys_apid, test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_stop(), WRAP_get_info(), WRAP_init(), WRAP_init_info(), WRAP_init_with_db(), WRAP_shutdown(), WRAP_start(), WRAP_start_LIM(), WRAP_start_with_db(), and WRAP_stop().
Referenced by lim_unit_test().
void lim_test_diag | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM DIAGNOSTIC mode handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_send_diag_abort(), CMD_send_diag_complete(), CMD_send_diag_other(), CMD_send_diag_start(), CMD_shutdown(), _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_ldf_counts, _test_Test_Descriptor::fail, _LIM_Info::last_action, _LIM_Info::last_status, LIM_ACTION_OP_MODE_CHANGE, LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_gbm | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM GBM command handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_abort(), CMD_send_arr_response(), CMD_send_cal_abort(), CMD_send_cal_start(), CMD_send_config_gbm(), CMD_send_gbm_calc_info(), CMD_send_gbm_closeout(), CMD_send_gbm_int(), CMD_send_gbm_repoint(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Slew_Info::dec, _test_Slew_Info::dwell_time, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_slew, _test_Test_Descriptor::fail, _LIM_Info::last_action, _LIM_Info::last_status, LIM_ACTION_OP_MODE_CHANGE, lim_gbm_send_cmds(), LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, _test_Slew_Info::ra, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), _test_Slew_Info::transaction_id, WRAP_exp_arr_abort(), WRAP_exp_arr_grb_0(), WRAP_exp_arr_response(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_gbm_calcinfo(), WRAP_exp_gbm_closeout(), WRAP_exp_gbm_int_arr(), WRAP_exp_gbm_int_cal(), WRAP_exp_gbm_int_idle(), WRAP_exp_gbm_int_run(), WRAP_exp_gbm_pri_allow(), WRAP_exp_gbm_pri_disable(), WRAP_exp_gbm_pri_disallow(), WRAP_exp_gbm_pri_enable(), WRAP_exp_gbm_red_allow(), WRAP_exp_gbm_red_disable(), WRAP_exp_gbm_red_disallow(), WRAP_exp_gbm_red_enable(), WRAP_exp_gbm_rep_allow(), WRAP_exp_gbm_rep_disallow(), WRAP_exp_gbm_rep_norec(), WRAP_exp_gbm_rep_rec(), WRAP_exp_grb_confirm_run(), WRAP_exp_grb_expire(), WRAP_exp_grb_finish(), WRAP_exp_grb_suspect(), WRAP_exp_op_mode_arr(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_start_arr0(), WRAP_exp_phys_start_arr1_idle(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_stop_full(), WRAP_exp_rep_expire(), WRAP_exp_rep_req_pend(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_enter_idle(), WRAP_exp_saa_exit(), WRAP_exp_sc_slew_req(), WRAP_exp_send_slew_req(), WRAP_exp_slew_req_tlm(), WRAP_exp_too_idle(), WRAP_exp_too_start_phys(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_init | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Init the LIM package unit test.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::cal_apid, CMD_init(), CMD_send_main_feed_on(), CMD_shutdown(), _WRAP_Info::diag_abort_fc, _WRAP_Info::diag_apid, _WRAP_Info::diag_start_fc, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _test_Test_Descriptor::fail, _WRAP_Info::phys_apid, SIM_init_tasks(), SIM_start_tasks(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_gbm_pri_disable(), WRAP_exp_gbm_red_disable(), WRAP_exp_main_feed_on(), WRAP_exp_op_mode_quiescent(), WRAP_init_info(), and WRAP_start_LIM().
Referenced by lim_unit_test().
void lim_test_load_shed | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM Load-Shed handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_load_shed(), CMD_shutdown(), _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_ltc_counts, _test_Test_Descriptor::fail, LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_ltc_stop(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_shed_alert(), WRAP_exp_shed_begin(), WRAP_exp_shed_end(), WRAP_exp_siu_reboot(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_mode | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM mode handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::cal_apid, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_abort(), CMD_send_arr_response(), CMD_send_bias_acd(), CMD_send_bias_cal(), CMD_send_bias_tkr(), CMD_send_cal_abort(), CMD_send_cal_complete(), CMD_send_cal_other(), CMD_send_cal_start(), CMD_send_config_gbm(), CMD_send_config_hv(), CMD_send_diag_abort(), CMD_send_diag_complete(), CMD_send_diag_other(), CMD_send_diag_start(), CMD_send_gbm_calc_info(), CMD_send_gbm_closeout(), CMD_send_gbm_int(), CMD_send_gbm_repoint(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_latc_config(), CMD_send_latc_record(), CMD_send_latc_verify(), CMD_send_look_at_me(), CMD_send_main_feed_on(), CMD_send_no_op(), CMD_send_phys_active(), CMD_send_phys_complete(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_pig_record(), CMD_send_power_off(), CMD_send_power_on(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Slew_Info::dec, _WRAP_Info::diag_abort_fc, _WRAP_Info::diag_apid, _WRAP_Info::diag_start_fc, _test_Slew_Info::dwell_time, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_ldf_counts, _WRAP_Info::exp_lpa_counts, _WRAP_Info::exp_slew, _test_Test_Descriptor::fail, _WRAP_Info::phys_apid, _test_Slew_Info::ra, SIM_init_tasks(), SIM_start_tasks(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), _test_Slew_Info::transaction_id, WRAP_exp_arr_abort(), WRAP_exp_arr_grb_0(), WRAP_exp_arr_idle(), WRAP_exp_arr_response(), WRAP_exp_cal_complete(), WRAP_exp_gbm_calcinfo(), WRAP_exp_gbm_closeout(), WRAP_exp_gbm_pri_allow(), WRAP_exp_gbm_pri_disable(), WRAP_exp_gbm_pri_disallow(), WRAP_exp_gbm_red_allow(), WRAP_exp_gbm_red_disable(), WRAP_exp_gbm_red_disallow(), WRAP_exp_gbm_red_enable(), WRAP_exp_gbm_rep_allow(), WRAP_exp_gbm_rep_disallow(), WRAP_exp_gbm_rep_norec(), WRAP_exp_gbm_rep_rec(), WRAP_exp_grb_confirm(), WRAP_exp_grb_expire(), WRAP_exp_grb_finish(), WRAP_exp_grb_suspect(), WRAP_exp_hv_allow(), WRAP_exp_hv_disallow(), WRAP_exp_lci_idle(), WRAP_exp_lpa_idle(), WRAP_exp_main_feed_on(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_phys_complete(), WRAP_exp_phys_idle(), WRAP_exp_rep_expire(), WRAP_exp_rep_req_nopend(), WRAP_exp_rep_req_pend(), WRAP_exp_saa_enter(), WRAP_exp_saa_exit(), WRAP_exp_sc_slew_req(), WRAP_exp_send_slew_req(), WRAP_exp_slew_req_tlm(), WRAP_init_info(), and WRAP_start_LIM().
Referenced by lim_unit_test().
void lim_test_physics | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM PHYSICS mode handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_cal_abort(), CMD_send_cal_start(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_no_op(), CMD_send_phys_active(), CMD_send_phys_complete(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Start_Parms::consign, _test_Start_Parms::cpus, _test_Start_Parms::db, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_lpa_counts, _WRAP_Info::exp_lpa_parms, _test_Test_Descriptor::fail, _test_Start_Parms::ignore, _test_Start_Parms::latc, LIM_OP_MODE_QUIESCENT, LPA_fail_next_bulk(), _test_Start_Parms::mode, _LIM_Info::op_mode, _test_Start_Parms::run, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_lpa_idle(), WRAP_exp_lpa_running(), WRAP_exp_lpa_stopping(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_physics(), WRAP_exp_op_mode_quiescent(), WRAP_exp_op_mode_too(), WRAP_exp_phys_active(), WRAP_exp_phys_complete(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_idle(), WRAP_exp_phys_set_mode(), WRAP_exp_phys_start(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_start_idle_bad(), WRAP_exp_phys_start_status(), WRAP_exp_phys_stop(), WRAP_exp_phys_stop_full(), WRAP_exp_phys_stop_status(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_exit(), WRAP_exp_too_idle(), WRAP_exp_too_not_started(), WRAP_exp_too_ready(), WRAP_exp_too_start_phys(), WRAP_exp_too_started(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_pids | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM PID configuration command handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_abort(), CMD_send_cal_abort(), CMD_send_cal_start(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _test_Test_Descriptor::fail, _LIM_Info::last_action, _LIM_Info::last_status, LIM_ACTION_OP_MODE_CHANGE, LIM_OP_MODE_QUIESCENT, lim_pid_send_cmds(), _LIM_Info::op_mode, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_arr_abort(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_grb_suspect(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_stop_full(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_exit(), WRAP_exp_too_idle(), WRAP_exp_too_not_started(), WRAP_exp_too_start_idle(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_pig | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM PIG command handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_abort(), CMD_send_cal_abort(), CMD_send_cal_start(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _test_Test_Descriptor::fail, _LIM_Info::last_action, _LIM_Info::last_status, LIM_ACTION_OP_MODE_CHANGE, LIM_OP_MODE_QUIESCENT, lim_pig_send_cmds(), _LIM_Info::op_mode, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_arr_abort(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_grb_suspect(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_stop_full(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_enter_idle(), WRAP_exp_saa_exit(), WRAP_exp_too_idle(), WRAP_exp_too_not_started(), WRAP_exp_too_start_idle(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_pool | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM pool functions.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _lim_Pool_Info::act_free_sts_in, _lim_Pool_Info::cb_parm_0, _lim_Pool_Info::cb_parm_0_p, _lim_Pool_Info::cb_parm_1, _lim_Pool_Info::cb_parm_1_p, _lim_Pool_Info::cb_parm_2, _lim_Pool_Info::cb_parm_2_p, DIM, _test_Test_Descriptor::exec, _lim_Pool_Info::exp_alloc_rv, _lim_Pool_Info::exp_free_sts_in, _lim_Pool_Info::exp_status, _test_Test_Descriptor::fail, _lim_Pool_Info::free_cb, _lim_Pool_Info::free_cb_p, lim_alloc_wrap(), lim_free_cb(), lim_free_wrap(), lim_init_wrap(), lim_shutdown_wrap(), _lim_Pool_Info::num_pkts, _lim_Pool_Info::pkt_bytes, _lim_Pool_Info::pool_ctl_p, _lim_Pool_Info::pool_ctl_pp, _lim_Pool_Info::size, test_Pop_State(), and test_Push_State().
Referenced by lim_unit_test().
void lim_test_saa | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM SAA command handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_shutdown(), _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _test_Test_Descriptor::fail, LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_quiescent(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_exit(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_shutdown | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Shutdown the LIM package unit test.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _test_Test_Descriptor::exec, _WRAP_Info::exp_info, _test_Test_Descriptor::fail, LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, SIM_shutdown_tasks(), SIM_stop_tasks(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_init_info(), and WRAP_stop_LIM().
Referenced by lim_unit_test().
void lim_test_too | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM TOO mode handling.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_no_op(), CMD_send_phys_active(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), _test_Start_Parms::consign, _test_Start_Parms::cpus, _test_Start_Parms::db, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_lpa_counts, _WRAP_Info::exp_lpa_parms, _test_Test_Descriptor::fail, _test_Start_Parms::ignore, _test_Start_Parms::latc, LIM_OP_MODE_QUIESCENT, LPA_fail_next_bulk(), _test_Start_Parms::mode, _LIM_Info::op_mode, _test_Start_Parms::run, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), WRAP_exp_lpa_idle(), WRAP_exp_lpa_running(), WRAP_exp_lpa_stopping(), WRAP_exp_op_mode_hold(), WRAP_exp_op_mode_physics(), WRAP_exp_op_mode_quiescent(), WRAP_exp_op_mode_too(), WRAP_exp_phys_complete(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_set_mode(), WRAP_exp_phys_start(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_start_status(), WRAP_exp_phys_start_too(), WRAP_exp_phys_start_too_bad(), WRAP_exp_phys_stop(), WRAP_exp_phys_stop_full(), WRAP_exp_phys_stop_status(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_exit(), WRAP_exp_too_abort_full(), WRAP_exp_too_idle(), WRAP_exp_too_not_started(), WRAP_exp_too_ready(), WRAP_exp_too_start_idle(), WRAP_exp_too_start_phys(), WRAP_exp_too_started(), and WRAP_init_info().
Referenced by lim_unit_test().
void lim_test_use_cases | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM use cases.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_info, _WRAP_Info::act_info_p, CMD_init(), CMD_rcv_cmd(), CMD_send_arr_response(), CMD_send_cal_abort(), CMD_send_cal_other(), CMD_send_cal_start(), CMD_send_gbm_calc_info(), CMD_send_gbm_closeout(), CMD_send_gbm_repoint(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_phys_active(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_too_start(), CMD_shutdown(), _test_Slew_Info::dec, _test_Slew_Info::dwell_time, _test_Test_Descriptor::exec, _WRAP_Info::exp_free_sts_in, _WRAP_Info::exp_info, _WRAP_Info::exp_info_status, _WRAP_Info::exp_lci_counts, _WRAP_Info::exp_lpa_counts, _WRAP_Info::exp_slew, _test_Test_Descriptor::fail, LIM_OP_MODE_QUIESCENT, _LIM_Info::op_mode, _test_Slew_Info::ra, SIM_clear_stats(), test_Pop_State(), test_Push_State(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), _test_Slew_Info::transaction_id, WRAP_exp_arr_response(), WRAP_exp_cal_abort_full(), WRAP_exp_cal_complete_full(), WRAP_exp_cal_start_full(), WRAP_exp_fwd_cal_other(), WRAP_exp_gbm_calcinfo(), WRAP_exp_gbm_closeout(), WRAP_exp_gbm_command(), WRAP_exp_gbm_rep_rec(), WRAP_exp_grb_confirm_normal(), WRAP_exp_grb_finish(), WRAP_exp_grb_suspect(), WRAP_exp_lpa_idle(), WRAP_exp_lpa_stopping(), WRAP_exp_op_mode_quiescent(), WRAP_exp_phys_active(), WRAP_exp_phys_complete_full(), WRAP_exp_phys_start_arr0(), WRAP_exp_phys_start_idle(), WRAP_exp_phys_start_too(), WRAP_exp_phys_stop(), WRAP_exp_phys_stop_full(), WRAP_exp_rep_expire(), WRAP_exp_saa_config(), WRAP_exp_saa_enter(), WRAP_exp_saa_enter_full(), WRAP_exp_saa_exit(), WRAP_exp_too_abort_full(), WRAP_exp_too_idle(), WRAP_exp_too_not_started(), WRAP_exp_too_ready(), WRAP_exp_too_start_idle(), WRAP_exp_too_start_phys(), and WRAP_init_info().
Referenced by lim_unit_test().
int test_Count_Compare | ( | const test_Test_Descriptor * | td_p, | |
const test_Cmd_Counts * | exp_p, | |||
const test_Cmd_Counts * | act_p, | |||
const char * | desc | |||
) |
Verify command count values.
td_p | Pointer to test descriptor. | |
exp_p | Pointer to expected count values. | |
act_p | Pointer to actual count values. | |
desc | Description of the information. |
0 | Count values are correct. | |
-1 | One or more count values are incorrect. |
References _test_Cmd_Counts::abort, _test_Cmd_Counts::active, _test_Cmd_Counts::calc_info, _test_Cmd_Counts::closeout, _test_Cmd_Counts::complete, _test_Test_Descriptor::depth, _test_Cmd_Counts::idle, _test_Cmd_Counts::other, _test_Cmd_Counts::reconfig, _test_Cmd_Counts::repoint, _test_Cmd_Counts::restart, show_at_level(), show_desc_stack(), _test_Cmd_Counts::start, and _test_Cmd_Counts::stop.
Referenced by SIM_check_stats().
int test_Delay | ( | const test_Test_Descriptor * | td_p, | |
const unsigned int | num_usecs | |||
) |
Delay the current task a number of microseconds.
td_p | Pointer to test descriptor. | |
num_usecs | Number of microseconds to delay. |
0 | Success. | |
-1 | Failure. |
References test_NULL_Compare(), test_Status_Success(), test_wut_handler(), and _test_Test_Descriptor::wut.
Referenced by lim_test_command(), lim_unit_test(), SIM_check_parms(), SIM_check_stats(), SIM_stop_tasks(), TLM_stop(), WRAP_check_telem(), and WRAP_send_cmd().
int test_Generic_Error | ( | const test_Test_Descriptor * | td_p, | |
const char * | fmt, | |||
const char * | str_param, | |||
const unsigned int | int_param | |||
) |
Display a generic error message.
td_p | Pointer to test descriptor. | |
fmt | Format string to display. | |
str_param | First parameter (string) for fmt string. | |
int_param | Second parameter (uint) for fmt string. |
References _test_Test_Descriptor::depth, show_at_level(), and show_desc_stack().
Referenced by sim_shutdown_task(), TLM_check_no_tlm(), and TLM_check_tlm().
int test_Info_Compare | ( | const test_Test_Descriptor * | td_p, | |
const LIM_Info * | exp_p, | |||
const LIM_Info * | act_p, | |||
const char * | desc | |||
) |
Verify the contents of LIM information.
td_p | Pointer to test descriptor. | |
exp_p | Pointer to expected information. | |
act_p | Pointer to actual information. | |
desc | Description of the information. |
0 | Information is correct. | |
-1 | Information is not correct. |
References _LIM_Info::arr_remain_sec, _test_Test_Descriptor::depth, _LIM_Info::gbm_int_dis_remain_sec, _LIM_Info::last_status, show_at_level(), show_desc_stack(), test_Show_Info(), and _LIM_Info::too_remain_sec.
Referenced by TLM_check_tlm(), and WRAP_get_info().
int test_Memory_Compare | ( | const test_Test_Descriptor * | td_p, | |
const void * | expect_p, | |||
const void * | actual_p, | |||
const void * | mask_p, | |||
const size_t | num_bytes | |||
) |
Verify the contents of a buffer in memory.
This function verifies the contents of a memory buffer and reports an error if the values are not as expected. An optional mask can be used to indicate which bits should be verified.
td_p | Pointer to test descriptor. | |
expect_p | Pointer to a memory buffer with the expected values. | |
actual_p | Pointer to the memory buffer to verify. | |
mask_p | Pointer to a memory buffer of mask values. | |
num_bytes | Number of bytes to verify within the buffer. |
0 | Buffer values are correct. | |
-1 | One or more values within the buffer are incorrect. |
References _test_Test_Descriptor::depth, show_at_level(), and show_desc_stack().
Referenced by lim_bias_acd_test(), lim_bias_cal_test(), lim_bias_tkr_test(), lim_power_cfg_test(), and lim_siu_cfg_test().
int test_NULL_Compare | ( | const test_Test_Descriptor * | td_p, | |
const unsigned int | actual, | |||
const char * | desc | |||
) |
Check a 32-bit value to make sure it is not NULL.
td_p | Pointer to test descriptor. | |
actual | Actual value. | |
desc | Description of the value. |
0 | Actual value != NULL. | |
-1 | Actual value == NULL. |
References _test_Test_Descriptor::depth, show_at_level(), and show_desc_stack().
Referenced by cmd_send_cmd(), lim_alloc_wrap(), lim_init_wrap(), sim_init_task(), test_Delay(), and WRAP_send_cmd().
int test_Parm_Compare | ( | const test_Test_Descriptor * | td_p, | |
const test_Start_Parms * | exp_p, | |||
const test_Start_Parms * | act_p, | |||
const char * | desc | |||
) |
Verify simulated task start parameter values.
td_p | Pointer to test descriptor. | |
exp_p | Pointer to expected parameter values. | |
act_p | Pointer to actual parameter values. | |
desc | Description of the information. |
0 | Parameter values are correct. | |
-1 | One or more parameter values are incorrect. |
References _test_Start_Parms::consign, _test_Start_Parms::cpus, _test_Start_Parms::db, _test_Test_Descriptor::depth, _test_Start_Parms::ignore, _test_Start_Parms::latc, _test_Start_Parms::mode, _test_Start_Parms::run, show_at_level(), and show_desc_stack().
Referenced by SIM_check_parms().
void test_Pop_State | ( | test_Test_Descriptor * | td_p | ) |
Return for a test state.
Pop a test state description from a test's state stack.
td_p | Pointer to test descriptor. |
References _test_Test_Descriptor::depth, _test_Test_Descriptor::desc, and show_banner().
Referenced by CMD_init(), CMD_rcv_cmd(), cmd_send(), CMD_send_arr_abort(), CMD_send_arr_response(), CMD_send_bias_acd(), CMD_send_bias_cal(), CMD_send_bias_tkr(), cmd_send_bulk(), CMD_send_cal_abort(), CMD_send_cal_complete(), CMD_send_cal_other(), CMD_send_cal_start(), cmd_send_cmd(), CMD_send_config_gbm(), CMD_send_config_hv(), CMD_send_config_pid(), CMD_send_diag_abort(), CMD_send_diag_complete(), CMD_send_diag_other(), CMD_send_diag_start(), CMD_send_gbm_calc_info(), CMD_send_gbm_closeout(), CMD_send_gbm_int(), CMD_send_gbm_repoint(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_latc_config(), CMD_send_latc_record(), CMD_send_latc_verify(), CMD_send_load_shed(), CMD_send_look_at_me(), CMD_send_main_feed_on(), CMD_send_no_op(), CMD_send_phys_active(), CMD_send_phys_complete(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_pig_record(), CMD_send_power_off(), CMD_send_power_on(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_safe_mode(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), lim_alloc_wrap(), lim_arr_send_grb_cmds(), lim_arr_transition(), lim_bias_acd_test(), lim_bias_cal_test(), lim_bias_tkr_test(), lim_free_wrap(), lim_gbm_send_cmds(), lim_init_wrap(), lim_pid_send_cmds(), lim_pig_send_cmds(), lim_power_cfg_test(), lim_shutdown_wrap(), lim_siu_cfg_test(), lim_test_arr(), lim_test_cal(), lim_test_command(), lim_test_control(), lim_test_diag(), lim_test_gbm(), lim_test_init(), lim_test_load_shed(), lim_test_mode(), lim_test_physics(), lim_test_pids(), lim_test_pig(), lim_test_pool(), lim_test_saa(), lim_test_shutdown(), lim_test_too(), lim_test_use_cases(), lim_unit_test(), SIM_check_parms(), SIM_check_stats(), sim_init_task(), SIM_init_tasks(), sim_shutdown_task(), SIM_shutdown_tasks(), SIM_start_tasks(), sim_stop_task(), SIM_stop_tasks(), TLM_check_tlm(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), TLM_tlm_rcvd(), WRAP_capture_cal(), WRAP_capture_diag(), WRAP_capture_phys(), WRAP_check_telem(), WRAP_get_info(), WRAP_init(), WRAP_init_with_db(), WRAP_send_cmd(), WRAP_shutdown(), WRAP_start(), WRAP_start_LIM(), WRAP_start_with_db(), WRAP_stop(), and WRAP_stop_LIM().
void test_Push_State | ( | test_Test_Descriptor * | td_p, | |
const char * | desc, | |||
const int | index | |||
) |
Enter a new test state.
Push a new test state description onto a test's state stack. This state stack provides a trace of the execution of the test.
td_p | Pointer to test descriptor. | |
desc | Description of the new state. | |
index | Generic index value. |
References _test_Test_Descriptor::depth, _test_Test_Descriptor::desc, DIM, _test_Test_Descriptor::index, show_at_level(), and show_banner().
Referenced by CMD_init(), CMD_rcv_cmd(), cmd_send(), CMD_send_arr_abort(), CMD_send_arr_response(), CMD_send_bias_acd(), CMD_send_bias_cal(), CMD_send_bias_tkr(), cmd_send_bulk(), CMD_send_cal_abort(), CMD_send_cal_complete(), CMD_send_cal_other(), CMD_send_cal_start(), cmd_send_cmd(), CMD_send_config_gbm(), CMD_send_config_hv(), CMD_send_config_pid(), CMD_send_diag_abort(), CMD_send_diag_complete(), CMD_send_diag_other(), CMD_send_diag_start(), CMD_send_gbm_calc_info(), CMD_send_gbm_closeout(), CMD_send_gbm_int(), CMD_send_gbm_repoint(), CMD_send_grb_confirm(), CMD_send_grb_finish(), CMD_send_grb_suspect(), CMD_send_hold_enter(), CMD_send_hold_exit(), CMD_send_latc_config(), CMD_send_latc_record(), CMD_send_latc_verify(), CMD_send_load_shed(), CMD_send_look_at_me(), CMD_send_main_feed_on(), CMD_send_no_op(), CMD_send_phys_active(), CMD_send_phys_complete(), CMD_send_phys_idle(), CMD_send_phys_start(), CMD_send_phys_stop(), CMD_send_pig_record(), CMD_send_power_off(), CMD_send_power_on(), CMD_send_saa_enter(), CMD_send_saa_exit(), CMD_send_safe_mode(), CMD_send_too_abort(), CMD_send_too_start(), CMD_shutdown(), lim_alloc_wrap(), lim_arr_send_grb_cmds(), lim_arr_transition(), lim_bias_acd_test(), lim_bias_cal_test(), lim_bias_tkr_test(), lim_free_wrap(), lim_gbm_send_cmds(), lim_init_wrap(), lim_pid_send_cmds(), lim_pig_send_cmds(), lim_power_cfg_test(), lim_shutdown_wrap(), lim_siu_cfg_test(), lim_test_arr(), lim_test_cal(), lim_test_command(), lim_test_control(), lim_test_diag(), lim_test_gbm(), lim_test_init(), lim_test_load_shed(), lim_test_mode(), lim_test_physics(), lim_test_pids(), lim_test_pig(), lim_test_pool(), lim_test_saa(), lim_test_shutdown(), lim_test_too(), lim_test_use_cases(), lim_unit_test(), SIM_check_parms(), SIM_check_stats(), sim_init_task(), SIM_init_tasks(), sim_shutdown_task(), SIM_shutdown_tasks(), SIM_start_tasks(), sim_stop_task(), SIM_stop_tasks(), TLM_check_tlm(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), TLM_tlm_rcvd(), WRAP_capture_cal(), WRAP_capture_diag(), WRAP_capture_phys(), WRAP_check_telem(), WRAP_get_info(), WRAP_init(), WRAP_init_with_db(), WRAP_send_cmd(), WRAP_shutdown(), WRAP_start(), WRAP_start_LIM(), WRAP_start_with_db(), WRAP_stop(), and WRAP_stop_LIM().
void test_Show | ( | const test_Test_Descriptor * | td_p, | |
const int | level, | |||
const char * | item_1, | |||
const char * | item_2 | |||
) |
Display text with indentation.
Display text with indentation appropriate for the specified level.
td_p | Pointer to test descriptor. | |
level | Indentation level. | |
item_1 | First text string to display. | |
item_2 | Second text string to display. |
References show_at_level().
Referenced by test_Show_Msg_OK().
void test_Show_Info | ( | const test_Test_Descriptor * | td_p, | |
const LIM_Info * | exp_p, | |||
const LIM_Info * | act_p | |||
) |
Display LIM info.
td_p | Pointer to test descriptor. | |
exp_p | Pointer to expected information. | |
act_p | Pointer to actual information. |
References _LIM_Info::arr_active, _LIM_Info::arr_ready, _LIM_Info::arr_remain_sec, _test_Test_Descriptor::depth, _LIM_Info::gbm_int_dis_remain_sec, _LIM_Info::gbm_pri_int_allowed, _LIM_Info::gbm_red_int_allowed, _LIM_Info::gbm_rep_allowed, _LIM_Info::grb_state, _LIM_Info::hv_allowed, _LIM_Info::last_action, _LIM_Info::last_status, _LIM_Info::lci_state, _LIM_Info::ldf_state, _LIM_Info::lpa_state, _LIM_Info::op_mode, _LIM_Info::rep_req_pending, _LIM_Info::saa_transit, show_at_level(), test_Action_Name(), test_Grb_State_Name(), test_Op_Mode_Name(), test_Other_State_Name(), test_Status_Name(), _LIM_Info::too_active, _LIM_Info::too_ready, _LIM_Info::too_remain_sec, _LIM_Info::too_started, and _LIM_Info::virt_mode.
Referenced by test_Info_Compare(), TLM_check_no_tlm(), and tlm_dispatch_ctl().
void test_Show_Item | ( | const test_Test_Descriptor * | td_p, | |
const char * | name, | |||
const char * | fmt, | |||
const char * | str_param, | |||
const unsigned int | int_param | |||
) |
Display an item of data.
This function displays an item of data in a predefined format.
td_p | Pointer to test descriptor. | |
name | Name of the item. | |
fmt | Format string to display the item's value. | |
str_param | First parameter (string) for fmt string. | |
int_param | Second parameter (uint) for fmt string. |
References _test_Test_Descriptor::depth, and show_at_level().
Referenced by CMD_send_gbm_int(), and WRAP_send_cmd().
void test_Show_Msg_OK | ( | const test_Test_Descriptor * | td_p | ) |
Indicate that the next error message is expected.
Display text that indicates that the next error message is expected.
td_p | Pointer to test descriptor. |
References test_Show().
Referenced by lim_alloc_wrap(), lim_free_wrap(), lim_init_wrap(), lim_shutdown_wrap(), WRAP_capture_cal(), WRAP_capture_diag(), WRAP_capture_phys(), WRAP_get_info(), WRAP_init(), WRAP_init_with_db(), WRAP_send_cmd(), WRAP_shutdown(), WRAP_start(), WRAP_start_with_db(), and WRAP_stop().
void test_Show_Slew | ( | const test_Test_Descriptor * | td_p, | |
const test_Slew_Info * | exp_p, | |||
const test_Slew_Info * | act_p, | |||
const char * | desc | |||
) |
Display Slew-Request command parameters.
td_p | Pointer to test descriptor. | |
exp_p | Pointer to expected information. | |
act_p | Pointer to actual information. | |
desc | Description of the packet. |
References _test_Slew_Info::accepted, _test_Slew_Info::dec, _test_Test_Descriptor::depth, _test_Slew_Info::dwell_time, _test_Slew_Info::pad, _test_Slew_Info::ra, _test_Slew_Info::sclk_seconds, _test_Slew_Info::sclk_subseconds, show_at_level(), and _test_Slew_Info::transaction_id.
Referenced by test_Slew_Compare(), TLM_check_no_tlm(), tlm_dispatch_cmd(), and tlm_dispatch_ctl_x().
void test_Sleep_Sec | ( | int | num_secs | ) |
Sleep for the specified number of seconds.
num_secs | Number of seconds to sleep. |
Referenced by show_desc_stack(), and sim_handle_start().
int test_Slew_Compare | ( | const test_Test_Descriptor * | td_p, | |
const test_Slew_Info * | exp_p, | |||
const test_Slew_Info * | act_p, | |||
const char * | desc | |||
) |
Verify Slew-Request command parameters.
td_p | Pointer to test descriptor. | |
exp_p | Pointer to expected information. | |
act_p | Pointer to actual information. | |
desc | Description of the information. |
0 | Information is correct. | |
-1 | Information is not correct. |
References _test_Test_Descriptor::depth, _test_Slew_Info::pad, _test_Slew_Info::sclk_seconds, _test_Slew_Info::sclk_subseconds, show_at_level(), show_desc_stack(), and test_Show_Slew().
Referenced by TLM_check_tlm().
int test_Status_Compare | ( | const test_Test_Descriptor * | td_p, | |
const unsigned int | expect, | |||
const unsigned int | actual, | |||
const char * | func | |||
) |
Check a MSG status code value.
Compare actual and expected status code values and display a message if they differ.
td_p | Pointer to test descriptor. | |
expect | Expected value. | |
actual | Actual value. | |
func | Name of the function that returned the status. |
0 | Actual value == Expected value | |
-1 | Actual value != Expected value. |
References _test_Test_Descriptor::depth, show_at_level(), show_desc_stack(), and show_status_name().
Referenced by lim_free_wrap(), lim_init_wrap(), lim_shutdown_wrap(), WRAP_capture_cal(), WRAP_capture_diag(), WRAP_capture_phys(), WRAP_get_info(), WRAP_init(), WRAP_init_with_db(), WRAP_send_cmd(), WRAP_shutdown(), WRAP_start(), WRAP_start_with_db(), and WRAP_stop().
const char* test_Status_Name | ( | const unsigned int | status | ) |
Return a text description of a status code.
status | Status code to interpret. |
Referenced by show_status_name(), test_Show_Info(), and wrap_free_cb().
int test_Status_Success | ( | const test_Test_Descriptor * | td_p, | |
const unsigned int | actual, | |||
const char * | func | |||
) |
Check a MSG status code to make sure it's reporting success.
td_p | Pointer to test descriptor. | |
actual | Actual value. | |
func | Name of the function that returned the status. |
0 | Actual value == Expected value | |
-1 | Actual value != Expected value. |
References _test_Test_Descriptor::depth, show_at_level(), show_desc_stack(), and show_status_name().
Referenced by CMD_init(), cmd_send_cmd(), CMD_send_gbm_int(), CMD_shutdown(), sim_init_task(), SIM_init_tasks(), sim_shutdown_task(), SIM_shutdown_tasks(), SIM_start_tasks(), sim_stop_task(), test_Delay(), TLM_check_no_tlm(), TLM_check_tlm(), TLM_init(), TLM_shutdown(), TLM_start(), TLM_stop(), TLM_tlm_rcvd(), and WRAP_send_cmd().
int test_Value32_Compare | ( | const test_Test_Descriptor * | td_p, | |
const unsigned int | expect, | |||
const unsigned int | actual, | |||
const char * | desc | |||
) |
Check a 32-bit value.
Compare actual and expected 32-bit values and display a message if they differ.
td_p | Pointer to test descriptor. | |
expect | Expected value. | |
actual | Actual value. | |
desc | Description of the value. |
0 | Actual value == Expected value | |
-1 | Actual value != Expected value. |
References _test_Test_Descriptor::depth, show_at_level(), and show_desc_stack().
Referenced by lim_alloc_wrap(), lim_init_wrap(), and TLM_check_tlm().