libc-rs/ci/run.sh

24 lines
849 B
Bash
Raw Normal View History

2015-09-12 20:22:42 +02:00
#!/bin/sh
set -ex
TARGET=$1
2015-09-16 08:28:52 +02:00
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET
2015-09-12 20:22:42 +02:00
if [ "$TARGET" = "arm-linux-androideabi" ]; then
emulator @test -no-window &
adb wait-for-device
2015-09-16 08:28:52 +02:00
adb push /root/target/$TARGET/debug/libc-test /data/libc-test
adb shell /data/libc-test
2015-09-14 08:38:27 +02:00
elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
2015-09-16 08:28:52 +02:00
qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/libc-test
2015-09-14 20:27:10 +02:00
elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
2015-09-15 02:33:40 +02:00
# FIXME: this segfaults on travis, passes locally?
#qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/all-*
2015-09-15 02:52:07 +02:00
echo skip
2015-09-18 00:18:18 +02:00
elif [ "$TARGET" = "aarch64-unknown-linux-gnu" ]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu/ libc-test/target/$TARGET/debug/libc-test
2015-09-12 20:22:42 +02:00
else
2015-09-16 08:28:52 +02:00
cargo run --manifest-path libc-test/Cargo.toml --target $TARGET
2015-09-12 20:22:42 +02:00
fi