Skip to content

[test] Only running the test on watchOS simulator #7801

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
Feb 28, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Feb 28, 2017

rdar://problem/29996841

@moiseev
Copy link
Contributor Author

moiseev commented Feb 28, 2017

@swift-ci Please test and merge

@@ -1,5 +1,5 @@
// RUN: %swift -typecheck -target i386-apple-watchos2.0 -verify -sdk %sdk %s
// REQUIRES: OS=watchos
// REQUIRES: CPU=x86_64, OS=watchos
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really support comma as a REQUIRES joiner?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jrose-apple I found it somewhere, not invented it =)

Copy link
Contributor

Choose a reason for hiding this comment

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

18:00:42 UNSUPPORTED: Swift(watchsimulator-i386) :: stdlib/DispatchDeprecationWatchOS.swift (431 of 9456)

Looks like it's no good. It might just be that you need to use i386 instead of x86_64, but please test locally before merging!

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe these things can be documented somewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

Patches to lit are always welcome. :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Documentation is http://llvm.org/docs/TestingGuide.html
…but some of the LLVM branches used by Swift do not yet support the boolean operators.

Comma-separated clauses act as if they were specified independently on separate lines. REQUIRES: a, b requires both a and b to be true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @gparker42, I was mostly thinking about the values of the tags that are used in Swift. They are all defined somewhere in lit.cfg but there is just no list with all of the possible tags and their values.

Copy link
Contributor

Choose a reason for hiding this comment

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

docs/Testing.rst has a few of them…and a FIXME to add the rest.

@moiseev
Copy link
Contributor Author

moiseev commented Feb 28, 2017

@swift-ci Please smoke test Linux platform

@moiseev
Copy link
Contributor Author

moiseev commented Feb 28, 2017

@swift-ci Please test

@moiseev
Copy link
Contributor Author

moiseev commented Feb 28, 2017

Hit it this time.

12:14:07 PASS: Swift(watchsimulator-i386) :: stdlib/DispatchDeprecationWatchOS.swift (1863 of 9472)

@moiseev moiseev merged commit e0e424a into swiftlang:master Feb 28, 2017
@moiseev moiseev deleted the watch-warn branch February 28, 2017 20:53
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.

5 participants