-
Notifications
You must be signed in to change notification settings - Fork 165
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
Create new test system for name resolution 2.0 #3010
Conversation
Note that, until name resolution 2.0 improves sufficiently, a decent fraction of new tests after this is merged (?) will have to be entered into the |
95d701d
to
ad118fa
Compare
@powerboat9 I like the implementation and I think this feature makes sense, but I'm not sure if it's going to make our life easier in the long run. I'm in favor of merging it if the rest of the community thinks it is a good idea. it does add a burden which is maintaining and revisiting that maybe we can do something like keep the |
AFAIK symlink wouldn't work when running tests on windows. On one hand I really like this PR's idea but maintaining this list of file looks horrible. I'm in favor of merging this for now, we could maintain that list until the nr2 is stable and working as expected, we could then come back to this decision. |
Thoughts on merging this? Should I make some tweaks? |
To be honest, multiple peoples are not too keen on the implementation (and so am I). The idea is neat in theory but name resolution 2.0 should be merged shortly once we have fixed the final missing test and this PR brings a burden as we have to update the list. So there are two points to figure out:
Recently I've introduced some tests subdirectories (macros), but in your PR you chose a different approach, with a text list, is there any reason you chose not to got with a subdirectory ? I surely miss a detail somewhere. |
Ah, I didn't realize nr2.0 was so close to completion. The idea was that every compile test for non-nr2.0 would automagically run with nr2.0 as well, except for those in the exclude list. As nr2.0 got closer to completion we could slowly remove tests from the exclude list, and once it was empty we'd be able to enable nr2.0 for all tests and revert this PR. If nr2.0 is about to be completed this would be moot. |
Where is the development on nr2.0 taking place? I think I might be a bit out of the loop |
I need to open a PR but I've been working on top of #2940. If you want to get an exact idea on what is working/missing you could compile my branch https://github.com/P-E-P/gccrs/tree/allow-use-before-items-being-used-continued. Right now one test is still failing (use duplication, name_resolution21.rs). |
When I try to force-enable nr2.0 on |
You're right, I didn't apply the correct patch. Looks like most of those fails are due to an ICE (but not all of them):
The situation is worse than I initially thought. |
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 can't fix those in the upcoming PR as it is becoming too big. And there is a lot of work remaining, we should merge this PR.
Wait I thought the error was due to some github queue shenanigans but it doesn't. @powerboat9 would you mind rebasing this PR on master ? |
Yep, looks like it needs some tweaks after some tests were moved around. Will need to be adjusted to handle sub directories properly. |
This runs the standard compile/**.rs tests with name resolution 2.0 enabled. The exclude file can be used to exclude tests which are not yet working with name resolution 2.0. gcc/testsuite/ChangeLog: * rust/compile/nr2/compile.exp: New test. * rust/compile/nr2/exclude: New. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
3681987
to
e2d5a64
Compare
Alright, this should do it. We should also now get |
This should allow us to more easily test and record progress on name resolution 2.0