diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 15:38:52 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 15:38:52 (GMT) |
commit | 54316ab54241f1956b5494d6130eb2aeb4a3ace0 (patch) | |
tree | 9aeb1907333a83bf5e5fc576b2f45a125a3e82d1 /java/examples/datatypes/CMakeLists.txt | |
parent | 792f90285446035202114dc8831cf5031f0d1d2c (diff) | |
download | hdf5-54316ab54241f1956b5494d6130eb2aeb4a3ace0.zip hdf5-54316ab54241f1956b5494d6130eb2aeb4a3ace0.tar.gz hdf5-54316ab54241f1956b5494d6130eb2aeb4a3ace0.tar.bz2 |
[svn-r29871] HDFFV-9743: Fix java examples Debug build commands.
rename examples clear-objects test names.
Diffstat (limited to 'java/examples/datatypes/CMakeLists.txt')
-rw-r--r-- | java/examples/datatypes/CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/java/examples/datatypes/CMakeLists.txt b/java/examples/datatypes/CMakeLists.txt index 6525506..1e305be 100644 --- a/java/examples/datatypes/CMakeLists.txt +++ b/java/examples/datatypes/CMakeLists.txt @@ -62,12 +62,15 @@ foreach (HDFJAVA_JAR ${CMAKE_JAVA_INCLUDE_PATH}) endforeach (HDFJAVA_JAR) MACRO (ADD_H5_TEST resultfile resultcode) + if (CMAKE_BUILD_TYPE MATCHES Debug) + set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=hdf5_java_debug;") + endif(CMAKE_BUILD_TYPE MATCHES Debug) add_test ( NAME JAVA_datatypes-${resultfile} COMMAND "${CMAKE_COMMAND}" -D "TEST_TESTER=${CMAKE_Java_RUNTIME};${CMAKE_Java_RUNTIME_FLAGS}" -D "TEST_PROGRAM=examples.datatypes.${resultfile}" - -D "TEST_ARGS:STRING=${ARGN}" + -D "TEST_ARGS:STRING=${CMD_ARGS}${ARGN}" -D "TEST_CLASSPATH:STRING=${CMAKE_JAVA_CLASSPATH}${CMAKE_JAVA_INCLUDE_FLAG_SEP}${${resultfile}_JAR_FILE}" -D "TEST_LIBRARY_DIRECTORY=${CMAKE_TEST_OUTPUT_DIRECTORY}" -D "TEST_FOLDER=${HDFJAVA_EXAMPLES_BINARY_DIR}" @@ -85,7 +88,7 @@ ENDMACRO (ADD_H5_TEST file) if (BUILD_TESTING) foreach (example ${HDF_JAVA_EXAMPLES}) add_test ( - NAME JAVA_datatypes-${example}-clearall-objects + NAME JAVA_datatypes-${example}-clear-objects COMMAND ${CMAKE_COMMAND} -E remove ${HDFJAVA_EXAMPLES_BINARY_DIR}/${example}.h5 @@ -93,7 +96,7 @@ if (BUILD_TESTING) ${example}.out.err ) if (NOT "${last_test}" STREQUAL "") - set_tests_properties (JAVA_datatypes-${example}-clearall-objects PROPERTIES DEPENDS ${last_test}) + set_tests_properties (JAVA_datatypes-${example}-clear-objects PROPERTIES DEPENDS ${last_test}) endif (NOT "${last_test}" STREQUAL "") add_test ( NAME JAVA_datatypes-${example}-copy-objects @@ -102,7 +105,7 @@ if (BUILD_TESTING) ${HDFJAVA_EXAMPLES_SOURCE_DIR}/testfiles/examples.datatypes.${example}.txt ${HDFJAVA_EXAMPLES_DATATYPES_BINARY_DIR}/${example}.txt ) - set_tests_properties (JAVA_datatypes-${example}-copy-objects PROPERTIES DEPENDS JAVA_datatypes-${example}-clearall-objects) + set_tests_properties (JAVA_datatypes-${example}-copy-objects PROPERTIES DEPENDS JAVA_datatypes-${example}-clear-objects) set (last_test "JAVA_datatypes-${example}-copy-objects") ADD_H5_TEST (${example} 0) endforeach (example ${HDF_JAVA_EXAMPLES}) |