Ver código fonte

explicitly use qemu-ppc64le

Jorge Aparicio 8 anos atrás
pai
commit
6c835ef73e
3 arquivos alterados com 11 adições e 3 exclusões
  1. 1 1
      .travis.yml
  2. 1 0
      ci/env.sh
  3. 9 2
      ci/script.sh

+ 1 - 1
.travis.yml

@@ -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

+ 1 - 0
ci/env.sh

@@ -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

+ 9 - 2
ci/script.sh

@@ -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() {