summaryrefslogtreecommitdiffstats
path: root/test/API/H5_api_file_test.h
blob: 368d037f46f7d42c1137e62eeedc4573e450e5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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://www.hdfgroup.org/licenses.               *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef H5_API_FILE_TEST_H
#define H5_API_FILE_TEST_H

#include "H5_api_test.h"

int H5_api_file_test(void);

/*********************************************
 *                                           *
 *           API File test defines           *
 *                                           *
 *********************************************/

#define FILE_CREATE_TEST_FILENAME "test_file.h5"

#define FILE_CREATE_INVALID_PARAMS_FILE_NAME "invalid_params_file.h5"

#define FILE_CREATE_EXCL_FILE_NAME "excl_flag_file.h5"

#define NONEXISTENT_FILENAME "nonexistent_file.h5"

#define OVERLAPPING_FILENAME            "overlapping_file.h5"
#define OVERLAPPING_OPEN_TEST_GRP_NAME  "group"
#define OVERLAPPING_OPEN_TEST_DSET_NAME "dataset"

#define FILE_PERMISSION_TEST_FILENAME    "file_permission.h5"
#define FILE_PERMISSION_TEST_GRP_NAME    "group"
#define FILE_PERMISSION_TEST_DSET_NAME   "Dataset"
#define FILE_PERMISSION_TEST_DSET2_NAME  "Dataset2"
#define FILE_PERMISSION_TEST_ATTR_NAME   "attribute"
#define FILE_PERMISSION_TEST_NAMED_DTYPE "named_dtype"

#define FILE_FLUSH_TEST_FILENAME "flush_file.h5"

#define FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL 65536
#define FILE_PROPERTY_LIST_TEST_FNAME1        "property_list_test_file1.h5"
#define FILE_PROPERTY_LIST_TEST_FNAME2        "property_list_test_file2.h5"

#define FILE_INTENT_TEST_FILENAME "intent_test_file.h5"

#define GET_OBJ_COUNT_TEST_FILENAME1   "file_obj_count1.h5"
#define GET_OBJ_COUNT_TEST_FILENAME2   "file_obj_count2.h5"
#define GET_OBJ_COUNT_TEST_GRP_NAME    "/group"
#define GET_OBJ_COUNT_TEST_DSET_NAME   "Dataset"
#define GET_OBJ_COUNT_TEST_ATTR_NAME   "Attribute"
#define GET_OBJ_COUNT_TEST_NAMED_DTYPE "named_dtype"

#define FILE_MOUNT_TEST_FILENAME "file_mount.h5"
#define FILE_MOUNT_TEST_GRP_NAME "group"

#define GET_FILE_NAME_TEST_FNAME       "file_name_retrieval.h5"
#define GET_FILE_NAME_TEST_GRP_NAME    "group"
#define GET_FILE_NAME_TEST_DSET_NAME   "dataset"
#define GET_FILE_NAME_TEST_ATTR_NAME   "attribute"
#define GET_FILE_NAME_TEST_NAMED_DTYPE "datatype"

#define FILESPACE_INFO_FILENAME "filespace_info.h5"
#define FSP_SIZE512             (hsize_t)512

#define FILE_GET_ID_TEST_FILENAME "test_file_id.h5"

#define FILE_CLOSE_DEGREE_FILENAME "test_close_degree.h5"

#define GET_FREE_SECTIONS_FILENAME "test_free_sections.h5"

#define FILE_SIZE_FILENAME "file_size.h5"
#define KB                 1024U

#define FILE_INFO_FILENAME "file_info.h5"

#define DOUBLE_GROUP_OPEN_FILENAME "double_group_open.h5"

#endif