This directory contains tests for MicroTVM's integration with Zephyr. To run the test, you first need to be running in a Python environment with all of the appropriate TVM dependencies installed. If you have [Poetry](https://python-poetry.org/) installed, you can do the following to get an appropriately-configured Python environment: ``` $ cd tvm/apps/microtvm/ $ poetry lock && poetry install && poetry shell ``` You can then run this test (either on real hardware or on a QEMU-emulated device) using: ``` $ cd tvm/tests/micro/zephyr $ pytest test_zephyr.py --zephyr-board=qemu_x86 # For QEMU emulation $ pytest test_zephyr.py --zephyr-board=nrf5340dk_nrf5340_cpuapp # For nRF5340DK ``` To see the list of supported values for `--zephyr-board`, run: ``` $ pytest test_zephyr.py --help ```