GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_unit_test / rhel4-32
Defines | |
#define | FILE_UPL_SIZE 0x10000 |
Functions | |
int | file_hdr_test_sizeof (void) |
int | file_hdr_test_param (void) |
int | file_hdr_test_verify (void) |
int | file_hdr_test_set (void) |
int | file_hdr_test_get (void) |
int | file_path_test_param (void) |
int | file_path_test_func (void) |
int | file_swap_test_swap (void) |
int | file_upl_test_param (void) |
int | file_upl_test_func (void) |
int | file_upl_test_err (void) |
#define FILE_UPL_SIZE 0x10000 |
The size in bytes of maximum upload for this test.
Referenced by file_unit_test(), file_upl_print(), file_upl_test_err(), file_upl_test_func(), and file_upl_test_param().
int file_hdr_test_get | ( | void | ) |
Test that the file_hdr member get functions correctly extract values for file headers.
0 | Success. | |
-1 | Failure |
References file_hdr_buf_1, and file_hdr_buf_2.
Referenced by file_unit_test().
int file_hdr_test_param | ( | void | ) |
Performs invalid and out of range tests on parameters for file_hdr library functions.
0 | Success. | |
-1 | Failure |
References dumpLine, and file_hdr_buf_0.
Referenced by file_unit_test().
int file_hdr_test_set | ( | void | ) |
Test that the file_hdr header member set functions correctly create and insert values for file headers.
0 | Success. | |
-1 | Failure |
References dumpLine, and file_hdr_buf_0.
Referenced by file_unit_test().
int file_hdr_test_sizeof | ( | void | ) |
Performs checks on return values from file_hdr sizeof library functions.
0 | Success. | |
-1 | Failure |
Referenced by file_unit_test().
int file_hdr_test_verify | ( | void | ) |
Test that the file_hdr verification functions detect valid LAT file headers and reject invalid LAT file headers.
0 | Success. | |
-1 | Failure |
References dumpLine, file_hdr_buf_0, file_hdr_buf_3, and file_hdr_buf_4.
Referenced by file_unit_test().
int file_path_test_func | ( | void | ) |
Test that the file_path functions work correctly on sample paths and file ID's.
0 | Success. | |
-1 | Failure |
References file_id_0, file_id_1, file_id_5, file_id_6, file_path_0, file_path_1, file_path_5, file_path_6, file_usr_dev_5, and file_usr_dev_6.
Referenced by file_unit_test().
int file_path_test_param | ( | void | ) |
Performs invalid and out of range tests on parameters for file_path library functions.
0 | Success. | |
-1 | Failure |
References dumpLine.
Referenced by file_unit_test().
int file_swap_test_swap | ( | void | ) |
Test that the file_swap byte swapping functions correctly manipulate LAT file headers from external to local format.
0 | Success. | |
-1 | Failure |
References file_hdr_buf_0, file_hdr_buf_1, file_hdr_buf_2, file_hdr_buf_swap_1, and file_hdr_buf_swap_2.
Referenced by file_unit_test().
int file_upl_test_err | ( | void | ) |
Tests the error handling capabilities of the file upload state machine. A number of state, sequence, and formatting errors are induced, and the appropriate reaction checked for.
0 | Success. | |
-1 | Failure. |
References _FILE_Upl_Info::buf_addr, dumpLine, _FILE_Upl_Info::error_code, _FILE_Upl_Info::error_count, file_upl_buf, file_upl_cancel_1, file_upl_commit_0, file_upl_commit_7, file_upl_commit_8, file_upl_data_0_A, file_upl_data_3_A, file_upl_data_3_B, file_upl_data_6_A, file_upl_data_6_B, file_upl_data_6_C, file_upl_data_6_D, file_upl_data_6_E, file_upl_data_7_A, file_upl_data_7_B, file_upl_data_7_C, file_upl_data_7_E, file_upl_info(), file_upl_print(), FILE_UPL_SIZE, file_upl_start_0, file_upl_start_2, file_upl_start_3, file_upl_start_4, file_upl_start_5, file_upl_start_6, file_upl_start_7, file_upl_start_8, FILE_UPL_STATE_ERROR, FILE_UPL_STATE_LOAD, FILE_UPL_STATE_START, FILE_uplCommit(), FILE_uplExit(), FILE_uplInfo(), FILE_uplInit(), FILE_uplPkt(), FILE_uplReset(), FILE_uplSetError(), _FILE_Upl_Info::id_commit, _FILE_Upl_Info::offset_current, _FILE_Upl_Info::pkt_count, _FILE_Upl_Info::size_commit, _FILE_Upl_Info::size_current, _FILE_Upl_Info::size_total, and _FILE_Upl_Info::state.
Referenced by file_unit_test().
int file_upl_test_func | ( | void | ) |
Tests the basic functionality of the file upload state machine by invoking the library using some nominal file upload packet sample data sets.
0 | Success. | |
-1 | Failure. |
References _FILE_Upl_Info::buf_addr, dumpLine, _FILE_Upl_Info::error_code, _FILE_Upl_Info::error_count, file_upl_buf, file_upl_cancel_0, file_upl_commit_0, file_upl_commit_1, file_upl_data_0, file_upl_data_0_A, file_upl_data_0_B, file_upl_data_0_C, file_upl_data_0_D, file_upl_data_0_E, file_upl_data_0_size, file_upl_data_1, file_upl_data_1_A, file_upl_data_1_B, file_upl_data_1_C, file_upl_data_1_D, file_upl_data_1_E, file_upl_data_1_F, file_upl_data_1_G, file_upl_data_1_size, file_upl_info(), file_upl_print(), FILE_UPL_SIZE, file_upl_start_0, file_upl_start_1, FILE_UPL_STATE_COMMIT, FILE_UPL_STATE_LOAD, FILE_UPL_STATE_START, FILE_uplCommit(), FILE_uplData(), FILE_uplExit(), FILE_uplInfo(), FILE_uplInit(), FILE_uplPkt(), FILE_uplReset(), FILE_uplStart(), _FILE_Upl_Info::id_commit, _FILE_Upl_Info::offset_current, _FILE_Upl_Info::pkt_count, _FILE_Upl_Info::size_commit, _FILE_Upl_Info::size_current, _FILE_Upl_Info::size_total, and _FILE_Upl_Info::state.
Referenced by file_unit_test().
int file_upl_test_param | ( | void | ) |
Performs invalid and out of range tests on parameters for file_upl library functions.
0 | Success. | |
-1 | Failure |
References dumpLine, file_upl_buf, file_upl_data_0_A, file_upl_data_0_size, FILE_UPL_SIZE, file_upl_start_0, FILE_uplCancel(), FILE_uplCommit(), FILE_uplData(), FILE_uplExit(), FILE_uplInfo(), FILE_uplInit(), FILE_uplPkt(), FILE_uplReset(), FILE_uplSetError(), and FILE_uplStart().
Referenced by file_unit_test().