Document API IEC60730 Library
|
Header file list of test cases for the verification operate functions in variable memory module. More...
Header file list of test cases for the verification operate functions in variable memory module.
IEC60730 Variable Memory Unit Tests
These test cases run unit tests to check the operation of the functions in variable memory module.
Hardware setup:
void test_sl_iec60730_vmc_bist_checking_allow_run_test | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If sl_iec60730_vmc_pre_run_marchxc_step() returns false, meaning it is not allowed to run test sl_iec60730_vmc_marchxc_step() to check the ram section. Function sl_iec60730_vmc_marchxc_step() will not be called when checking ram section.
void test_sl_iec60730_vmc_bist_fail_check_integrity_backup_section | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If the initialization value is successful, the functions run the marchxc algorithms to check the backup section pass, but checking the integrity of the variable iec60730_rt_check fail. The function sl_iec60730_vmc_bist() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_bist_fail_check_integrity_ram_section | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If the initialization value is successful, the functions run the marchxc algorithms to check the ram section pass, but checking the integrity of the variable iec60730_rt_check fail. The function sl_iec60730_vmc_bist() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_bist_fail_marchxc_check_backup_section | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If the initialization value is successful, the functions run the marchxc algorithms to check the backup section fail. The function sl_iec60730_vmc_bist() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_bist_fail_marchxc_check_ram_section | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If the initialization value is successful, the functions run the marchxc algorithms to check the ram and backup section fail. The function sl_iec60730_vmc_bist() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_bist_fail_stack_test_over_flow | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If check that the value of the iec60730_stack_test_over_flow variable located in the ending stack area is different from the initial initial value. The function sl_iec60730_vmc_bist() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_bist_pass_all_check_sections | ( | void | ) |
Public Check sl_iec60730_vmc_bist() operate
If the initialization value is successful, the functions run the marchxc algorithms to check the ram and backup section pass, checking the integrity of the variable iec60730_rt_check pass, check stack over flow pass The function sl_iec60730_vmc_bist() returns the value SL_IEC60730_TEST_PASSED.
void test_sl_iec60730_vmc_init_param_null | ( | void | ) |
Public Check sl_iec60730_vmc_init() operate
If the input parameter has the value NULL, the components in the initialization value are NULL, the vmc test initialization flag fails. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_init_start_address_greater_than_end_address | ( | void | ) |
Public Check sl_iec60730_vmc_init() operate
If the input parameter has the value start member greater than value end member, the vmc test initialization flag fails. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_post_fail_check_integrity_backup_section | ( | void | ) |
Public Check sl_iec60730_vmc_post() operate
If the initialization value is successful, the functions run the marchc algorithms to check the backup section pass, but checking the integrity of the variable iec60730_rt_check fail. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_post_fail_check_integrity_ram_section | ( | void | ) |
Public Check sl_iec60730_vmc_post() operate
If the initialization value is successful, the functions run the marchc algorithms to check the ram section pass, but checking the integrity of the variable iec60730_rt_check fail. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_post_fail_marchc_check_backup_section | ( | void | ) |
Public Check sl_iec60730_vmc_post() operate
If the initialization value is successful, the functions run the marchc algorithms to check the backup section fail. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_post_fail_marchc_check_ram_section | ( | void | ) |
Public Check sl_iec60730_vmc_post() operate
If the initialization value is successful, the functions run the marchc algorithms to check the ram and backup section fail. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_FAILED.
void test_sl_iec60730_vmc_post_pass_all_check_sections | ( | void | ) |
Public Check sl_iec60730_vmc_post() operate
If the initialization value is successful, the functions run the marchc algorithms to check the ram and backup section pass, checking the integrity of the variable iec60730_rt_check pass. The function sl_iec60730_vmc_post() returns the value SL_IEC60730_TEST_PASSED.
sl_iec60730_test_result_t unit_test_mock_check_integrity | ( | void | ) |
Public Check sl_iec60730_vmc_init() operate
Function simulates the result of iec60730_rt_check variable value integrity check.