GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-2 > latc_test_embd / rad750
#include "select_p.h"
#include "t_data_p.h"
#include "t_map_p.h"
#include "t_type_p.h"
#include "t_fi_p.h"
#include "t_addr_p.h"
#include "t_consume_p.h"
#include "msg_init_p.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "t_fo_p.h"
#include "t_create_p.h"
Classes | |
struct | test |
Structure containing a name of a test a pointer to said test. More... | |
Defines | |
#define | NUMBER_OF_TESTS 8 |
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 | t_latc (const char *testname, unsigned verbose) |
Iterate over a set of unit tests. | |
Variables | |
static test | t_list [NUMBER_OF_TESTS] |
Static array of tests. |
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 t_latc | ( | const char * | testname, | |
unsigned | verbose | |||
) |
Iterate over a set of unit tests.
testname | Name of the test to run ("ALL" runs all) | |
verbose | Non-zero starts the MSG systems, 0 doesn't |
References _msg_init(), and NUMBER_OF_TESTS.