Skip to content

[SR-1047] Run xctest_checker tests in tests #203

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
Oct 8, 2017

Conversation

tiagomartinho
Copy link
Contributor

swift-corelibs-xctest uses a Python program called xctest_checker to run its functional test suite. That program itself has unit tests, written in Python.
These unit tests should be run as part of the greater XCTest test suite. This is probably possible by modifying the lit.cfg in the swift-corelibs-xctest project such that it picks up on a file with a RUN: directive that triggers the Python tests. See swiftlang/swift#778 for an example.
See llvm.org/docs/CommandGuide/lit.html for additional details on lit--it's the test runner for Swift, LLVM, and other projects, so it's nice to know about it.

swift-corelibs-xctest uses a Python program called xctest_checker to run its functional test suite. That program itself has unit tests, written in Python.
These unit tests should be run as part of the greater XCTest test suite. This is probably possible by modifying the lit.cfg in the swift-corelibs-xctest project such that it picks up on a file with a RUN: directive that triggers the Python tests. See swiftlang/swift#778 for an example.
See llvm.org/docs/CommandGuide/lit.html for additional details on lit--it's the test runner for Swift, LLVM, and other projects, so it's nice to know about it.
Copy link
Contributor

@modocache modocache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, awesome, thanks @tiagomartinho! 😍

This looks correct, but let's see what @swift-ci has to say.

@modocache
Copy link
Contributor

@swift-ci please test

@modocache modocache requested a review from briancroom October 6, 2017 15:39
@modocache
Copy link
Contributor

Also +cc @briancroom, in case he knows anyone working on Swift CI who might not want these additional tests to be run. I don't think it'll be a problem, especially considering swift_build_support tests are run in the same way, but who knows.

@tiagomartinho
Copy link
Contributor Author

Thank you Brian for the detailed task description 😄

@modocache
Copy link
Contributor

modocache commented Oct 8, 2017

Looks like an unrelated failure in SwiftPM, let's try again:

@swift-ci please test Linux platform

@briancroom
Copy link
Contributor

Cool! This makes sense to me. I don’t know of any reason not to run these in CI. Let’s get this merged once CI goes green.

Thanks @tiagomartinho!

@tiagomartinho
Copy link
Contributor Author

Thank you Brian!

@briancroom briancroom merged commit d8ad0e1 into swiftlang:master Oct 8, 2017
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.

3 participants