tree: 3f660fefaa09436fd29e67ab2eda1979c959e594 [path history] [tgz]
  1. conftest.py
  2. README.md
  3. test_utils.py
  4. test_zephyr.py
  5. test_zephyr_aot_exec.py
  6. test_zephyr_aot_exec_standalone.py
  7. test_zephyr_armv7m.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 --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