no need to explicitly call qemu-$ARCH

This commit is contained in:
Jorge Aparicio 2016-08-13 17:45:43 -05:00
parent 12933b8dca
commit a2135c1a5c
2 changed files with 1 additions and 14 deletions

View File

@ -30,12 +30,10 @@ case $TARGET in
;;
mips-unknown-linux-gnu)
export PREFIX=mips-linux-gnu-
# export QEMU=qemu-mips
export QEMU_LD_PREFIX=/usr/mips-linux-gnu
;;
mipsel-unknown-linux-gnu)
export PREFIX=mipsel-linux-gnu-
# export QEMU=qemu-mipsel
export QEMU_LD_PREFIX=/usr/mipsel-linux-gnu
;;
powerpc-unknown-linux-gnu)
@ -44,12 +42,10 @@ case $TARGET in
;;
powerpc64-unknown-linux-gnu)
export PREFIX=powerpc64-linux-gnu-
# export QEMU=qemu-ppc64
export QEMU_LD_PREFIX=/usr/powerpc64-linux-gnu
;;
powerpc64le-unknown-linux-gnu)
export PREFIX=powerpc64le-linux-gnu-
# export QEMU=qemu-ppc64le
export QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu
# Issue #2. QEMU doesn't work
export RUN_TESTS=n

View File

@ -20,16 +20,7 @@ run_tests() {
export RUST_TEST_THREADS=1
fi
if [[ $QEMU ]]; then
cargo test --target $TARGET --no-run
if [[ ${RUN_TESTS:-y} == "y" ]]; then
$QEMU target/**/debug/rustc_builtins-*
fi
cargo test --target $TARGET --release --no-run
if [[ ${RUN_TESTS:-y} == "y" ]]; then
$QEMU target/**/release/rustc_builtins-*
fi
elif [[ ${RUN_TESTS:-y} == "y" ]]; then
cargo test --target $TARGET
cargo test --target $TARGET --release
fi