tree: 6e527c108050339eaf0eeeae321e5982a907c00c [path history] [tgz]
  1. testdata/
  2. conftest.py
  3. README.md
  4. test_zephyr.py
  5. test_zephyr_aot.py
tests/micro/zephyr/README.md

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 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 --microtvm-platforms=host       # For QEMU emulation
$ pytest test_zephyr.py --microtvm-platforms=nrf5340dk  # For nRF5340DK

To see the list of supported values for --microtvm-platforms, run:

$ pytest test_zephyr.py --help