GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V1-0-0

Constituent: trim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

test_rim.c File Reference

RIM unit tests. More...

#include "test_rim_p.h"
#include "t_lrd_p.h"
#include "t_data_p.h"
#include "t_rim_p.h"
#include "t_map_p.h"
#include "t_record_p.h"
#include "t_latp_p.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Include dependency graph for test_rim.c:


Data Structures

struct  test
 Structure containing a name of a test a pointer to said test. More...

Defines

#define NUMBER_OF_TESTS   6
 The number of tests to run.

Typedefs

typedef int(* 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]
 Static array of tests.

Detailed Description

RIM unit tests.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

void setPtr const char *  name,
void *  ptr
 

Associate a pointer with a test.

Parameters:
name Name of the test to associate the pointer with
ptr Pointer to associate with a test

int test_rim const char *  testname  ) 
 

Iterate over a set of unit tests.

Parameters:
testname Name of the test to run ("ALL" runs all)
Returns:
Number of failed tests


Variable Documentation

test t_list[NUMBER_OF_TESTS] [static]
 

Initial value:

 {
  {"lrd",     t_lrd,     NULL},
  {"data",    t_data,    NULL},
  {"rim",     t_rim,     NULL},
  {"map",     t_map,     NULL},
  {"record",  t_record,  NULL},
  {"latp",    t_latp,    NULL}
}
Static array of tests.


Generated on Fri Jun 15 02:08:13 2007 by  doxygen 1.4.4