GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_unit_test / rad750
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_printProc.h>
#include <PBI/Endianness.h>
#include <PBS/PBS.h>
#include <PBS/MBA.h>
#include <PBS/TASK.h>
#include <FBS/FBS_pubrtos.h>
#include <FILE/file_unit_test.h>
#include <FILE/FILE_upl.h>
#include <file_unit_test_private.h>
Functions | |
int | file_unit_test (void) |
int | main (int argc, char **argv) |
Variables | |
unsigned char * | file_hdr_buf_0 |
FILE_Upl * | file_upl_desc |
unsigned char * | file_upl_buf |
static const char * | dumpLine |
Tests the following constituents:
int file_unit_test | ( | void | ) |
Performs all of the unit tests associated with the FILE package. Tests the following constituents:
0 | Success. | |
-1 | Failure |
References dumpLine, file_hdr_buf_0, file_hdr_test_get(), file_hdr_test_param(), file_hdr_test_set(), file_hdr_test_sizeof(), file_hdr_test_verify(), file_path_test_func(), file_path_test_param(), file_swap_test_swap(), file_upl_buf, FILE_UPL_SIZE, file_upl_test_err(), file_upl_test_func(), file_upl_test_param(), and FILE_uplGet().
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
The UNIX application entry point.
argc | The number of command line args. | |
argv | The list of command line args. |
0 | Success. | |
-1 | Failure. |
References file_unit_test().
dumpLine [static] |
Initial value:
"-------------------------------------------------------------------------------\n"
A pointer to a scratch file header buffer.
Referenced by file_hdr_test_param(), file_hdr_test_set(), file_hdr_test_verify(), file_swap_test_swap(), and file_unit_test().
A pointer to the file upload assembly buf.
Referenced by file_unit_test(), file_upl_test_err(), file_upl_test_func(), and file_upl_test_param().
A pointer to the file upload descriptor.