diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-04-25 15:43:54 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-04-25 15:44:06 (GMT) |
commit | e2eaac93386feadef194962cb258e660038d39f1 (patch) | |
tree | c9fccaede8d6bb52046c7133ee45cdbd0262a5d8 /test/CMakeTests.cmake | |
parent | 4fbe80acc27bc0e84eec9880c3c4257802e5bae5 (diff) | |
download | hdf5-e2eaac93386feadef194962cb258e660038d39f1.zip hdf5-e2eaac93386feadef194962cb258e660038d39f1.tar.gz hdf5-e2eaac93386feadef194962cb258e660038d39f1.tar.bz2 |
ESE-97 add vol_plugin test to CMake builds
Diffstat (limited to 'test/CMakeTests.cmake')
-rw-r--r-- | test/CMakeTests.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake index 8c4e1ce..3e6add0 100644 --- a/test/CMakeTests.cmake +++ b/test/CMakeTests.cmake @@ -1293,6 +1293,25 @@ endif () ############################################################################## ############################################################################## +############################################################################## +### V O L P L U G I N T E S T S +############################################################################## +if (BUILD_SHARED_LIBS) + if (WIN32) + set (CMAKE_SEP "\;") + set (BIN_REL_PATH "../../") + else () + set (CMAKE_SEP ":") + set (BIN_REL_PATH "../") + endif () + + add_test (NAME H5PLUGIN-vol_plugin COMMAND $<TARGET_FILE:vol_plugin>) + set_tests_properties (H5PLUGIN-vol_plugin PROPERTIES + ENVIRONMENT "HDF5_PLUGIN_PATH=${CMAKE_BINARY_DIR}/null_vol_plugin_dir;srcdir=${HDF5_TEST_BINARY_DIR}" + WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR} + ) +endif () + if (HDF5_TEST_PASSTHROUGH_VOL) include (CMakePassthroughVOLTests.cmake) endif () |