[ci] run qemu example in crate's CI.
@@ -20,6 +20,7 @@ main() {
minimal
override-exception
pre_init
+ qemu
rand
state
unsafe-default-handler
@@ -82,6 +83,13 @@ main() {
-C link-arg=-Tlink.x
fi
+ case $TARGET in
+ thumbv6m-none-eabi|thumbv7m-none-eabi)
+ cargo run --target $TARGET --example qemu | grep "x = 42"
+ cargo run --target $TARGET --example qemu --release | grep "x = 42"
+ ;;
+ esac
+
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
./check-blobs.sh
fi
