Skip to content

Add h5ls test files to gentest #5559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mattjala
Copy link
Contributor

h5ls currently has no script to generate the test files it uses on the fly. This adds support for h5ls test file generation to the gentest script.

@mattjala mattjala requested a review from lrknox as a code owner May 30, 2025 16:26
@mattjala mattjala added the Priority - 2. Medium It would be nice to have this in the next release label May 30, 2025
@mattjala mattjala added the Component - Tools Command-line tools like h5dump, includes high-level tools label May 30, 2025
@mattjala mattjala added the Component - Testing Code in test or testpar directories, GitHub workflows label May 30, 2025
@github-project-automation github-project-automation bot moved this to To be triaged in HDF5 - TRIAGE & TRACK May 30, 2025
}

/* Create a new file using default properties */
file_id = H5Fcreate(TDSET_FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a standard on error checking for test file generators? I looked at the existing ones, it's a mix. It's not in https://github.com/HDFGroup/hdf5/wiki/Getting-Started-with-HDF5-Development, BTW.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Some test generators return an error code, some print an error message and try to continue, some use asserts, and some directly exit on failure. I've been keeping the error handling as-is and just taking advantage of it where it exists to track nerrors in h5gentest. It would be nice to make this consistent across generators, but that should probably be considered separately.

@nbagha1 nbagha1 added this to the Release 2.0.0 milestone Jun 10, 2025
@nbagha1 nbagha1 moved this from To be triaged to In progress in HDF5 - TRIAGE & TRACK Jun 10, 2025
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 Priority - 2. Medium It would be nice to have this in the next release
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

5 participants