• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

pytest/04-Jan-2025-336266

src/04-Jan-2025-156

sysbuild/04-Jan-2025-21

CMakeLists.txtD04-Jan-2025229 106

README.rstD04-Jan-20251.1 KiB3121

prj.confD04-Jan-2025499 2416

sysbuild.confD04-Jan-202531 21

testcase.yamlD04-Jan-2025800 3735

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 :ref:`here <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