d11e9141b2
Extracted tests!
22 lines
709 B
Bash
22 lines
709 B
Bash
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
TARGET=$1
|
|
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET
|
|
|
|
if [ "$TARGET" = "arm-linux-androideabi" ]; then
|
|
emulator @test -no-window &
|
|
adb wait-for-device
|
|
adb push /root/target/$TARGET/debug/libc-test /data/libc-test
|
|
adb shell /data/libc-test
|
|
elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
|
|
qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/libc-test
|
|
elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
|
|
# FIXME: this segfaults on travis, passes locally?
|
|
#qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/all-*
|
|
echo skip
|
|
else
|
|
cargo run --manifest-path libc-test/Cargo.toml --target $TARGET
|
|
fi
|