diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-11-16 16:38:40 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-11-16 16:38:40 (GMT) |
commit | 186d01285a70848570482c853d00c151323981fa (patch) | |
tree | 886a29ac6fb08d737e773e80b8386b5b16c5321f /test | |
parent | 7fd26f00b7826d36d8ec5681a17849bb17fd2cee (diff) | |
download | hdf5-186d01285a70848570482c853d00c151323981fa.zip hdf5-186d01285a70848570482c853d00c151323981fa.tar.gz hdf5-186d01285a70848570482c853d00c151323981fa.tar.bz2 |
[svn-r19790] CMake: Correct Error tests. Add Deprecated Symbols option.
Tested: local linux
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c27f43f..5c3a9d0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -284,8 +284,8 @@ SET (H5_TESTS earray btree2 fheap - error_test - err_compat + #error_test + #err_compat tcheck_version testmeta #links_env @@ -339,21 +339,41 @@ TARGET_LINK_LIBRARIES (ttsafe ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) ADD_TEST (NAME ttsafe COMMAND $<TARGET_FILE:ttsafe>) +#-- Adding test for err_compat +IF (HDF5_ENABLE_DEPRECATED_SYMBOLS) + ADD_EXECUTABLE (err_compat ${HDF5_TEST_SOURCE_DIR}/err_compat.c) + H5_NAMING (err_compat) + TARGET_WIN_PROPERTIES (err_compat) + TARGET_LINK_LIBRARIES (err_compat ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) + + ADD_TEST (NAME err_compat COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:err_compat>" + -D "TEST_ARGS:STRING=" + -D "TEST_EXPECT=0" + -D "TEST_MASK_ERROR=true" + -D "TEST_OUTPUT=err_compat.txt" + -D "TEST_REFERENCE=err_compat_1" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" + ) +ENDIF (HDF5_ENABLE_DEPRECATED_SYMBOLS) + #-- Adding test for error_test -#ADD_EXECUTABLE (error_test ${HDF5_TEST_SOURCE_DIR}/error_test.c) -#H5_NAMING (error_test) -#TARGET_WIN_PROPERTIES (error_test) -#TARGET_LINK_LIBRARIES (error_test ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) -# -#ADD_TEST (NAME error_test COMMAND "${CMAKE_COMMAND}" -# -D "TEST_PROGRAM=$<TARGET_FILE:error_test>" -# -D "TEST_ARGS:STRING=" -# -D "TEST_EXPECT=0" -# -D "TEST_OUTPUT=error_test.txt" -# -D "TEST_REFERENCE=error_test1" -# -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" -# -P "${HDF5_RESOURCES_DIR}/runTest.cmake" -#) +ADD_EXECUTABLE (error_test ${HDF5_TEST_SOURCE_DIR}/error_test.c) +H5_NAMING (error_test) +TARGET_WIN_PROPERTIES (error_test) +TARGET_LINK_LIBRARIES (error_test ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) + +ADD_TEST (NAME error_test COMMAND "${CMAKE_COMMAND}" + -D "TEST_PROGRAM=$<TARGET_FILE:error_test>" + -D "TEST_ARGS:STRING=" + -D "TEST_EXPECT=0" + -D "TEST_MASK_ERROR=true" + -D "TEST_OUTPUT=error_test.txt" + -D "TEST_REFERENCE=error_test_1" + -D "TEST_FOLDER=${PROJECT_BINARY_DIR}" + -P "${HDF5_RESOURCES_DIR}/runTest.cmake" +) #-- Adding test for links_env ADD_EXECUTABLE (links_env ${HDF5_TEST_SOURCE_DIR}/links_env.c) |