zephyr/tests/boot/with_mcumgr
Grzegorz Chwierut c6a41a47d9 tests: boot: Update imgtool path in west_sign_wrapper
Fixes tests/boot/with_mcumgr in case, when imgtool is
not installed. Added imgtool path to west sign wrapper.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-05-30 19:40:44 +02:00
..
pytest tests: boot: Update imgtool path in west_sign_wrapper 2025-05-30 19:40:44 +02:00
src
sysbuild
CMakeLists.txt
prj.conf
README.rst
sysbuild.conf
testcase.yaml tests: boot: with_mcumgr: Add swap using offset test 2025-02-10 19:05:25 +01:00

Upgrade testing with MCUmgr
###########################

This application is based on :ref:`smp_svr_sample`. It is built
using **sysbuild**. Tests are automated with pytest, a new harness of Twister
(more information can be found :ref:`here <integration_with_pytest>`)

.. note::
   Pytest uses the MCUmgr fixture which requires the ``mcumgr`` available
   in the system PATH.
   More information about MCUmgr can be found here :ref:`mcu_mgr`.

To run tests with Twister on ``nrf52840dk/nrf52840`` platform,
use following command:

.. code-block:: console

    ./zephyr/scripts/twister -vv --west-flash --enable-slow -T zephyr/tests/boot/with_mcumgr \
    -p nrf52840dk/nrf52840 --device-testing --device-serial /dev/ttyACM0

.. note::
   Twister requires ``--west-flash`` flag enabled (without additional parameters
   like ``erase``) to use sysbuild.

Test scripts can be found in ``pytest`` directory. To list available
scenarios with described procedures, one can use a pytest command:

.. code-block:: console

    pytest zephyr/tests/boot/with_mcumgr/pytest --collect-only -v