Skip to content

Conversation

mattjala
Copy link
Contributor

@mattjala mattjala commented Sep 2, 2025

Depends on #5761 and #5752. Will be marked ready for review once those are merged


Important

Add VOL tests for h5dump, updating test generation and execution to support VOL connectors and specific configurations.

  • Behavior:
    • Excludes H5DUMP tests from ctest in .github/workflows/vol_rest.yml.
    • Adds VOL-specific test file generation in CMakeTests.cmake.
    • Updates ADD_H5_TEST macro in CMakeTests.cmake to support VOL connectors, including handling of environment variables and test dependencies.
  • Functions:
    • Adds gent_tvms() in h5dumpgentest.c and h5dumpgentest.h for generating VMS test files.
    • Modifies write_dset() in h5dumpgentest.c to accept separate dataset and memory types.
  • Misc:
    • Conditional compilation for _Float16 tests in CMakeTestsXML.cmake.
    • Fixes typo in h5gentest.c for tCVE-2021-37501_attr_decode test name.

This description was created by Ellipsis for 98124ec. You can customize this summary. It will automatically update as commits are pushed.

@mattjala mattjala added this to the Release 2.0.0 milestone Sep 2, 2025
@mattjala mattjala added Component - Tools Command-line tools like h5dump, includes high-level tools Component - Testing Code in test or testpar directories, GitHub workflows labels Sep 2, 2025
@github-project-automation github-project-automation bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Sep 2, 2025
@@ -951,7 +875,7 @@ macro (ADD_H5_TEST_IMPORT conffile resultfile testfile resultcode)
if ("H5DUMP-IMPORT-h5import-${resultfile}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
set_tests_properties (H5DUMP-IMPORT-h5import-${resultfile} PROPERTIES DISABLED true)
endif ()
add_test (NAME H5DUMP-IMPORT-h5diff-${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5diff> ${testfile} ${resultfile}.h5 /integer /integer)
add_test (NAME H5DUMP-IMPORT- -${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5diff> ${testfile} ${resultfile}.h5 /integer /integer)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typographical error in the test name. The string 'H5DUMP-IMPORT- -${resultfile}' seems incorrect; it likely should be 'H5DUMP-IMPORT-h5diff-${resultfile}'.

Suggested change
add_test (NAME H5DUMP-IMPORT- -${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5diff> ${testfile} ${resultfile}.h5 /integer /integer)
add_test (NAME H5DUMP-IMPORT-h5diff-${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5diff> ${testfile} ${resultfile}.h5 /integer /integer)


# all
ADD_H5_COMP_TEST (tallfilters 0 1 --enable-error-stack -H -p -d all tfilters.h5)
if (H5_HAVE_FILTER_SZIP)
ADD_H5_TEST (tallfilters RESULT_CODE 0 APPLY_FILTERS 1 --enable-error-stack -H -p -d all TARGET_FILE tfilters.h5 APPLY_FILTERS 1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible duplicate: The "APPLY_FILTERS 1" argument appears twice in the tallfilters test. Please confirm if the duplicate is intentional.

Suggested change
ADD_H5_TEST (tallfilters RESULT_CODE 0 APPLY_FILTERS 1 --enable-error-stack -H -p -d all TARGET_FILE tfilters.h5 APPLY_FILTERS 1)
ADD_H5_TEST (tallfilters RESULT_CODE 0 APPLY_FILTERS 1 --enable-error-stack -H -p -d all TARGET_FILE tfilters.h5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Testing Code in test or testpar directories, GitHub workflows Component - Tools Command-line tools like h5dump, includes high-level tools
Projects
Status: To be triaged
Development

Successfully merging this pull request may close these issues.

2 participants