GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> TRD / V0-0-1 > test_trd / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

TRD_utidefs.h File Reference

Definitions for standardized test printout. More...


Defines

#define _ZZ   ( 0 )
 Operation "<unkown>".
#define _LT   ( 1 )
 Operation "less than".
#define _LE   ( 2 )
 Operation "less than or equal".
#define _EQ   ( 3 )
 Operation "equal".
#define _GE   ( 4 )
 Operation "greater than or equal".
#define _GT   ( 5 )
 Operation "greater than".
#define _NE   ( 6 )
 Operation "not equal".
#define _SZZ   ( 0 )
 Operation "<unkown>".
#define _SVE   ( 1 )
 Operation "string value equal".
#define _SLE   ( 2 )
 Operation "string length equal".
#define _SRV   ( 3 )
 Operation "just survive".

Functions

unsigned int TRD_action (const char *txt)
 Announce an action.
unsigned int TRD_announceMajor (const char *txt)
 Major test announcement.
unsigned int TRD_announceMajorEnd (const char *txt, unsigned int ret)
 Major test end announcement.
unsigned int TRD_announceMinor (const char *txt)
 Minor test announcement.
unsigned int TRD_announceMinorEnd (const char *txt, unsigned int ret)
 Minor test end announcement.
unsigned int TRD_testInt (const char *txt, unsigned int val, unsigned int op, unsigned int lim)
 Test an integer value.
unsigned int TRD_testPtr (const char *txt, const void *val, unsigned int op, const void *lim)
 Test a pointer (32 or 64 bit).
unsigned int TRD_testStr (const char *txt, const char *val, unsigned int op, const char *lim)
 Test an integer value.


Detailed Description

Definitions for standardized test printout.

CVS $Id: TRD_utidefs.h,v 1.2 2011/03/28 21:41:07 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int TRD_action ( const char *  txt  ) 

Announce an action.

Parameters:
txt Text string embedded in test dump

Referenced by TRD_testControl(), TRD_testDatabase(), and TRD_testRow().

unsigned int TRD_announceMajor ( const char *  txt  ) 

Major test announcement.

Parameters:
txt Text string embedded in test dump

Referenced by TRD_testControl(), TRD_testDatabase(), and TRD_testRow().

unsigned int TRD_announceMajorEnd ( const char *  txt,
unsigned int  ret 
)

Major test end announcement.

Parameters:
txt Text string embedded in test dump
ret Pass/fail

Referenced by TRD_testControl(), TRD_testDatabase(), and TRD_testRow().

unsigned int TRD_announceMinor ( const char *  txt  ) 

Minor test announcement.

Parameters:
txt Text string embedded in test dump

Referenced by TRD_testControl(), TRD_testDatabase(), and TRD_testRow().

unsigned int TRD_announceMinorEnd ( const char *  txt,
unsigned int  ret 
)

Minor test end announcement.

Parameters:
txt Text string embedded in test dump
ret Pass/fail

Referenced by TRD_testControl(), TRD_testDatabase(), and TRD_testRow().

unsigned int TRD_testInt ( const char *  txt,
unsigned int  val,
unsigned int  op,
unsigned int  lim 
)

Test an integer value.

Parameters:
txt Text string embedded in test dump
val The value to test
op The operation
lim The value to test against

References _EQ, _GE, _GT, _LE, _LT, _NE, and _ZZ.

Referenced by TRD_testAllReset(), TRD_testControl(), TRD_testDatabase(), and TRD_testRow().

unsigned int TRD_testPtr ( const char *  txt,
const void *  val,
unsigned int  op,
const void *  lim 
)

Test a pointer (32 or 64 bit).

Parameters:
txt Text string embedded in test dump
val The value to test
op The operation
lim The value to test against

References _EQ, _GE, _GT, _LE, _LT, _NE, and _ZZ.

Referenced by TRD_testAllReset().

unsigned int TRD_testStr ( const char *  txt,
const char *  val,
unsigned int  op,
const char *  lim 
)

Test an integer value.

Parameters:
txt Text string embedded in test dump
val The string to test
op The operation
lim The string to test against

References _SLE, _SRV, _SVE, and _ZZ.


Generated on Tue Nov 29 20:12:24 2011 by  doxygen 1.5.8