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_group_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_group_test.h')
-rw-r--r-- | test/API/H5_api_group_test.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/test/API/H5_api_group_test.h b/test/API/H5_api_group_test.h new file mode 100644 index 0000000..baf14c8 --- /dev/null +++ b/test/API/H5_api_group_test.h @@ -0,0 +1,65 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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_GROUP_TEST_H +#define H5_API_GROUP_TEST_H + +#include "H5_api_test.h" + +int H5_api_group_test(void); + +/********************************************** + * * + * API Group test defines * + * * + **********************************************/ + +#define GROUP_CREATE_UNDER_ROOT_GNAME "/group_under_root" + +#define GROUP_CREATE_UNDER_GROUP_REL_GNAME "child_group" +#define GROUP_CREATE_UNDER_GROUP_ABS_GNAME "child_group/grandchild_group" + +#define GROUP_CREATE_INVALID_PARAMS_GROUP_NAME "/invalid_params_group" + +#define GROUP_CREATE_ANONYMOUS_GROUP_NAME "anon_group" + +#define GROUP_CREATE_INTMD_REL_INTMD_NAME "rel_intmd" +#define GROUP_CREATE_INTMD_REL_END_NAME "rel_end" +#define GROUP_CREATE_INTMD_ABS_INTMD_NAME "abs_intmd" +#define GROUP_CREATE_INTMD_ABS_END_NAME "abs_end" +#define GROUP_CREATE_INTMD_MULT_INTMD1_NAME "mult_intmd1" +#define GROUP_CREATE_INTMD_MULT_INTMD2_NAME "mult_intmd2" +#define GROUP_CREATE_INTMD_MULT_END_NAME "mult_end" + +#define OPEN_NONEXISTENT_GROUP_TEST_GNAME "/nonexistent_group" + +#define GROUP_PROPERTY_LIST_TEST_GROUP_NAME1 "property_list_test_group1" +#define GROUP_PROPERTY_LIST_TEST_GROUP_NAME2 "property_list_test_group2" +#define GROUP_PROPERTY_LIST_TEST_DUMMY_VAL H5P_CRT_ORDER_TRACKED + +#define GROUP_GET_INFO_TEST_GROUP_NAME "group_info_test" +#define GROUP_GET_INFO_TEST_GROUP_NUMB 16 + +#define GROUP_FLUSH_GNAME "group_flush_test" + +#define GROUP_REFRESH_GNAME "group_refresh_test" + +#define NAME_BUF_SIZE 64 +#define GROUP_NUMB 16 + +#define MANY_GROUP_CREATIONS_GNAME "home_for_many_groups" +#define GROUP_NUMB_MANY 100u + +#define DEEP_GROUP_CREATIONS_GNAME "home_for_deep_groups" +#define GROUP_DEPTH 100u + +#endif |