GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
FILE / V3-7-5
Constituent: file_unit_test     Tag: mv2304
Interface Data Structures File List Data Fields Globals
file_unit_test_upl.c File Reference
FILE package unit tests for file upload software.
More...
#include "stdio.h"
#include "string.h"
#include "FILE/FILE_upl.h"
#include "FILE/FILE_hdr.h"
#include "ZLIB/zlib.h"
#include "MSG/MSG_pubdefs.h"
#include "file_unit_test_private.h"
Include dependency graph for file_unit_test_upl.c:
Detailed Description
FILE package unit tests for file upload software.
- Author:
- D.L. Wood
Function Documentation
void file_upl_info |
( |
FILE_Upl_Info * |
info, |
|
|
const char * |
str |
|
) |
[static] |
|
|
Prints the current state of the file upload state machine.
- Parameters:
-
info | The state machine public information structure. |
str | A message to display at top of printout. |
- Return values:
-
|
void file_upl_print |
( |
FILE_Upl_Info * |
info, |
|
|
const char * |
str |
|
) |
[static] |
|
|
Displays the data held in the file upload assembly buffer.
- Parameters:
-
info | The state machine public information structure. |
str | A message to display at top of printout. |
- Return values:
-
|
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.
- Return values:
-
|
Here is the call graph for this function:
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.
- Return values:
-
|
Here is the call graph for this function:
int file_upl_test_param |
( |
void |
|
) |
|
|
|
Performs invalid and out of range tests on parameters for file_upl library functions.
- Return values:
-
|
Here is the call graph for this function:
Variable Documentation
|
Initial value:
"-------------------------------------------------------------------------------\n"
A separator line for display. |
|
A bad upload object for error testing. |
|
A pointer to the file upload assembly buf. |
|
A binary image of an upload cancel telecommand packet. |
|
A binary image of an upload cancel telecommand packet.
CCSDS size = 10 (too small) |
|
A binary image of an upload commit telecommand packet.
file ID = 0x20c1941f |
|
A binary image of an upload commit telecommand packet.
file ID = 0x49800016 |
|
A binary image of an upload commit telecommand packet.
file ID = 0x20c1941f |
|
A binary image of an upload commit telecommand packet.
CCSDS size = 10 (too small) |
|
A binary image of a sample file. Contained in packets file_upl_data_0_X. |
|
A binary image of an upload data telecommand packet.
offset = 0 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 48 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 96 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 144 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 192 size = 16 |
|
A binary image of a sample file. Contained in packets file_upl_data_1_X. |
|
A binary image of an upload data telecommand packet.
offset = 0 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 48 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 96 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 144 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 192 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 240 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 288 size = 6 |
|
A binary image of an upload data telecommand packet.
offset = 0 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 1000 (out of bounds) data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 0 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 48 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 96 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 144 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 192 size = 20 (out of bounds) |
|
A binary image of an upload data telecommand packet.
offset = 0 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 48 data size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 96 size = 48 |
|
A binary image of an upload data telecommand packet.
offset = 192 size = 16 |
|
A pointer to the file upload descriptor. |
|
A binary image of an upload start telecommand packet.
data pkt count = 5 file size = 208 |
|
A binary image of an upload start telecommand packet.
data pkt count = 7 file size = 294 |
|
A binary image of an upload start telecommand packet.
file size = 1 MB (too large) |
|
A binary image of an upload start telecommand packet.
data pkt count = 5 file size = 208 |
|
A binary image of an upload start telecommand packet.
APID = 0 (not a file upload telecommand) |
|
A binary image of an upload start telecommand packet.
Func code = 10 (not a file upload telecommand) |
|
A binary image of an upload start telecommand packet.
data pkt count = 5 file size = 208 |
|
A binary image of an upload start telecommand packet.
data pkt count = 5 file size = 208 |
|
A binary image of an upload start telecommand packet.
CCSDS size = 4 (too small) |
Generated on Wed Oct 5 22:41:12 2005 by
1.3.3