Skip to content

Move h5repacktst file generation to h5repackgentest #5564

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 6 commits into
base: develop
Choose a base branch
from

Conversation

mattjala
Copy link
Contributor

@mattjala mattjala commented Jun 3, 2025

  • For consistency with other tools tests, move h5repacktst file generation into h5repackgentest

This is motivated primarily by the need to be able to generate the h5repacktst files for h5repack VOL tests.

  • Since h5repacktst now depends on build generators, don't build tests which use it if build generators are disabled.

This currently only applies to VFD tests for h5repack.

@mattjala mattjala added the Priority - 2. Medium It would be nice to have this in the next release label Jun 3, 2025
@mattjala mattjala added the Component - Tools Command-line tools like h5dump, includes high-level tools label Jun 3, 2025
@mattjala mattjala added the Component - Testing Code in test or testpar directories, GitHub workflows label Jun 3, 2025
@github-project-automation github-project-automation bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Jun 3, 2025
*/
int
make_h5repack_testfiles(void)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These ~5,000 lines are just copied from h5repacktst.c and don't need to be closely inspected


#define MAX_NAME_SIZE 256
#define PAGE_SIZE_DEFAULT 4096
Copy link
Contributor Author

Choose a reason for hiding this comment

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

h5repacktst originally used FS_PAGESIZE_DEF from h5repack.h. To avoid using h5repack internal symbols, we define a different symbol here with the same value.

int verify_userblock(const char *filename);

/* fill value test */
#define H5REPACK_FNAME0 "h5repack_fill.h5"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These symbols are shared between h5repackgentest.c and h5repacktst.c

@mattjala mattjala marked this pull request as draft June 6, 2025 14:31
@mattjala
Copy link
Contributor Author

mattjala commented Jun 6, 2025

Marked as draft until I fix build issues on Windows

@mattjala mattjala force-pushed the h5repacktst_no_gen branch from da59399 to 22f9b77 Compare June 6, 2025 19:21
@mattjala mattjala marked this pull request as ready for review June 6, 2025 19:21
@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.

2 participants