From 22096886a60654086fe38dbb8a20b3f744762651 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 17 Mar 2023 11:23:54 +0100 Subject: [PATCH] ci: mynewt: Enable Mynewt specific tests This allows to run Mynewt bootserial tests in CI. Signed-off-by: Szymon Janc --- ci/mynewt_install.sh | 6 ++++++ ci/mynewt_run.sh | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ci/mynewt_install.sh b/ci/mynewt_install.sh index abadfb38..ea7e753e 100755 --- a/ci/mynewt_install.sh +++ b/ci/mynewt_install.sh @@ -57,9 +57,15 @@ arm_toolchain_install() { done } +native_test_setup() { + sudo apt-get update + sudo apt-get install -y gcc-multilib +} + mkdir -p $HOME/bin export PATH=$HOME/bin:$PATH install_newt shallow_clone_mynewt arm_toolchain_install +native_test_setup diff --git a/ci/mynewt_run.sh b/ci/mynewt_run.sh index c84dccfb..66396626 100755 --- a/ci/mynewt_run.sh +++ b/ci/mynewt_run.sh @@ -25,4 +25,9 @@ for target in $(ls ci/mynewt_targets); do [[ $? -ne 0 ]] && exit 1 done +mkdir targets +cp -r repos/apache-mynewt-core/targets/unittest targets +newt test boot/boot_serial +[[ $? -ne 0 ]] && exit 1 + exit 0