Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psTest.h File Reference


Detailed Description

Testing infrastructure functions.

Author:
Robert DeSonia, MHPCC
Version:
Revision
1.3
Name
rel6_0
Date:
Date
2005/06/08 23:40:45
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psTest.h.

#include <stdio.h>
#include "psType.h"

Include dependency graph for psTest.h:

Go to the source code of this file.

Defines

#define printPositiveTestHeader(filePtr, packageName, testPointName)   p_printPositiveTestHeader(filePtr, __FILE__, packageName, testPointName)
#define printNegativeTestHeader(filePtr, packageName, testPointName, expectedError, exitValue)   p_printNegativeTestHeader(filePtr, __FILE__, packageName, testPointName, expectedError, exitValue)
#define printFooter(filePtr, packageName, testPointName, success)   p_printFooter(filePtr, __FILE__, packageName, testPointName, success)
#define runTest(filePtr, packageName, testPointName, fcn, expectedReturn, useFork)   p_runTest(filePtr, __FILE__, packageName, testPointName, fcn, expectedReturn, useFork)
#define runTestSuite(filePtr, packageName, tests, argc, argv)   p_runTestSuite(filePtr, __FILE__, packageName, tests, argc, argv)

Typedefs

typedef psS32(* testFcn )(void)

Functions

psBool p_runTest (FILE *fp, const char *testPointFile, const char *packageName, const char *testPointName, testFcn fcn, psS32 expectedReturn, psBool useFork)
psBool p_runTestSuite (FILE *fp, const char *testPointFile, const char *packageName, testDescription tests[], psS32 argc, char *const argv[])
void p_printPositiveTestHeader (FILE *fp, const char *testPointFile, const char *packageName, const char *testPointName)
void p_printNegativeTestHeader (FILE *fp, const char *testPointFile, const char *packageName, const char *testPointName, const char *expectedError, psS32 exitValue)
void p_printFooter (FILE *fp, const char *testPointFile, const char *packageName, const char *testPointName, psBool success)


Define Documentation

#define printFooter filePtr,
packageName,
testPointName,
success   )     p_printFooter(filePtr, __FILE__, packageName, testPointName, success)
 

Definition at line 28 of file psTest.h.

#define printNegativeTestHeader filePtr,
packageName,
testPointName,
expectedError,
exitValue   )     p_printNegativeTestHeader(filePtr, __FILE__, packageName, testPointName, expectedError, exitValue)
 

Definition at line 25 of file psTest.h.

#define printPositiveTestHeader filePtr,
packageName,
testPointName   )     p_printPositiveTestHeader(filePtr, __FILE__, packageName, testPointName)
 

Definition at line 22 of file psTest.h.

#define runTest filePtr,
packageName,
testPointName,
fcn,
expectedReturn,
useFork   )     p_runTest(filePtr, __FILE__, packageName, testPointName, fcn, expectedReturn, useFork)
 

Definition at line 43 of file psTest.h.

#define runTestSuite filePtr,
packageName,
tests,
argc,
argv   )     p_runTestSuite(filePtr, __FILE__, packageName, tests, argc, argv)
 

Definition at line 46 of file psTest.h.


Typedef Documentation

typedef psS32(* testFcn)(void)
 

Definition at line 31 of file psTest.h.


Function Documentation

void p_printFooter FILE *  fp,
const char *  testPointFile,
const char *  packageName,
const char *  testPointName,
psBool  success
 

void p_printNegativeTestHeader FILE *  fp,
const char *  testPointFile,
const char *  packageName,
const char *  testPointName,
const char *  expectedError,
psS32  exitValue
 

void p_printPositiveTestHeader FILE *  fp,
const char *  testPointFile,
const char *  packageName,
const char *  testPointName
 

psBool p_runTest FILE *  fp,
const char *  testPointFile,
const char *  packageName,
const char *  testPointName,
testFcn  fcn,
psS32  expectedReturn,
psBool  useFork
 

psBool p_runTestSuite FILE *  fp,
const char *  testPointFile,
const char *  packageName,
testDescription  tests[],
psS32  argc,
char *const   argv[]
 


Generated on Wed Jun 15 11:01:09 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.1