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 to use sysbuild. 23 24To test with ``mcumgr`` with Bluetooth, one must add ``usb_hci:hciX`` fixture 25where ``hciX`` is the Bluetooth HCI device (e.g. ``hci1``). 26Fixture can be added to Twister command: ``-X usb_hci:hci1``, 27or added to the hardware map 28 29.. code-block:: yaml 30 31 - connected: true 32 fixtures: 33 - usb_hci:hci1 34 35Test scripts can be found in ``pytest`` directory. To list available 36scenarios with described procedures, one can use a pytest command: 37 38.. code-block:: console 39 40 pytest zephyr/tests/boot/with_mcumgr/pytest --collect-only -v 41