-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add and fix tests for {i686, aarch64}-linux-android targets #538
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
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
599eec3
Add test support for {aarch64, i686}-linux-android
malbarbo c532518
Fix i686-linux-android failing tests
malbarbo 92ce518
Make libc-tests compile for aarch64-linux-android
malbarbo f2f1129
Fix aarch64-linux-android failing tests
malbarbo d500a45
Enable travis tests for {i686, aarch64}-linux-android
malbarbo 1175c66
Remove cfg_if from src/unix/notbsd/android/
malbarbo fab2d30
Remove cfg_if from src/unix/mod.rs
malbarbo bfeb360
Merge branch 'master' into ci-android
malbarbo a3759d7
Fix missing prefix ::
malbarbo 9a20f93
Fix style
malbarbo b2791db
Merge branch 'master' into ci-android
malbarbo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN dpkg --add-architecture i386 && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
file \ | ||
curl \ | ||
ca-certificates \ | ||
python \ | ||
unzip \ | ||
expect \ | ||
openjdk-9-jre \ | ||
libstdc++6:i386 \ | ||
libpulse0 \ | ||
gcc \ | ||
libc6-dev | ||
|
||
WORKDIR /android/ | ||
COPY android* /android/ | ||
|
||
ENV ANDROID_ARCH=aarch64 | ||
ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools | ||
|
||
RUN sh /android/android-install-ndk.sh $ANDROID_ARCH | ||
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH | ||
RUN mv /root/.android /tmp | ||
RUN chmod 777 -R /tmp/.android | ||
RUN chmod 755 /android/sdk/tools/* /android/sdk/tools/qemu/linux-x86_64/* | ||
|
||
ENV PATH=$PATH:/rust/bin \ | ||
CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android-gcc \ | ||
HOME=/tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN dpkg --add-architecture i386 && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
file \ | ||
curl \ | ||
ca-certificates \ | ||
python \ | ||
unzip \ | ||
expect \ | ||
openjdk-9-jre \ | ||
libstdc++6:i386 \ | ||
libpulse0 \ | ||
gcc \ | ||
libc6-dev | ||
|
||
WORKDIR /android/ | ||
COPY android* /android/ | ||
|
||
ENV ANDROID_ARCH=i686 | ||
ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools | ||
|
||
RUN sh /android/android-install-ndk.sh $ANDROID_ARCH | ||
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH | ||
RUN mv /root/.android /tmp | ||
RUN chmod 777 -R /tmp/.android | ||
RUN chmod 755 /android/sdk/tools/* /android/sdk/tools/qemu/linux-x86_64/* | ||
|
||
ENV PATH=$PATH:/rust/bin \ | ||
CARGO_TARGET_I686_LINUX_ANDROID_LINKER=i686-linux-android-gcc \ | ||
HOME=/tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I unfortunately regret the block below this, but could we just duplicate these functions in lower modules to avoid this
#[cfg]
attribute?