README.rst
1Upgrade testing with MCUmgr
2###########################
3
4This application is based on :ref:`smp_svr_sample`. It is built
5using **sysbuild**. Tests are automated with pytest, a new harness of Twister
6(more information can be found here :ref:`integration-with-pytest`)
7
8.. note::
9 Pytest uses the MCUmgr fixture which requires the ``mcumgr`` available
10 in the system PATH.
11 More information about MCUmgr can be found here :ref:`mcu_mgr`.
12
13To run tests with Twister on ``nrf52840dk_nrf52840`` platform,
14use following command:
15
16.. code-block:: console
17
18 ./zephyr/scripts/twister -vv --west-flash --enable-slow -T zephyr/tests/boot/with_mcumgr \
19 -p nrf52840dk_nrf52840 --device-testing --device-serial /dev/ttyACM0
20
21.. note::
22 Twister requires ``--west-flash`` flag enabled (without additional parameters
23 like ``erase``) to use sysbuild.
24
25Test scripts can be found in ``pytest`` directory. To list available
26scenarios with described procedures, one can use a pytest command:
27
28.. code-block:: console
29
30 pytest zephyr/tests/boot/with_mcumgr/pytest --collect-only -v
31