diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-09-21 17:22:43 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-09-21 17:22:43 (GMT) |
commit | 937cfb0c26fe7f2a38cc379ae71a4c6a5f5d3087 (patch) | |
tree | 6d208135867cbea64aee590b215637cc517c0786 /test/CMakeLists.txt | |
parent | d6c6a34a8f5876d21dee052c74426b0606b62d13 (diff) | |
download | hdf5-937cfb0c26fe7f2a38cc379ae71a4c6a5f5d3087.zip hdf5-937cfb0c26fe7f2a38cc379ae71a4c6a5f5d3087.tar.gz hdf5-937cfb0c26fe7f2a38cc379ae71a4c6a5f5d3087.tar.bz2 |
[svn-r19458] Add CMake tests for check-vfd; includes new vfdTest.cmake script and OPTION HDF5_TEST_VFD
Tested: local linux
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0bec69f..906afb5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -270,6 +270,43 @@ TARGET_LINK_LIBRARIES (ttsafe ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) ADD_TEST (NAME ttsafe COMMAND $<TARGET_FILE:ttsafe>) +IF (HDF5_TEST_VFD) + + SET (VFD_LIST + sec2 + stdio + core + split + multi + family + ) + + IF (DIRECT_VFD) + SET (VFD_LIST ${VFD_LIST} direct) + ENDIF (DIRECT_VFD) + + MACRO (ADD_VFD_TEST vfdname resultcode) + FOREACH (test ${H5_TESTS}) + ADD_TEST ( + NAME VFD-${vfdname}-${test} + COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:${test}>" + -D "TEST_ARGS:STRING=" + -D "TEST_VFD:STRING=${vfdname}" + -D "TEST_EXPECT=${resultcode}" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -P "${HDF5_RESOURCES_DIR}/vfdTest.cmake" + ) + ENDFOREACH (test ${H5_TESTS}) + ENDMACRO (ADD_VFD_TEST) + + # Run test with different Virtual File Driver + FOREACH (vfd ${VFD_LIST}) + ADD_VFD_TEST (${vfd} 0) + ENDFOREACH (vfd ${VFD_LIST}) + +ENDIF (HDF5_TEST_VFD) + ############################################################################## ############################################################################## ### T H E G E N E R A T O R S ### |