summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-03-20 18:21:28 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-03-20 18:21:28 (GMT)
commit59a9d9a0c67ea2a848a6aaad544db651a9fa4192 (patch)
tree7932a45a650c459c98013f0b61cfc3c72362a6b0 /test
parent6563fc39b17543f01fd8e888774c43a75628737f (diff)
downloadhdf5-59a9d9a0c67ea2a848a6aaad544db651a9fa4192.zip
hdf5-59a9d9a0c67ea2a848a6aaad544db651a9fa4192.tar.gz
hdf5-59a9d9a0c67ea2a848a6aaad544db651a9fa4192.tar.bz2
[svn-r23403] Refactor windows code:
windows uses ';' as path separator windows default path is different windows find files needs '*.*'
Diffstat (limited to 'test')
-rw-r--r--test/plugin_lib/CMakeLists.txt8
-rw-r--r--test/plugin_lib/dynlib1.c8
-rw-r--r--test/plugin_lib/dynlib1.h55
3 files changed, 9 insertions, 62 deletions
diff --git a/test/plugin_lib/CMakeLists.txt b/test/plugin_lib/CMakeLists.txt
index e45e848..6435688 100644
--- a/test/plugin_lib/CMakeLists.txt
+++ b/test/plugin_lib/CMakeLists.txt
@@ -34,10 +34,6 @@ SET (H5_TEST_PLUGIN_LIB_SRCS
${HDF5_TEST_PLUGIN_LIB_SOURCE_DIR}/dynlib1.c
)
-SET (H5_TEST_PLUGIN_LIB_HDRS
- ${HDF5_TEST_PLUGIN_LIB_SOURCE_DIR}/dynlib1.h
-)
-
#-----------------------------------------------------------------------------
# Generate the H5srcdir_str.h file containing user settings needed by compilation
#-----------------------------------------------------------------------------
@@ -45,7 +41,7 @@ SET (srcdir ${CMAKE_CURRENT_SOURCE_DIR})
CONFIGURE_FILE (${HDF5_TEST_SOURCE_DIR}/H5srcdir_str.h.in H5srcdir_str.h @ONLY)
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR})
-ADD_LIBRARY (${HDF5_TEST_PLUGIN_LIB_TARGET} ${LIB_TYPE} ${H5_TEST_PLUGIN_LIB_SRCS} ${H5_TEST_PLUGIN_LIB_HDRS})
+ADD_LIBRARY (${HDF5_TEST_PLUGIN_LIB_TARGET} ${LIB_TYPE} ${H5_TEST_PLUGIN_LIB_SRCS})
TARGET_LINK_LIBRARIES (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
#SET_GLOBAL_VARIABLE( HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_TEST_PLUGIN_LIB_TARGET}")
H5_SET_LIB_OPTIONS (
@@ -84,4 +80,4 @@ TARGET_LINK_LIBRARIES (plugin ${HDF5_TEST_PLUGIN_LIB_TARGET})
SET_TARGET_PROPERTIES (plugin PROPERTIES FOLDER test)
ADD_TEST (NAME H5PLUGIN-plugin COMMAND $<TARGET_FILE:plugin>)
-SET_TESTS_PROPERTIES (H5PLUGIN-plugin PROPERTIES ENVIRONMENT HDF5_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins)
+SET_TESTS_PROPERTIES (H5PLUGIN-plugin PROPERTIES ENVIRONMENT "HDF5_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins/
diff --git a/test/plugin_lib/dynlib1.c b/test/plugin_lib/dynlib1.c
index 1f4fff8..d663bd7 100644
--- a/test/plugin_lib/dynlib1.c
+++ b/test/plugin_lib/dynlib1.c
@@ -19,7 +19,13 @@
*
* Purpose: Tests the plugin module (H5PL)
*/
-#include "dynlib1.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <hdf5.h>
+
+static size_t H5Z_filter_dynlib1(unsigned int flags, size_t cd_nelmts,
+ const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf);
/* This message derives from H5Z */
const H5Z_class2_t H5Z_DYNLIB1[1] = {{
diff --git a/test/plugin_lib/dynlib1.h b/test/plugin_lib/dynlib1.h
deleted file mode 100644
index fba626f..0000000
--- a/test/plugin_lib/dynlib1.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * 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 files COPYING and Copyright.html. COPYING can be found at the root *
- * of the source code distribution tree; Copyright.html can be found at the *
- * root level of an installed copy of the electronic HDF5 document set and *
- * is linked from the top-level documents page. It can also be found at *
- * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
- * access to either file, you may request a copy from help@hdfgroup.org. *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/*
- * Programmer: Raymond Lu
- * 13 February 2013
- *
- * Purpose: Tests the plugin module (H5PL)
- */
-#ifndef DYNLIB1_H__
-#define DYNLIB1_H__
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <hdf5.h>
-
-/* plugins always export */
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5PLUGIN_DLL __declspec(dllexport)
- #define H5PLUGIN_DLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5PLUGIN_DLL __attribute__ ((visibility("default")))
- #define H5PLUGIN_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
-
-#define FILTER_DYNLIB1_VERS 1
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- H5PLUGIN_DLL const H5PL_type_t H5PL_get_plugin_type(void);
- H5PLUGIN_DLL const H5Z_class2_t* H5PL_get_plugin_info(void);
-
-/* Local prototypes for filter functions */
- static size_t H5Z_filter_dynlib1(unsigned int flags, size_t cd_nelmts,
- const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* DYNLIB1_H__ */