ci: mynewt: Enable Mynewt specific tests

This allows to run Mynewt bootserial tests in CI.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
Szymon Janc 2023-03-17 11:23:54 +01:00 committed by Fabio Utzig
parent 874a0ab4d5
commit 22096886a6
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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