diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-05-02 19:52:39 (GMT) |
---|---|---|
committer | Jordan Henderson <jhenderson@hdfgroup.org> | 2023-05-03 18:26:57 (GMT) |
commit | c75b4af1a2630ace445da1ec661191601583f79a (patch) | |
tree | a345b94dc09dd1ea1c38c1136a133b00939ba395 /test/API/H5_api_datatype_test.h | |
parent | 75d64819b050bb30b2a2751d9ba55651f9a1af79 (diff) | |
download | hdf5-c75b4af1a2630ace445da1ec661191601583f79a.zip hdf5-c75b4af1a2630ace445da1ec661191601583f79a.tar.gz hdf5-c75b4af1a2630ace445da1ec661191601583f79a.tar.bz2 |
Add initial version of HDF5 API tests (#2877)
Diffstat (limited to 'test/API/H5_api_datatype_test.h')
-rw-r--r-- | test/API/H5_api_datatype_test.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/test/API/H5_api_datatype_test.h b/test/API/H5_api_datatype_test.h new file mode 100644 index 0000000..753f9b2 --- /dev/null +++ b/test/API/H5_api_datatype_test.h @@ -0,0 +1,79 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by The HDF Group. * + * 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 COPYING file, which can be found at the root of the source code * + * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. * + * If you do not have access to either file, you may request a copy from * + * help@hdfgroup.org. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef H5_API_DATATYPE_TEST_H +#define H5_API_DATATYPE_TEST_H + +#include "H5_api_test.h" + +int H5_api_datatype_test(void); + +/************************************************* + * * + * API Datatype test defines * + * * + *************************************************/ + +#define DATATYPE_CREATE_TEST_DATASET_DIMS 2 +#define DATATYPE_CREATE_TEST_GROUP_NAME "committed_datatype_creation_test" +#define DATATYPE_CREATE_TEST_TYPE_NAME "test_type" + +#define DATATYPE_CREATE_INVALID_PARAMS_TEST_SPACE_RANK 2 +#define DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME "committed_datatype_creation_invalid_params_test" +#define DATATYPE_CREATE_INVALID_PARAMS_TEST_TYPE_NAME "committed_datatype_creation_invalid_params_datatype" + +#define DATATYPE_CREATE_ANONYMOUS_GROUP_NAME "anonymous_type_creation_test" +#define DATATYPE_CREATE_ANONYMOUS_TYPE_NAME "anon_type" + +#define DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME "anonymous_type_creation_invalid_params_test" + +#define DATATYPE_CREATE_EMPTY_TYPES_TEST_CMPD_TYPE_NAME "compound_type" +#define DATATYPE_CREATE_EMPTY_TYPES_TEST_ENUM_TYPE_NAME "enum_type" +#define DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME "committed_datatype_empty_types_test" + +#define RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME "recommit_committed_type_test" + +#define DATATYPE_OPEN_TEST_GROUP_NAME "datatype_open_test" +#define DATATYPE_OPEN_TEST_TYPE_NAME "open_test_datatype" + +#define DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME "datatype_open_invalid_params_test" +#define DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME "open_invalid_params_test_datatype" + +#define DATATYPE_REOPEN_TEST_SPACE_RANK 2 +#define DATATYPE_REOPEN_TEST_GROUP_NAME "datatype_reopen_test" + +#define DATASET_CREATE_WITH_DATATYPE_TEST_DATASET_DIMS 2 +#define DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME "dataset_create_with_committed_type_test" +#define DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME "committed_type_test_dtype1" +#define DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME "committed_type_test_dset" + +#define ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_SPACE_RANK 2 +#define ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME "attribute_create_with_committed_type_test" +#define ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME "committed_type_test_dtype2" +#define ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME "committed_type_test_attr" + +#define DATATYPE_DELETE_TEST_GROUP_NAME "datatype_deletion_test" +#define DATATYPE_DELETE_TEST_DTYPE_NAME "delete_test_dtype" + +#define DATATYPE_RESURRECT_TEST_GROUP_NAME "datatype_resurrection_test" +#define DATATYPE_RESURRECT_TEST_DTYPE_NAME "delete_test_dtype" +#define DATATYPE_RESURRECT_TEST_DTYPE_NAME2 "resurrected_dtype" + +#define DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME "datatype_property_list_test_group" +#define DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1 "property_list_test_datatype1" +#define DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2 "property_list_test_datatype2" + +#define PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME "predefined_type_commit_test" + +#define MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME "modify_committed_type_test" + +#endif |