-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
base: develop
Are you sure you want to change the base?
Conversation
} | ||
|
||
/* Create a new file using default properties */ | ||
file_id = H5Fcreate(TDSET_FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.