explicitly use qemu-ppc64le

master
Jorge Aparicio 2016-08-08 20:04:17 -05:00
parent 7e29b4a15f
commit 6c835ef73e
3 changed files with 11 additions and 3 deletions

View File

@ -71,7 +71,7 @@ matrix:
- gcc-powerpc64le-linux-gnu
- libc6-ppc64el-cross
- libc6-dev-ppc64el-cross
- qemu-user-static
- qemu-user
- env: TARGET=x86_64-apple-darwin
os: osx
- env: TARGET=x86_64-unknown-linux-gnu

View File

@ -30,6 +30,7 @@ case $TARGET in
;;
powerpc64le-unknown-linux-gnu)
export PREFIX=powerpc64le-linux-gnu-
export QEMU=qemu-ppc64le
export QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu
;;
esac

View File

@ -12,8 +12,15 @@ run_tests() {
export RUST_TEST_THREADS=1
fi
cargo test --target $TARGET
cargo test --target $TARGET --release
if [[ $QEMU ]]; then
cargo test --target $TARGET --no-run
$QEMU target/**/debug/rustc_builtins-*
cargo test --target $TARGET --release --no-run
$QEMU target/**/release/rustc_builtins-*
else
cargo test --target $TARGET
cargo test --target $TARGET --release
fi
}
inspect() {