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 | ||||
13 | else | ||||
14 | cargo test --manifest-path libc-test/Cargo.toml --target $TARGET | ||||
15 | fi |