Skip to content

[xcodeproj] Better lit output #37

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

Merged
merged 1 commit into from
Jan 15, 2016

Conversation

modocache
Copy link
Contributor

Because Xcode treats the default lit output as error, simply running
lit Tests/Functional causes build failures in Xcode. For this reason,
the script was run with the -q quiet parameter. However, this made it
difficult to understand why a test failed.

This commit borrows a page from LLVM (see: https://github.com/apple/swift-llvm/blob/3ebdbb2c7e5ce577363994fd0aa0f8409bc68490/CMakeLists.txt#L329-L332)
and uses -s (summarize results), -v (verbose), and
--no-progress-bar. This combination emits diagnostics that are not
treated as errors by Xcode, and they provide a great deal of detail
when tests fail--the best of both worlds!

@mike-ferris
Copy link

Should this change be made in the linux build script as well?

Because Xcode treats the default lit output as error, simply running
`lit Tests/Functional` causes build failures in Xcode. For this reason,
the script was run with the `-q` quiet parameter. However, this made it
difficult to understand why a test failed.

This commit borrows a page from LLVM (see: https://github.com/apple/swift-llvm/blob/3ebdbb2c7e5ce577363994fd0aa0f8409bc68490/CMakeLists.txt#L329-L332)
and uses `-s` (summarize results), `-v` (verbose), and
`--no-progress-bar`. This combination emits diagnostics that are not
treated as errors by Xcode, *and* they provide a great deal of detail
when tests fail--the best of both worlds!
@modocache modocache force-pushed the xcode-better-lit-output branch from b391f8f to f1a2129 Compare January 14, 2016 21:28
@modocache
Copy link
Contributor Author

@mike-ferris-apple Good call; I amended the commit to include the same flags for Linux.

I'd love to include swift-corelibs-xctest tests in the greater Swift test suite. At that time, I'll try and figure out a way we can share the lit flags used when invoking the Swift test suite, and use them for these tests as well.

mike-ferris pushed a commit that referenced this pull request Jan 15, 2016
@mike-ferris mike-ferris merged commit 082a77c into swiftlang:master Jan 15, 2016
@modocache modocache deleted the xcode-better-lit-output branch January 19, 2016 16:18
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