Skip to content

Commit

Permalink
zephyr/run-builtin-testsuite.sh: One-stop script to run builtin tests…
Browse files Browse the repository at this point in the history
…uite.

Mostly for usage in CI systems.

Change-Id: I18fe5b2440eb4cb4e7a5438f4b7559a9a62e2da2
  • Loading branch information
pfalcon committed Jun 16, 2019
1 parent 49c36fe commit e3f57cb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ports/zephyr/run-builtin-testsuite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
#
# Build and Zephyr executable with embedded testsuite. Build happens
# in a separate set of dirs.
#

set -ex

./make-bin-testsuite BOARD=mps2_an385 BUILD=build-mps2_an385-testsuite OUTDIR_PREFIX=mps2_an385-testsuite

# TODO: Not using Zephyr's "run" target because somehow -semihosting flag
# doesn't want to get passed in.
$ZEPHYR_SDK_INSTALL_DIR/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-arm \
-cpu cortex-m3 -machine mps2-an385 \
-nographic -vga none -net none \
-pidfile qemu.pid -serial mon:stdio \
-semihosting \
-kernel outdir/mps2_an385-testsuite/zephyr/zephyr.elf

0 comments on commit e3f57cb

Please sign in to comment.