blob: 9e3e97038e2993471200eadd28a220e9d2c1c670 [file] [log] [blame]
#!/bin/sh
set -ex
TARGET=$1
cargo test --manifest-path libc-test/Cargo.toml --no-run --target $TARGET
if [ "$TARGET" = "arm-linux-androideabi" ]; then
emulator @test -no-window &
adb wait-for-device
adb push /root/target/$TARGET/debug/all-* /data/test
adb shell /data/test
elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
qemu-arm -L /usr/arm-linux-gnueabi /root/target/$TARGET/debug/all-*
else
cargo test --manifest-path libc-test/Cargo.toml --target $TARGET
fi