Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | TARGET=$1 |
Alex Crichton | d11e914 | 2015-09-15 23:28:52 -0700 | [diff] [blame] | 6 | cargo build --manifest-path libc-test/Cargo.toml --target $TARGET |
Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 7 | |
| 8 | if [ "$TARGET" = "arm-linux-androideabi" ]; then |
| 9 | emulator @test -no-window & |
| 10 | adb wait-for-device |
Alex Crichton | d11e914 | 2015-09-15 23:28:52 -0700 | [diff] [blame] | 11 | adb push /root/target/$TARGET/debug/libc-test /data/libc-test |
| 12 | adb shell /data/libc-test |
Alex Crichton | 23ab70b | 2015-09-13 23:38:27 -0700 | [diff] [blame] | 13 | elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then |
Alex Crichton | d11e914 | 2015-09-15 23:28:52 -0700 | [diff] [blame] | 14 | qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/libc-test |
Alex Crichton | 944a733 | 2015-09-14 11:27:10 -0700 | [diff] [blame] | 15 | elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then |
Alex Crichton | 412d4f9 | 2015-09-14 17:33:40 -0700 | [diff] [blame] | 16 | # FIXME: this segfaults on travis, passes locally? |
| 17 | #qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/all-* |
Alex Crichton | 17da63d | 2015-09-14 17:52:07 -0700 | [diff] [blame] | 18 | echo skip |
Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 19 | else |
Alex Crichton | d11e914 | 2015-09-15 23:28:52 -0700 | [diff] [blame] | 20 | cargo run --manifest-path libc-test/Cargo.toml --target $TARGET |
Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 21 | fi |