00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00002 * Copyright by The HDF Group. * 00003 * Copyright by the Board of Trustees of the University of Illinois. * 00004 * All rights reserved. * 00005 * * 00006 * This file is part of HDF5. The full HDF5 copyright notice, including * 00007 * terms governing use, modification, and redistribution, is contained in * 00008 * the files COPYING and Copyright.html. COPYING can be found at the root * 00009 * of the source code distribution tree; Copyright.html can be found at the * 00010 * root level of an installed copy of the electronic HDF5 document set and * 00011 * is linked from the top-level documents page. It can also be found at * 00012 * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * 00013 * access to either file, you may request a copy from help@hdfgroup.org. * 00014 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00015 00016 /* Test header for Packet Table C++ wrapper API */ 00017 /* These tests are not as thorough as the tests for the C API because 00018 * the C++ API is simply a wrapper. We don't need to test the 00019 * actual Packet Table functionality, just that the C APIs are 00020 * invoked correctly. 00021 */ 00022 00023 #ifndef PTABLETEST 00024 #define PTABLETEST 00025 00026 #include "H5PacketTable.h" 00027 #include "H5Cpp.h" 00028 #include "h5hltest.h" 00029 00030 static hid_t fileID; 00031 00032 /* Test some basic functionality; adding and getting records */ 00033 int BasicTest(void); 00034 00035 /* Test a compound fixed-length datatype */ 00036 int TestCompoundDatatype(void); 00037 00038 /* Test the GetNext functions and their indexes */ 00039 int TestGetNext(void); 00040 00041 /* Make sure that setting compression through the C++ API works. */ 00042 int TestCompress(void); 00043 00044 /* Ensure that the functions return the correct errors in 00045 * response to invalid indexes */ 00046 int TestErrors(void); 00047 00048 /* Test getting multiple records at once using GetPacket */ 00049 int TestGetPacket(void); 00050 00051 /* Create two packet tables at once using compound datatypes. 00052 Test for unusual interactions between multiple packet tables. */ 00053 int SystemTest(void); 00054 00055 /* Test the variable length dataset functionality */ 00056 int VariableLengthTest(void); 00057 00058 #endif /* PTABLETEST */