GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_unit_test / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

file_unit_test.c File Reference

FILE package unit test program. More...

#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_Uplfile_upl_desc
unsigned char * file_upl_buf
static const char * dumpLine


Detailed Description

FILE package unit test program.

Author:
D.L. Wood
Tests the following constituents:


Function Documentation

int file_unit_test ( void   ) 

Performs all of the unit tests associated with the FILE package. Tests the following constituents:

  • file_hdr
  • file_swap
  • file_upl
  • file_path

Return values:
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.

Parameters:
argc The number of command line args.
argv The list of command line args.
Return values:
0 Success.
-1 Failure.

References file_unit_test().


Variable Documentation

dumpLine [static]

Initial value:

 
        "-------------------------------------------------------------------------------\n"
A separator line for display.

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.


Generated on Fri Sep 30 18:57:40 2011 by  doxygen 1.5.8