blob: 368037b26759e34a81067ffc42fa433637231fd1 [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
Alex Crichton23ab70b2015-09-13 23:38:27 -070013elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
Alex Crichton2333a522015-09-14 00:56:58 -070014 qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/all-*
Alex Crichton944a7332015-09-14 11:27:10 -070015elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
Alex Crichton412d4f92015-09-14 17:33:40 -070016 # FIXME: this segfaults on travis, passes locally?
17 #qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/all-*
Alex Crichton17da63d2015-09-14 17:52:07 -070018 echo skip
Alex Crichton79199af2015-09-12 11:22:42 -070019else
20 cargo test --manifest-path libc-test/Cargo.toml --target $TARGET
21fi