Skip to content

Add an cplusplus_driver lit feature for use with tests not supported by swift-driver #33961

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
Sep 17, 2020

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Sep 16, 2020

This will be used to mark tests as REQUIRES: integrated_driver if they cannot be easily made to work with swift-driver due to architectural differences (for example, the lack of -driver-print-actions and -driver-print-bindings), and the test cases have been ported to XCTest in the swift-driver repo.

This feature is enabled if the swift_driver param is NOT passed to lit.py

Now that swift-driver only fails ~200 integration tests, I think it makes sense to put more effort into porting some of these test cases to XCTest and excluding them when using swift-driver, so we have a better measure of our progress towards parity with the integrated version.

@owenv owenv requested review from DougGregor and artemcm September 16, 2020 05:09
@owenv
Copy link
Contributor Author

owenv commented Sep 16, 2020

@swift-ci please test

@DougGregor
Copy link
Member

The terminology here is confusing to me. I've been using "integrated driver" to talk about swift-driver when it is integrated into the build system (SwiftPM), whereas here you are using it to refer to the C++ driver. Could we come up with another term here? cplusplus_driver or something?

This will be used to mark tests as REQUIRES: cplusplus_driver if
they cannot be easily made to work with swift-driver due to architectural differences
(for example, the lack of -driver-print-actions), and the test cases have been ported to XCTest

This feature is enabled if the swift_driver param is NOT passed to lit.py
@owenv owenv force-pushed the swift-driver-lit-feature branch from dc3339d to 28ad7f2 Compare September 16, 2020 05:32
@owenv owenv changed the title Add an integrated_driver lit feature for use with tests not supported by swift-driver Add an cplusplus_driver lit feature for use with tests not supported by swift-driver Sep 16, 2020
@owenv
Copy link
Contributor Author

owenv commented Sep 16, 2020

cplusplus_driver sounds good to me! I was thinking integrated as in "integrated with the frontend", but this does seem a lot clearer to anyone encountering it later.

@owenv
Copy link
Contributor Author

owenv commented Sep 16, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - dc3339d8513c788e1ab87c71ee287d138333391f

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - dc3339d8513c788e1ab87c71ee287d138333391f

@DougGregor
Copy link
Member

Thanks!

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.

4 participants