]> git.lizzy.rs Git - rust.git/commit
rustbuild: Implement testing for Android
authorAlex Crichton <alex@alexcrichton.com>
Tue, 28 Jun 2016 20:31:30 +0000 (13:31 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 30 Jun 2016 00:01:10 +0000 (17:01 -0700)
commit39a5d3f409b4e9b610129e02625b45124e1e55a0
tree10f565093c66850291ace22453e41563a2750c81
parent366de839ae9794411419c5b579c829e18adde613
rustbuild: Implement testing for Android

This commit enhances the rustbuild support for testing Android to the same level
of parity as the makefiles. This involved:

* A new step to copy the standard library and other shared objects to the
  emulator. This is injected as a dependency of all test suites for Android.
* Appropriate arguments are now passed through to compiletest to ensure that it
  can run tests.
* When testing the standard library the test executables are probed for and
  shipped to the emulator to run for each test.
* Fixing compilation of compiler-rt a bit

All support added here is modeled after what's found in the makefiles, just
translating one strategy to another. As an added bonus this commit adds support
for the "check" step to automatically run tests for all targets, and the
"check-target" step now runs all tests for a particular target, automatically
filtering the tests if the target is detected as a cross-compile.

Note that we don't (and probably won't) have a bot which is actually going to
exercise any of this just yet, but all tests have passed locally for me at
least.
src/bootstrap/build/cc.rs
src/bootstrap/build/check.rs
src/bootstrap/build/config.rs
src/bootstrap/build/dist.rs
src/bootstrap/build/mod.rs
src/bootstrap/build/native.rs
src/bootstrap/build/sanity.rs
src/bootstrap/build/step.rs