2006-04-29 14:20:50 +08:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
* Copyright by The HDF Group. *
|
2006-04-29 14:20:50 +08:00
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
2007-02-07 22:56:24 +08:00
|
|
|
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
* access to either file, you may request a copy from help@hdfgroup.org. *
|
2006-04-29 14:20:50 +08:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu>
|
|
|
|
* Friday, April 28, 2006
|
|
|
|
*
|
|
|
|
* Purpose: Test support stuff.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _H5HLTEST_H
|
|
|
|
#define _H5HLTEST_H
|
|
|
|
|
2006-09-27 02:25:03 +08:00
|
|
|
/* Get the HDF5 test header */
|
|
|
|
#include "h5test.h"
|
|
|
|
|
2006-04-29 14:20:50 +08:00
|
|
|
/* Include the High-Level private header */
|
|
|
|
#include "H5HLprivate2.h"
|
|
|
|
|
2006-09-27 02:25:03 +08:00
|
|
|
/* Macros used in HL tests */
|
2006-04-29 14:20:50 +08:00
|
|
|
#define TESTING2(WHAT) {printf("%-70s", "Testing " WHAT); fflush(stdout);}
|
|
|
|
#define TESTING3(WHAT) {printf("%-70s", "" WHAT); fflush(stdout);}
|
|
|
|
|
2015-03-11 03:02:41 +08:00
|
|
|
/* Implements verbose 'assert' with 'goto error' exit */
|
2012-03-31 16:49:35 +08:00
|
|
|
#define VERIFY(condition, string) do { if (!(condition)) FAIL_PUTS_ERROR(string) } while(0)
|
|
|
|
|
[svn-r29269] Purpose: Improve Packet Table library
Description:
The Packet Table API used to have fixed-length and variable-length functions
(i.e., H5PTcreate_fl and H5PTcreate_vl), but in 2006, the vlen functions
were ifdef'ed out with VLPT_REMOVED, see HDFFV-442. The majority of this
revision includes removing unused vlen stuff, adding various vlen tests,
initial code cleanup, and first pass of commenting.
Details:
- Removed the VLPT_REMOVED ifdef, but keep H5PTis_varlen and the free
function because they are useful or even needed, but the free
function's name is changed to be more appropriate for both
read/write buffers, i.e., H5PTfree_vlen_buff.
- The new test file, test_packet_vlen.c, contains tests showing packet
tables, containing various types of vlen data, can be created with
the fixed-length function
- Two accessor functions were added per HDFFV-8623/patch 003.
/* Returns the ID of the dataset associated with the packet table */
hid_t H5PTget_dataset(hid_t table_id);
/* Returns the ID of the datatype the packet table uses */
hid_t H5PTget_type(hid_t table_id);
- Various cleanup: replacing 0/-1 with SUCCEED/FAIL and H5I_BADID with
H5I_INVALID_HID, and removing many warnings.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
2016-03-05 03:49:14 +08:00
|
|
|
int test_packet_table_with_varlen(void);
|
|
|
|
|
2006-04-29 14:20:50 +08:00
|
|
|
#endif /* _H5HLTEST_H */
|
|
|
|
|