Document API IEC60730 Library
Functions

Header file list of test cases for the verification operate functions in variable memory module. More...

Functions

sl_iec60730_test_result_t unit_test_mock_check_integrity (void)
 
void test_sl_iec60730_vmc_init_param_null (void)
 
void test_sl_iec60730_vmc_init_start_address_greater_than_end_address (void)
 
void test_sl_iec60730_vmc_post_pass_all_check_sections (void)
 
void test_sl_iec60730_vmc_post_fail_marchc_check_ram_section (void)
 
void test_sl_iec60730_vmc_post_fail_marchc_check_backup_section (void)
 
void test_sl_iec60730_vmc_post_fail_check_integrity_ram_section (void)
 
void test_sl_iec60730_vmc_post_fail_check_integrity_backup_section (void)
 
void test_sl_iec60730_vmc_bist_pass_all_check_sections (void)
 
void test_sl_iec60730_vmc_bist_fail_marchxc_check_ram_section (void)
 
void test_sl_iec60730_vmc_bist_fail_marchxc_check_backup_section (void)
 
void test_sl_iec60730_vmc_bist_fail_check_integrity_ram_section (void)
 
void test_sl_iec60730_vmc_bist_fail_check_integrity_backup_section (void)
 
void test_sl_iec60730_vmc_bist_checking_allow_run_test (void)
 
void test_sl_iec60730_vmc_bist_fail_stack_test_over_flow (void)
 

Detailed Description

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:

Function Documentation

◆ test_sl_iec60730_vmc_bist_checking_allow_run_test()

void test_sl_iec60730_vmc_bist_checking_allow_run_test ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_bist_fail_check_integrity_backup_section()

void test_sl_iec60730_vmc_bist_fail_check_integrity_backup_section ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_bist_fail_check_integrity_ram_section()

void test_sl_iec60730_vmc_bist_fail_check_integrity_ram_section ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_bist_fail_marchxc_check_backup_section()

void test_sl_iec60730_vmc_bist_fail_marchxc_check_backup_section ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_bist_fail_marchxc_check_ram_section()

void test_sl_iec60730_vmc_bist_fail_marchxc_check_ram_section ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_bist_fail_stack_test_over_flow()

void test_sl_iec60730_vmc_bist_fail_stack_test_over_flow ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_bist_pass_all_check_sections()

void test_sl_iec60730_vmc_bist_pass_all_check_sections ( void  )

Public Check sl_iec60730_vmc_bist() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_init_param_null()

void test_sl_iec60730_vmc_init_param_null ( void  )

Public Check sl_iec60730_vmc_init() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_init_start_address_greater_than_end_address()

void test_sl_iec60730_vmc_init_start_address_greater_than_end_address ( void  )

Public Check sl_iec60730_vmc_init() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_post_fail_check_integrity_backup_section()

void test_sl_iec60730_vmc_post_fail_check_integrity_backup_section ( void  )

Public Check sl_iec60730_vmc_post() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_post_fail_check_integrity_ram_section()

void test_sl_iec60730_vmc_post_fail_check_integrity_ram_section ( void  )

Public Check sl_iec60730_vmc_post() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_post_fail_marchc_check_backup_section()

void test_sl_iec60730_vmc_post_fail_marchc_check_backup_section ( void  )

Public Check sl_iec60730_vmc_post() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_post_fail_marchc_check_ram_section()

void test_sl_iec60730_vmc_post_fail_marchc_check_ram_section ( void  )

Public Check sl_iec60730_vmc_post() operate

Returns
None.

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.

◆ test_sl_iec60730_vmc_post_pass_all_check_sections()

void test_sl_iec60730_vmc_post_pass_all_check_sections ( void  )

Public Check sl_iec60730_vmc_post() operate

Returns
None.

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.

◆ unit_test_mock_check_integrity()

sl_iec60730_test_result_t unit_test_mock_check_integrity ( void  )

Public Check sl_iec60730_vmc_init() operate

Returns
boolean.

Function simulates the result of iec60730_rt_check variable value integrity check.