Skip to content

[Fortran/gfortran] Skip some directories when generating test configurations #246

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 1 commit into
base: main
Choose a base branch
from

Conversation

tarunprabhu
Copy link
Contributor

Some directories in the gfortran test suite only contain "dependent" sources. These are sources used in multi-file tests where only the "main" source file contains DejaGNU directives that are used to determine the behavior of the test. A list of such "dependents-only" directories have been added to the update-test-config script so a test configuration is not generated for them.

…est configurations

Some directories in the gfortran test suite only contain "dependent" sources.
These are sources used in multi-file tests where only the "main" source file
contains DejaGNU directives that are used to determine the behavior of the
test. A list of such "dependents-only" directories have been added to the
update-test-config script so a test configuration is not generated for them.
@tarunprabhu tarunprabhu requested a review from tblah May 14, 2025 18:49
Copy link
Contributor

@tblah tblah left a comment

Choose a reason for hiding this comment

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

Thanks

def should_generate_config(d: str) -> bool:
# The directories containing only dependent sources. These should be
# relative to the root directory containing the gfortran tests.
skip: list[str] = ['regression/coarray/add_sources']
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't work on Windows (which separates names with \). I think instead of a string you could represent with a type intended to handle OS differences in paths? I'm not that familiar with Python but some searching found https://docs.python.org/3/library/pathlib.html#module-pathlib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants