Skip to content

Rework test file filtering #5552

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

Merged
merged 1 commit into from
May 30, 2025
Merged

Conversation

mattjala
Copy link
Contributor

  • Test-time filters applied to output and reference files are now applied to copies of those files, leaving the original versions untouched.

  • Create the FILTER_FILE macro to factor out repeated work of applying a series of regex replacements to a file

  • Removed the TEST_MASK filter, since its function of deleting any expression matches can also be accomplished by TEST_FILTER when no value is provided for TEST_FILTER_REPLACE.

  • Removed TEST_MASK_STORE and TEST_MASK_MOD arguments. Storage/modification masking is now performed for all test files.

  • TEST_FILTER and TEST_FILTER_REPLACE arguments to runTest can now receives a semicolon-separated list of filter/replace expressions.

There is overlap between the changes here and in #5473, many of which were removed during the runTest rework.

@mattjala mattjala added Priority - 2. Medium It would be nice to have this in the next release Component - Testing Code in test or testpar directories, GitHub workflows labels May 28, 2025
@mattjala mattjala requested a review from brtnfld as a code owner May 28, 2025 16:42
@github-project-automation github-project-automation bot moved this to To be triaged in HDF5 - TRIAGE & TRACK May 28, 2025
@hyoklee hyoklee moved this from To be triaged to In progress in HDF5 - TRIAGE & TRACK May 30, 2025
@hyoklee hyoklee added this to the Release 2.0.0 milestone May 30, 2025
@lrknox lrknox merged commit b594d01 into HDFGroup:develop May 30, 2025
163 of 168 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in HDF5 - TRIAGE & TRACK May 30, 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 Priority - 2. Medium It would be nice to have this in the next release
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants