-
Notifications
You must be signed in to change notification settings - Fork 321
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
[Fortran/gfortran] Initial support to override DejaGNU annotations #176
base: main
Are you sure you want to change the base?
Conversation
The DejaGNU annotations in the gfortran test suite sometimes need to be overridden, for instance in cases where the one of the compilers generates a compile error for some non-standard extension while the other does not. This PR adds support to override the some annotations, such as forcing a test to pass with flang where it would fail in gfortran. For now, only some of the behavior can be overridden, but this could be extended in the future. The documentation was updated to reflect this (some cleanup of the documentation was also carried out). Similarly, the static test configuration generation script was updated and cleaned up. An override file is also provided for two tests that were disabled in 27a6a3a since they are expected to pass in flang. The static test configuration was also updated to reflect this change.
For the disabled tests, it shows up as NOEXE in the json file, is it expected? I am wondering if it can have a different code as missing executable can mean compilation error.
|
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.
LGTM, thanks!
NOEXE is definitely not expected for |
Is this the first use of yaml in the testsuite? Any particular reason you chose yaml? |
I didn't check if there were other uses of yaml in the test suite. I chose it for a few reasons:
YAML was the first format that came to mind that I assumed would be sufficiently familiar to most developers. If there are other formats that are more appropriate, I am happy to switch to one of those. |
No need to change. I was just wondering whether something in the Dejagnu test system could be used for this purpose. I am not aware of any. |
I think there might be a bug in the way the disabled tests are being handled. I will look into it and keep you posted. |
You should not be seeing
The test was correctly disabled and never ran on my X86 machine. I assume that you had something equivalent in
If you set the second element of the triple to something other than Could you try setting the second element of the triple to |
Did the suggested change to the target triple work for you? It's somewhat orthogonal to this PR and if that is the problem, I can fix it in a separate PR. But I'd like to get this in before fixing other issues. |
The DejaGNU annotations in the gfortran test suite sometimes need to be overridden, for instance in cases where the one of the compilers generates a compile error for some non-standard extension while the other does not. This PR adds support to override the some annotations, such as forcing a test to pass with flang where it would fail in gfortran.
For now, only some of the behavior can be overridden, but this could be extended in the future. The documentation was updated to reflect this (some cleanup of the documentation was also carried out). Similarly, the static test configuration generation script was updated and cleaned up.
An override file is also provided for two tests that were disabled in 27a6a3a since they are expected to pass in flang. The static test configuration was also updated to reflect this change.