summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-04 13:46:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-04 13:46:09 (GMT)
commit76313da943d4de0f1b94dc9f15ef9b0134445df0 (patch)
tree9da3e7b62bb651c12dc75db3000201fb70986272 /c++
parente89007f62146abdf81edc6a7ab17bf08c654bd88 (diff)
downloadhdf5-76313da943d4de0f1b94dc9f15ef9b0134445df0.zip
hdf5-76313da943d4de0f1b94dc9f15ef9b0134445df0.tar.gz
hdf5-76313da943d4de0f1b94dc9f15ef9b0134445df0.tar.bz2
[svn-r20183] Add HDF5_USING_MEMCHECKER guards around script mode ADD_TEST. This will replace the list of ignore tests in CTestCustom.cmake file.
Bring back from trunk Tested: local linux
Diffstat (limited to 'c++')
-rw-r--r--c++/test/CMakeLists.txt24
1 files changed, 13 insertions, 11 deletions
diff --git a/c++/test/CMakeLists.txt b/c++/test/CMakeLists.txt
index 21cb9c0..b6e645a4 100644
--- a/c++/test/CMakeLists.txt
+++ b/c++/test/CMakeLists.txt
@@ -61,17 +61,19 @@ IF (HDF5_TEST_VFD)
ENDIF (DIRECT_VFD)
MACRO (ADD_VFD_TEST vfdname resultcode)
- ADD_TEST (
- NAME VFD-${vfdname}-cpp_testhdf5
- COMMAND "${CMAKE_COMMAND}"
- -D "TEST_PROGRAM=$<TARGET_FILE:cpp_testhdf5>"
- -D "TEST_ARGS:STRING="
- -D "TEST_VFD:STRING=${vfdname}"
- -D "TEST_EXPECT=${resultcode}"
- -D "TEST_OUTPUT=cpp_testhdf5"
- -D "TEST_FOLDER=${PROJECT_BINARY_DIR}"
- -P "${HDF5_RESOURCES_DIR}/vfdTest.cmake"
- )
+ IF (NOT HDF5_ENABLE_USING_MEMCHECKER)
+ ADD_TEST (
+ NAME VFD-${vfdname}-cpp_testhdf5
+ COMMAND "${CMAKE_COMMAND}"
+ -D "TEST_PROGRAM=$<TARGET_FILE:cpp_testhdf5>"
+ -D "TEST_ARGS:STRING="
+ -D "TEST_VFD:STRING=${vfdname}"
+ -D "TEST_EXPECT=${resultcode}"
+ -D "TEST_OUTPUT=cpp_testhdf5"
+ -D "TEST_FOLDER=${PROJECT_BINARY_DIR}"
+ -P "${HDF5_RESOURCES_DIR}/vfdTest.cmake"
+ )
+ ENDIF (NOT HDF5_ENABLE_USING_MEMCHECKER)
ENDMACRO (ADD_VFD_TEST)
# Run test with different Virtual File Driver