blob: 3f1f3bfbe3a1ba4a8ecc668b5ee3bfa683c1ee98 [file] [log] [blame]
Alex Crichton79199af2015-09-12 11:22:42 -07001#!/bin/sh
2
3set -ex
4
5TARGET=$1
6cargo test --manifest-path libc-test/Cargo.toml --no-run --target $TARGET
7
8if [ "$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
13else
14 cargo test --manifest-path libc-test/Cargo.toml --target $TARGET
15fi