-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand and refactor teting infrastructure
This commit moves over most of the testing infrastructure to in-tree docker images that are all dispatched to from Travis (no other test configuration). This allows versioning modifications to the test infrastructure as well as the code itself. Additionally separate docker images allows for easy modification of one without worrying about tampering of others as well as easy addition of new targets by simply adding a new `Dockerfile`. Additionally this commit bundles the master version of the `compiler-rt` source repository from `llvm-mirror/compiler-rt` to test against. The compiler-rt library itself is compiled as a `cdylib` which is then dynamically located at runtime and we look for symbols in. There's a few hoops here, but they currently get the job done. All tests now execute against both gcc_s and compiler-rt, and this testing strategy is now all hidden behind a macro as well (refactoring all existing tests along the way).
- Loading branch information
1 parent
c56a3f8
commit 8e161a7
Showing
38 changed files
with
621 additions
and
523 deletions.
There are no files selected for viewing
This file contains 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,3 @@ | ||
[submodule "compiler-rt/compiler-rt-cdylib/compiler-rt"] | ||
path = compiler-rt/compiler-rt-cdylib/compiler-rt | ||
url = https://github.com/llvm-mirror/compiler-rt |
This file contains 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 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 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 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 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 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,10 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-aarch64-linux-gnu libc6-dev-arm64-cross \ | ||
qemu-user-static | ||
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/aarch64-linux-gnu \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,10 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-arm-linux-gnueabi libc6-dev-armel-cross qemu-user-static | ||
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABI_LINKER=arm-linux-gnueabi-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabi \ | ||
RUST_TEST_THREADS=1 | ||
|
This file contains 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,9 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static | ||
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,9 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static | ||
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,5 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc-multilib libc6-dev ca-certificates | ||
ENV PATH=$PATH:/rust/bin |
This file contains 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,5 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc-multilib libc6-dev ca-certificates | ||
ENV PATH=$PATH:/rust/bin |
This file contains 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,12 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-mips-linux-gnu libc6-dev-mips-cross \ | ||
binfmt-support qemu-user-static qemu-system-mips | ||
|
||
ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/mips-linux-gnu \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,12 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-mipsel-linux-gnu libc6-dev-mipsel-cross \ | ||
binfmt-support qemu-user-static | ||
|
||
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_GNU_LINKER=mipsel-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/mipsel-linux-gnu \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,12 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev qemu-user-static ca-certificates \ | ||
gcc-powerpc-linux-gnu libc6-dev-powerpc-cross \ | ||
qemu-system-ppc | ||
|
||
ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/powerpc-linux-gnu \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,13 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross \ | ||
binfmt-support qemu-user-static qemu-system-ppc | ||
|
||
ENV CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_LINKER=powerpc64-linux-gnu-gcc \ | ||
CC_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/powerpc64-linux-gnu \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,13 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev qemu-user-static ca-certificates \ | ||
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \ | ||
qemu-system-ppc | ||
|
||
ENV CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER=powerpc64le-linux-gnu-gcc \ | ||
CC_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin \ | ||
QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu \ | ||
RUST_TEST_THREADS=1 |
This file contains 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,6 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates | ||
ENV PATH=$PATH:/rust/bin | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.