GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QMEM / V0-2-1 > qmem_unit_test / rhel6-64
#include <string.h>
#include <LSF/LSF.h>
#include <QMEM/QMEM.h>
#include <qmem_unit_test.h>
#include <qmem_util_wrap.h>
Functions | |
void | qmem_test_start (test_Test_Descriptor *td_p, const unsigned int bit_mask) |
Unit test for the QMEM_start_parsing() function. | |
Variables | |
static unsigned char | small_dgm [] |
Small memory dump datagram. |
** CVS $Id: qmem_test_start.c,v 1.2 2011/03/30 23:56:36 russell Exp $ **
void qmem_test_start | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for the QMEM_start_parsing() function.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |
References _WRAP_Info::act_data_p, _Context::bytes_available, _Context::bytes_dumped, _Context::cmd_fcode, _WRAP_Info::context_p, _Context::data_buf, _WRAP_Info::data_buf_bytes, _WRAP_Info::data_buf_p, _WRAP_Info::dgm_bytes, _WRAP_Info::dgm_p, _WRAP_Info::dgm_swapped, _test_Test_Descriptor::exec, _WRAP_Info::exp_ctx, _WRAP_Info::exp_data_bytes, _WRAP_Info::exp_data_p, _WRAP_Info::exp_status, _test_Test_Descriptor::fail, _Context::lat_unit, _Context::num_datagrams, QMEM_LAT_UNIT_UNKNOWN, QMEM_STATUS_BAD_CTX, QMEM_STATUS_BAD_DIR, QMEM_STATUS_BAD_HDR, QMEM_STATUS_BAD_TYPE, QMEM_STATUS_BAD_VER, QMEM_STATUS_INCOMPLETE, QMEM_STATUS_NULL_PTR, QMEM_STATUS_OK, QMEM_STATUS_SHORT, QMEM_STATUS_TRUNCATED, small_dgm, _Context::start_addr, _Context::status, test_Pop_State(), test_Push_State(), _Context::tran_id, WRAP_alloc_context(), WRAP_free_context(), WRAP_init_context(), WRAP_init_info(), and WRAP_start_parsing().
Referenced by qmem_unit_test().
unsigned char small_dgm[] [static] |
Initial value:
{ 0x80, 0x1f, 0x06, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x07, 0x77, 0x00, 0x00, 0xbf, 0x85, 0x00, 0x00, 0x00, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0xbf, 0x86, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfc, 0xbf, 0x88, 0x00, 0x80, }
Referenced by qmem_test_ctb(), qmem_test_datagram(), and qmem_test_start().