mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
HDFFV-9724 add valgrind ENV
This commit is contained in:
parent
6d3f7dea86
commit
9a477bef3a
@ -155,7 +155,10 @@
|
||||
# If using memchecker add tests without using scripts
|
||||
if (HDF5_ENABLE_USING_MEMCHECKER)
|
||||
add_test (NAME H5DUMP_PREFIX-${resultfile} COMMAND $<TARGET_FILE:h5dump> ${ARGN})
|
||||
set_tests_properties (H5DUMP_PREFIX-${resultfile} PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles/vds/prefix")
|
||||
set_tests_properties (H5DUMP_PREFIX-${resultfile} PROPERTIES
|
||||
ENVIRONMENT "HDF5_VDS_PREFIX=${PROJECT_BINARY_DIR}/testfiles/vds/"
|
||||
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles/vds/prefix"
|
||||
)
|
||||
if (NOT "${resultcode}" STREQUAL "0")
|
||||
set_tests_properties (H5DUMP_PREFIX-${resultfile} PROPERTIES WILL_FAIL "true")
|
||||
endif ()
|
||||
|
@ -119,7 +119,10 @@
|
||||
# If using memchecker add tests without using scripts
|
||||
if (HDF5_ENABLE_USING_MEMCHECKER)
|
||||
add_test (NAME H5LS_PREFIX-${resultfile} COMMAND $<TARGET_FILE:h5ls> ${ARGN})
|
||||
set_tests_properties (H5LS_PREFIX-${resultfile} PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles/vds/prefix")
|
||||
set_tests_properties (H5LS_PREFIX-${resultfile} PROPERTIES
|
||||
ENVIRONMENT "HDF5_VDS_PREFIX=\${ORIGIN}"
|
||||
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles/vds/prefix"
|
||||
)
|
||||
if ("${resultcode}" STREQUAL "1")
|
||||
set_tests_properties (H5LS_PREFIX-${resultfile} PROPERTIES WILL_FAIL "true")
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user