summaryrefslogtreecommitdiffstats
path: root/fortran/test
diff options
context:
space:
mode:
authorM. Scot Breitenfeld <brtnfld@hdfgroup.org>2019-05-16 20:20:32 (GMT)
committerM. Scot Breitenfeld <brtnfld@hdfgroup.org>2019-05-16 20:20:32 (GMT)
commit1f505e5ab27ec3132e974a72438e44b2dc42156e (patch)
tree3e5b3e1d7c2ce8b679e7a0a8340f012c0ef115eb /fortran/test
parent32c4900e89d845f0490bdbabddd2aab9c42165de (diff)
downloadhdf5-1f505e5ab27ec3132e974a72438e44b2dc42156e.zip
hdf5-1f505e5ab27ec3132e974a72438e44b2dc42156e.tar.gz
hdf5-1f505e5ab27ec3132e974a72438e44b2dc42156e.tar.bz2
removed H5VL constants
Diffstat (limited to 'fortran/test')
-rw-r--r--fortran/test/null_vol_connector.c150
-rw-r--r--fortran/test/null_vol_connector.h25
-rw-r--r--fortran/test/test_vol_connector.sh.in84
3 files changed, 0 insertions, 259 deletions
diff --git a/fortran/test/null_vol_connector.c b/fortran/test/null_vol_connector.c
deleted file mode 100644
index e30a659..0000000
--- a/fortran/test/null_vol_connector.c
+++ /dev/null
@@ -1,150 +0,0 @@
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * 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. *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* Purpose: A simple virtual object layer (VOL) connector with almost no
- * functionality that is used for testing basic plugin handling
- * (registration, etc.).
- */
-
-#include <stdlib.h>
-#include "H5PLextern.h"
-
-#include "null_vol_connector.h"
-
-static void *H5VL_file_create(const char *name);
-static herr_t H5VL_file_close(void *file);
-
-/* The VOL class struct */
-static const H5VL_class_t null_vol_g = {
- 0, /* version */
- NULL_VOL_CONNECTOR_VALUE, /* value */
- NULL_VOL_CONNECTOR_NAME, /* name */
- 0, /* capability flags */
- NULL, /* initialize */
- NULL, /* terminate */
- (size_t)0, /* info size */
- NULL, /* info copy */
- NULL, /* info compare */
- NULL, /* info free */
- NULL, /* info to str */
- NULL, /* str to info */
- NULL, /* get_object */
- NULL, /* get_wrap_ctx */
- NULL, /* wrap_object */
- NULL, /* free_wrap_ctx */
- { /* attribute_cls */
- NULL, /* create */
- NULL, /* open */
- NULL, /* read */
- NULL, /* write */
- NULL, /* get */
- NULL, /* specific */
- NULL, /* optional */
- NULL /* close */
- },
- { /* dataset_cls */
- NULL, /* create */
- NULL, /* open */
- NULL, /* read */
- NULL, /* write */
- NULL, /* get */
- NULL, /* specific */
- NULL, /* optional */
- NULL /* close */
- },
- { /* datatype_cls */
- NULL, /* commit */
- NULL, /* open */
- NULL, /* get_size */
- NULL, /* specific */
- NULL, /* optional */
- NULL /* close */
- },
- { /* file_cls */
- H5VL_file_create, /* create */
- NULL, /* open */
- NULL, /* get */
- NULL, /* specific */
- NULL, /* optional */
- H5VL_file_close /* close */
- },
- { /* group_cls */
- NULL, /* create */
- NULL, /* open */
- NULL, /* get */
- NULL, /* specific */
- NULL, /* optional */
- NULL /* close */
- },
- { /* link_cls */
- NULL, /* create */
- NULL, /* copy */
- NULL, /* move */
- NULL, /* get */
- NULL, /* specific */
- NULL /* optional */
- },
- { /* object_cls */
- NULL, /* open */
- NULL, /* copy */
- NULL, /* get */
- NULL, /* specific */
- NULL /* optional */
- },
- { /* request_cls */
- NULL, /* wait */
- NULL, /* notify */
- NULL, /* cancel */
- NULL, /* specific */
- NULL, /* optional */
- NULL /* free */
- },
- NULL /* optional */
-};
-
-typedef struct H5VL_t {
- void *under_object;
-} H5VL_t;
-
-/* These two functions are necessary to load this plugin using
- * the HDF5 library.
- */
-
-H5PL_type_t H5PLget_plugin_type(void) {return H5PL_TYPE_VOL;}
-const void *H5PLget_plugin_info(void) {return &null_vol_g;}
-
-static void *
-H5VL_file_create(const char *name)
-{
- hid_t under_fapl;
- H5VL_t *file;
-
- printf(" H5VL_file_create \n");
-
- file = (H5VL_t *)calloc(1, sizeof(H5VL_t));
-
- file->under_object = fopen(name, "w");
-
- return (void *)file;
-}
-
-static herr_t
-H5VL_file_close(void *file)
-{
- H5VL_t *f = (H5VL_t *)file;
-
- fclose(f->under_object);
- free(f);
-
- return 1;
-}
-
diff --git a/fortran/test/null_vol_connector.h b/fortran/test/null_vol_connector.h
deleted file mode 100644
index 11c8826..0000000
--- a/fortran/test/null_vol_connector.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * 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. *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* Purpose: A simple virtual object layer (VOL) connector with almost no
- * functionality that is used for testing basic plugin handling
- * (registration, etc.).
- */
-
-#ifndef _null_vol_connector_H
-#define _null_vol_connector_H
-
-#define NULL_VOL_CONNECTOR_VALUE ((H5VL_class_value_t)160)
-#define NULL_VOL_CONNECTOR_NAME "null_vol_connector"
-
-#endif /* _null_vol_connector_H */
-
diff --git a/fortran/test/test_vol_connector.sh.in b/fortran/test/test_vol_connector.sh.in
deleted file mode 100644
index ee27f3b..0000000
--- a/fortran/test/test_vol_connector.sh.in
+++ /dev/null
@@ -1,84 +0,0 @@
-#! /bin/sh
-#
-# 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.
-#
-# This shell script is for testing VOL connector plugins.
-#
-srcdir=@srcdir@
-TOP_BUILDDIR=@top_builddir@
-
-EXIT_SUCCESS=0
-EXIT_FAILURE=1
-
-nerrors=0
-verbose=yes
-exit_code=$EXIT_SUCCESS
-
-TEST_NAME=vol_connector
-TEST_BIN=`pwd`/$TEST_NAME
-FROM_DIR=`pwd`/.libs
-case $(uname) in
- CYGWIN* )
- NULL_VOL_PLUGIN="$FROM_DIR/cygnull_vol_connector*"
- ;;
- *)
- NULL_VOL_PLUGIN="$FROM_DIR/libnull_vol_connector*"
- ;;
-esac
-TEMP_PLUGIN_DIR=null_vol_plugin_dir
-CP="cp -p -r" # Use -p to preserve mode,ownership, timestamps
-RM="rm -rf"
-
-# Print a line-line message left justified in a field of 70 characters
-# beginning with the word "Testing".
-#
-TESTING() {
- SPACES=" "
- echo "Testing $* $SPACES" | cut -c1-70 | tr -d '\012'
-}
-
-# Main Body
-# Create test directory if necessary.
-test -d $TEMP_PLUGIN_DIR || mkdir -p $TEMP_PLUGIN_DIR
-if [ $? != 0 ]; then
- echo "Failed to create VOL connector plugin test directory ($TEMP_PLUGIN_DIR)"
- exit $EXIT_FAILURE
-fi
-
-# Copy plugin for the tests.
-$CP $NULL_VOL_PLUGIN $TEMP_PLUGIN_DIR
-if [ $? != 0 ]; then
- echo "Failed to copy NULL VOL plugin ($NULL_VOL_PLUGIN) to test directory."
- exit $EXIT_FAILURE
-fi
-
-# setup plugin path
-ENVCMD="env HDF5_PLUGIN_PATH=${TEMP_PLUGIN_DIR}"
-
-# Run the test
-$ENVCMD $TEST_BIN
-if [ $? != 0 ]; then
- nerrors=`expr $nerrors + 1`
-fi
-
-# print results
-if test $nerrors -ne 0 ; then
- echo "$nerrors errors encountered"
- exit_code=$EXIT_FAILURE
-else
- echo "All VOL plugin tests passed."
- exit_code=$EXIT_SUCCESS
-fi
-
-# Clean up temporary files/directories and leave
-#$RM $TEMP_PLUGIN_DIR
-
-exit $exit_code