summaryrefslogtreecommitdiffstats
path: root/test/external_common.h
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2019-07-26 20:01:40 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2019-07-26 20:01:40 (GMT)
commit59d7db40a72142b9027748e762f4b2e8038aefa9 (patch)
treed5fb56fd03d0ac0c607c9b4a9606a41ee8b721c6 /test/external_common.h
parent308393a020bd7a812c231eee8130c9365d192e18 (diff)
downloadhdf5-59d7db40a72142b9027748e762f4b2e8038aefa9.zip
hdf5-59d7db40a72142b9027748e762f4b2e8038aefa9.tar.gz
hdf5-59d7db40a72142b9027748e762f4b2e8038aefa9.tar.bz2
HDFFV-10658: setting and getting properties in API context. Porting the changes to the develop branch into the 1.10 branch: mainly the external file prefix and VDS prefix.
Diffstat (limited to 'test/external_common.h')
-rw-r--r--test/external_common.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/external_common.h b/test/external_common.h
new file mode 100644
index 0000000..f1a15b5
--- /dev/null
+++ b/test/external_common.h
@@ -0,0 +1,45 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Copyright by The HDF Group. *
+ * 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 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. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+/*
+ * Programmer: Raymond Lu <songyulu@hdfgroup.org>
+ * April, 2019
+ *
+ * Purpose: Private function for external.c and external_env.c
+ */
+#ifndef _EXTERNAL_COMMON_H
+#define _EXTERNAL_COMMON_H
+
+/* Include test header files */
+#include "h5test.h"
+
+static const char *EXT_FNAME[] = {
+ "extern_1",
+ "extern_2",
+ "extern_3",
+ "extern_4",
+ "extern_dir/file_1",
+ "extern_5",
+ NULL
+};
+
+/* A similar collection of files is used for the tests that
+ * perform file I/O.
+ */
+#define N_EXT_FILES 4
+#define PART_SIZE 25
+#define TOTAL_SIZE 100
+#define GARBAGE_PER_FILE 10
+
+herr_t reset_raw_data_files(void);
+#endif /* _EXTERNAL_COMMON_H */