summaryrefslogtreecommitdiffstats
path: root/java/examples/intro
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-04-14 22:14:38 (GMT)
committerGitHub <noreply@github.com>2023-04-14 22:14:38 (GMT)
commit69c720bffa4980779dc06d3cf9cd9f271bc8588b (patch)
treebaf1b0c1a178d792ab44743d1c111f5ffc545594 /java/examples/intro
parent69dcba9b6bd55ba38eb334c1508a54a778a36958 (diff)
downloadhdf5-69c720bffa4980779dc06d3cf9cd9f271bc8588b.zip
hdf5-69c720bffa4980779dc06d3cf9cd9f271bc8588b.tar.gz
hdf5-69c720bffa4980779dc06d3cf9cd9f271bc8588b.tar.bz2
Merge "Use additional CPUs" and related fixes (#2742)
* 2720 Fix java depends and pdb lib install * 2695 Use additional CPUs in GitHub actions
Diffstat (limited to 'java/examples/intro')
-rw-r--r--java/examples/intro/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/examples/intro/CMakeLists.txt b/java/examples/intro/CMakeLists.txt
index a1e2a51..685ef90 100644
--- a/java/examples/intro/CMakeLists.txt
+++ b/java/examples/intro/CMakeLists.txt
@@ -56,12 +56,16 @@ if (BUILD_TESTING AND HDF5_TEST_EXAMPLES AND HDF5_TEST_SERIAL)
get_property (target_name TARGET ${HDF5_JAVA_JNI_LIB_TARGET} PROPERTY OUTPUT_NAME)
set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=${target_name}$<$<OR:$<CONFIG:Debug>,$<CONFIG:Developer>>:${CMAKE_DEBUG_POSTFIX}>;")
+ set (last_test "")
foreach (example ${HDF_JAVA_EXAMPLES})
add_test (
NAME JAVA_intro-${example}-clear-objects
COMMAND ${CMAKE_COMMAND} -E remove
${HDFJAVA_EXAMPLES_BINARY_DIR}/${example}.h5
)
+ if (last_test)
+ set_tests_properties (JAVA_intro-${example}-clear-objects PROPERTIES DEPENDS ${last_test})
+ endif ()
add_test (
NAME JAVA_intro-${example}-copy-objects
@@ -97,6 +101,7 @@ if (BUILD_TESTING AND HDF5_TEST_EXAMPLES AND HDF5_TEST_SERIAL)
set_tests_properties (JAVA_intro-${example}-clean-objects PROPERTIES
DEPENDS JAVA_intro-${example}
)
+ set (last_test "JAVA_intro-${example}-clean-objects")
endforeach ()
endif ()