Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | TARGET=$1 |
| 6 | cargo test --manifest-path libc-test/Cargo.toml --no-run --target $TARGET |
| 7 | |
| 8 | if [ "$TARGET" = "arm-linux-androideabi" ]; then |
| 9 | emulator @test -no-window & |
| 10 | adb wait-for-device |
| 11 | adb push /root/target/$TARGET/debug/all-* /data/test |
| 12 | adb shell /data/test |
Alex Crichton | 23ab70b | 2015-09-13 23:38:27 -0700 | [diff] [blame] | 13 | elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then |
Alex Crichton | 2333a52 | 2015-09-14 00:56:58 -0700 | [diff] [blame] | 14 | qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/all-* |
Alex Crichton | 944a733 | 2015-09-14 11:27:10 -0700 | [diff] [blame] | 15 | elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then |
| 16 | qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/all-* |
Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 17 | else |
| 18 | cargo test --manifest-path libc-test/Cargo.toml --target $TARGET |
| 19 | fi |