guberti commented on a change in pull request #8708:
URL: https://github.com/apache/tvm/pull/8708#discussion_r687042503



##########
File path: tests/micro/arduino/conftest.py
##########
@@ -0,0 +1,97 @@
+import datetime
+import pathlib
+
+import pytest
+
+import tvm.target.target
+
+# The models that should pass this configuration. Maps a short, identifying 
platform string to
+# (model, zephyr_board).
+PLATFORMS = {
+    "due": ("sam3x8e", "due"),
+    "feathers2": ("esp32", "feathers2"),
+    "nano33ble": ("nrf52840", "nano33ble"),
+    "pybadge": ("atsamd51", "pybadge"),
+    "spresense": ("cxd5602gg", "spresense"),
+    "teensy40": ("imxrt1060", "teensy40"),
+    "teensy41": ("imxrt1060", "teensy41"),
+}
+
+TEMPLATE_PROJECT_DIR = (
+    pathlib.Path(__file__).parent
+    / ".."
+    / ".."
+    / ".."
+    / "apps"
+    / "microtvm"
+    / "arduino"
+    / "template_project"
+).resolve()
+
+
+def pytest_addoption(parser):
+    parser.addoption(
+        "--microtvm-platforms",
+        default=["due"],
+        nargs="*",
+        choices=PLATFORMS.keys(),
+        help="Target platforms for microTVM tests.",
+    )
+    parser.addoption(
+        "--arduino-cli-cmd",
+        default="arduino-cli",
+        help="Path to `arduino-cli` command for flashing device.",
+    )
+    parser.addoption(
+        "--run-hardware-tests",
+        action="store_true",
+        help="Run tests that require physical hardware.",
+    )
+    parser.addoption(
+        "--tvm-debug",
+        action="store_true",
+        default=False,
+        help="If set true, enable a debug session while the test is running. 
Before running the test, in a separate shell, you should run: <python -m 
tvm.exec.microtvm_debug_shell>",

Review comment:
       Fixed. Note that the `--tvm-debug` flag for Zephyr starts with "If set 
true" as well.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to