Skip to content

[test] Prepare tests to run on Android #2939

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

Conversation

modocache
Copy link
Contributor

What's in this pull request?

  • Expand operating system checks such that Glibc is properly imported on Android.
  • For tests that are unsupported on platforms that normally do not support an Objective-C runtime, expand the unsupported checks to include Android.
  • Pass the -sdk parameter when invoking %target-sil-opt.
  • Expect failures when testing semaphores, which are not included in Android Bionic.

Related pull request: #1714


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

- Expand operating system checks such that Glibc is properly
  imported on Android.
- For tests that are unsupported on platforms that normally
  do not support an Objective-C runtime, expand the unsupported
  checks to include Android.
- Pass the `-sdk` parameter when invoking `%target-sil-opt`.
- Expect failures when testing semaphores, which are not included
  in Android Bionic.
@@ -1,4 +1,4 @@
// RUN: for x in %platform-sdk-overlay-dir/*.swiftmodule; do [[ $(basename "$x") = Swift.swiftmodule ]] && continue; llvm-bcanalyzer $x | FileCheck %s; %target-sil-opt -enable-sil-verify-all $x > /dev/null; done
// RUN: for x in %platform-sdk-overlay-dir/*.swiftmodule; do [[ $(basename "$x") = Swift.swiftmodule ]] && continue; llvm-bcanalyzer $x | FileCheck %s; %target-sil-opt -sdk %sdk -enable-sil-verify-all $x > /dev/null; done
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For more discussion on this change, see: https://github.com/apple/swift/pull/1714/files#r59641994

@modocache modocache mentioned this pull request Jun 7, 2016
2 tasks
@modocache
Copy link
Contributor Author

@swift-ci please test

@gribozavr
Copy link
Contributor

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 7e34031 into swiftlang:master Jun 11, 2016
@modocache modocache deleted the 1714-easy-fixes-for-android-tests branch June 13, 2016 01:08
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