diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-18 20:59:00 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-18 20:59:00 (GMT) |
commit | 215c872226bc099bb216b6f141dfd3706a4ab4c0 (patch) | |
tree | 9c8cce96567919e22745abcfd880c299eba010f9 /test | |
parent | 9eb1d607d87d18e3d4f20a9d4efc51f89d91cbe7 (diff) | |
download | hdf5-215c872226bc099bb216b6f141dfd3706a4ab4c0.zip hdf5-215c872226bc099bb216b6f141dfd3706a4ab4c0.tar.gz hdf5-215c872226bc099bb216b6f141dfd3706a4ab4c0.tar.bz2 |
[svn-r21256] Add libinfo and test to cmake - JIRA 1243
Tested: local linux
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index fe4dc5b..ab19fea 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -462,6 +462,20 @@ ADD_TEST (NAME links_env COMMAND "${CMAKE_COMMAND}" ) SET_TESTS_PROPERTIES(links_env PROPERTIES DEPENDS h5test-clear-links_env-objects) +#-- Adding test for libinfo +SET (GREP_RUNNER ${PROJECT_BINARY_DIR}/GrepRunner.cmake) +FILE (WRITE ${GREP_RUNNER} + "FILE (STRINGS \${TEST_PROGRAM} TEST_RESULT REGEX \"SUMMARY OF THE HDF5 CONFIGURATION\") +IF (\${TEST_RESULT} STREQUAL \"0\") + MESSAGE (FATAL_ERROR \"Failed: The output: \${TEST_RESULT} of \${TEST_PROGRAM} did not contain SUMMARY OF THE HDF5 CONFIGURATION\") +ELSE (\${TEST_RESULT} STREQUAL \"0\") + MESSAGE (STATUS \"COMMAND Result: \${TEST_RESULT}\") +ENDIF (\${TEST_RESULT} STREQUAL \"0\") +" +) + +ADD_TEST (NAME testlibinfo COMMAND ${CMAKE_COMMAND} -D "TEST_PROGRAM=$<TARGET_FILE:${HDF5_LIB_TARGET}>" -P "${GREP_RUNNER}") + ############################################################################## ############################################################################## ### V F D T E S T S ### |