-
Notifications
You must be signed in to change notification settings - Fork 269
[xctest_checker] Inline expectations #94
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
Enhance xctest_checker such that it can parse "CHECK" prefixes that are in the middle of a line (instead of just at the very beginning). In addition, use a common `XCTestCheckerError` to ensure all functional test suite failures are displayed inline in Xcode.
|
Very nice! This looks like a great enhancement. One thing I wonder about though - since we are moving towards expecting the presence of a complete Swift development environment (#77), might it make sense to reevaluate the decision to not use FileCheck itself, rather than maintaining our own tool and gradually re-implementing additional bits of FileCheck behavior? For easier reference, most of the original discussion around this can be found at #14. |
|
Yeah, that makes sense. It would mean much less code to maintain in this repository. @mike-ferris-apple, what do you think? In a nutshell, this would mean one could not test corelibs-xctest without having built LLVM first. One downside is that |
|
Please do consider contributing upstream whatever is necessary to make that work (I didn't look at the original change very closely). We could probably get FileCheck embedded in the toolchains if we wanted to be able to use them to run tests, certainly for dev snapshots that would make sense, and I think is small enough it doesn't impact the download significantly even for people that don't need it. |
|
Having more standardization would be good. I like @ddunbar 's idea of getting FileCheck included in the toolchains as well. It would be nice to not necessarily have to build all of llvm just for this. |
|
I gave this a go, and noticed one complication: we're talking about the built On Linux, this is no problem: we encourage people to build using the Swift build script, which knows the build mode. It will be able to find For OS X users building via Xcode, however, we're out of luck. We can't guess where their Thanks to the .xctoolchain suggestions, I can see one way forward here: we copy I think that would take a bit of work, though. And assuming we'll be using Let me know if I'm missing something here. If not, give the code in this pull request a review (and kick off the CI tests if you can!). |
|
@swift-ci please test |
|
Merged! But we should (at some point soon) reach a consensus on whether to include internal LLVM tools like |
|
We reached a consensus on including |
Enhance xctest_checker such that it can parse "CHECK" prefixes that are in the middle of a line (instead of just at the very beginning).
In addition, use a common
XCTestCheckerErrorto ensure all functional test suite failures are displayed inline in Xcode.This splits the first part of #68 out into its own pull request. It also only changes one functional test, in order to minimize merge conflicts.