GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-7-1
Constituent: mem_unit_test     Tag: sun-gcc
#include <string.h>
#include "MEM/MEM.h"
#include "MEM/MEM_dump.h"
#include "MEM/MEM_map.h"
#include "MEM/MEM_msgs.h"
#include "MSG/MSG_pubdefs.h"
#include "mem_unit_test.h"
Include dependency graph for mem_test_dump.c:
Data Structures | |
struct | _mem_DumpInfo |
Dump unit test information. More... | |
Typedefs | |
typedef _mem_DumpInfo | mem_DumpInfo |
Typedef for _mem_DumpInfo. | |
Functions | |
static int | mem_dumpInit_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Start the Memory Dump interface and verify the results. | |
static int | mem_dumpGetInfo_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Get and verify information about a dump. | |
static int | mem_dumpGetContext_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Get a dump context and verify the results. | |
static int | mem_dumpReleaseContext_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Release a dump context and verify the results. | |
static int | mem_dumpMapInit_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Start the Memory Map interface and verify the results. | |
static int | mem_dumpMapAddEntry_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Add an entry to the Memory Map and verify the results. | |
void | mem_SetRegsSubFunction (double f1, double f2, double f3, double f4, double f5, double f6, double f7, double f8) |
Set some registers to known values. | |
void | mem_SetRegs (test_Test_Descriptor *td_p, mem_DumpInfo *info_p) |
Set some registers to known values. | |
static int | mem_dumpStart_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Start a dump and verify the results. | |
static int | mem_dumpGetData_wrap (test_Test_Descriptor *td_p, int id, mem_DumpInfo *info_p) |
Get a chunk of dump data and verify the results. | |
void | mem_DumpParam_test (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Test for Memory Dump bad parameter handling. | |
void | mem_DumpContext_test (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for Memory Dump context operations. | |
void | mem_DumpMemory_test (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for nominal Memory Dump operations. | |
void | mem_DumpWrap_test (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for wrapped Memory Dump operation. | |
void | mem_DumpRegSet_test (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for CPU register Memory Dump operation. | |
void | mem_DumpPCI_test (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for PCI configuration dump. |
CVS $Id: mem_test_dump.c,v 1.7 2005/10/25 21:56:35 dmay Exp $
Test the operation of the MEM dump functions.
|
Unit test for Memory Dump context operations. Verify the handling of Memory Dump context 'get', 'release', and 'info' operations.
|
|
Get a dump context and verify the results. Wrapper for the MEM_dumpGetContext() function that validates the results.
|
|
Get a chunk of dump data and verify the results. Wrapper for the MEM_dumpGetData() function that validates the results.
|
|
Get and verify information about a dump. Wrapper for the MEM_dumpGetInfo() function that validates the results.
|
|
Start the Memory Dump interface and verify the results. Wrapper for the MEM_dumpInit() function that validates the results.
|
|
Add an entry to the Memory Map and verify the results. Wrapper for the MEM_mapAddEntry() function that validates the results.
|
|
Start the Memory Map interface and verify the results. Wrapper for the MEM_mapInit() function that validates the results.
|
|
Unit test for nominal Memory Dump operations. This test runs two simultaneous dumps (to test re-entrant interfaces). A local memory buffer is targeted for the dump. This data is dumped to the "dest" members of the mem_DumpInfo structures used to control the dumps. Two dumps are run (firstDump and secondDump). The target memory of these dumps overlap.
|
|
Test for Memory Dump bad parameter handling. Verify the handling of bad parameters by the Memory Dump functions.
|
|
Unit test for PCI configuration dump. Run unit test for PCI configuration memory dumps. Test the nominal dump operations, no extensive error handling done in this test. The following features are tested:
The following features are assumed to work:
|
|
Unit test for CPU register Memory Dump operation. This test runs a dump of the CPU registers. A local memory buffer is targeted for the dump. This data is dumped to the "dest" member of the mem_DumpInfo structure used to control the dump.
|
|
Release a dump context and verify the results. Wrapper for the MEM_dumpReleaseContext() function that validates the results.
|
|
Start a dump and verify the results. Wrapper for the MEM_StartDump() function that validates the results.
|
|
Unit test for wrapped Memory Dump operation. This test runs a single dump that wraps the source buffer a number of times. A local memory buffer is targeted for the dump. This data is dumped to the "dest" member of the mem_DumpInfo structure used to control the dump.
|
|
Set some registers to known values. Using assumptions about how the compiler uses registers, set some of them to known values.
|
|
Set some registers to known values.
|