GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RIM / V3-1-2 > trim / mv2304
#include <test_rim_p.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Classes | |
struct | test |
Structure containing a name of a test a pointer to said test. More... | |
Defines | |
#define | NUMBER_OF_TESTS 5 |
The number of tests to run. | |
Typedefs | |
typedef unsigned(* | pTest )(void *ptr) |
Pointer to a test function. | |
Functions | |
void | setPtr (const char *name, void *ptr) |
Associate a pointer with a test. | |
int | test_rim (const char *testname) |
Iterate over a set of unit tests. | |
Variables | |
static test | t_list [NUMBER_OF_TESTS] |
$Id: test_rim.c,v 1.3 2011/03/27 06:43:06 saxton Exp $
void setPtr | ( | const char * | name, | |
void * | ptr | |||
) |
Associate a pointer with a test.
name | Name of the test to associate the pointer with | |
ptr | Pointer to associate with a test |
References NUMBER_OF_TESTS, and test::ptr.
int test_rim | ( | const char * | testname | ) |
Iterate over a set of unit tests.
testname | Name of the test to run ("ALL" runs all) |
References NUMBER_OF_TESTS.
test t_list[NUMBER_OF_TESTS] [static] |