-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
TST: Initialize f2py2e tests of the F2PY CLI #20668
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
Conversation
I tested all the Setting up special handling for |
bc5cb05
to
6fa453d
Compare
@@ -0,0 +1,3 @@ | |||
SUBROUTINE HI |
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.
These could probably use a renaming to hello_world77.f
or some such.
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.
Should the other be renamed similarly? We currently have hi77.f
and hiworld.f90
. It'd be good to have a template name format and redo all of them at once, all the test sources are oddly named.
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.
all the test sources are oddly named.
Having consistent names would be nice. It isn't a priority, but feel free to do it. It is currently hard to figure out what all the tests do. What ideas do you have for a "template name format"?
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.
I think using the test name or after the refactor the submodule name so:
cli_hello_world.f77
cli_hello_world.f90
frontend_no_space
(instead ofgh15035.f
)
Essentially from what we have, even submodule_test_name
is an upgrade.
Perhaps in a different PR though?
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.
I agree, avoiding names like hi and blah seems like a good idea in general. Not a blocker though.
Will those errors eventually be Python exceptions? |
Still some errors. |
I don't think so. These are basically written to However I have considered reworking the F2PY logging system with EDIT: Somehow one of the |
I'm not sure I know what's wrong with the Windows tests, some (32-bit) seem to be related to not finding |
Not sure about the 32-bit tests but running on windows confirms the problem with the slashes in the assert for outputs. |
This is looking good now, so let's try it - thanks @HaoZeke ! |
Increases F2PY coverage by around 15 percent. For the CLI itself it covers the major features (around 70 percent), with the exception of mostly numpy.distutils stuff. More importantly, sets the groundwork for numpy#20056, in that passing the same testsuite should indicate feature parity.
Essentially this branch: HaoZeke/f2py_skel#15
Increases F2PY coverage by around 15 percent. For the CLI itself it covers the major features (around 70 percent), with the exception of mostly
numpy.distutils
stuff.More importantly, sets the groundwork for #20056, in that passing the same testsuite should indicate feature parity.
Does not depend on the refactors.
Changes: