3 # Builds and runs tests for a particular target passed as an argument to this
11 cargo rustc
--manifest-path libc-test
/Cargo.toml
--target $TARGET -- \
12 -C link-args
=-mios-simulator-version-min=7.0
16 cargo build
--manifest-path libc-test
/Cargo.toml
--target $TARGET
21 arm-linux-androideabi
)
22 emulator @arm-21
-no-window &
24 adb push
/tmp
/$TARGET/debug
/libc-test
/data
/libc-test
25 adb shell
/data
/libc-test
2>&1 |
tee /tmp
/out
26 grep "^PASSED .* tests" /tmp
/out
29 arm-unknown-linux-gnueabihf
)
30 qemu-arm
-L /usr
/arm-linux-gnueabihf libc-test
/target
/$TARGET/debug
/libc-test
33 mips-unknown-linux-gnu
)
34 qemu-mips
-L /usr
/mips-linux-gnu
/tmp
/$TARGET/debug
/libc-test
37 aarch64-unknown-linux-gnu
)
38 qemu-aarch64
-L /usr
/aarch64-linux-gnu
/ \
39 libc-test
/target
/$TARGET/debug
/libc-test
43 rumprun-bake hw_virtio
/tmp
/libc-test.img
/tmp
/$TARGET/debug
/libc-test
44 qemu-system-x86_64
-nographic -vga none
-m 64 \
45 -kernel /tmp
/libc-test.img
2>&1 |
tee /tmp
/out
&
47 grep "^PASSED .* tests" /tmp
/out
51 libc-test
/target
/$TARGET/debug
/libc-test