Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
6963dc9
nll loss v1
AndrewZhaoLuo Aug 25, 2021
d6f420f
add converter
AndrewZhaoLuo Aug 25, 2021
83998d0
decode strings in byte form
AndrewZhaoLuo Aug 25, 2021
6c7ec71
decode variable length inputs
AndrewZhaoLuo Aug 25, 2021
1fbc3b7
make shapes correct
Aug 25, 2021
0cec344
unsqueeze
AndrewZhaoLuo Aug 25, 2021
1bd6573
fix
Aug 26, 2021
173054d
proper weight handling
Aug 26, 2021
e69997f
simplify if statement
AndrewZhaoLuo Aug 27, 2021
8949e5f
fix tests
Aug 31, 2021
ed36b75
add comment about tests
Aug 31, 2021
409b8a3
delete extra file
Aug 31, 2021
86229c2
lint
Aug 31, 2021
2a7b2b7
so cool
Aug 31, 2021
0ddfd30
Update CI Lint Image Version (#8841)
mehrdadh Aug 25, 2021
9f501cc
[BUG] ToBasicBlockNormalForm immutability (#8778)
ganler Aug 25, 2021
c757bd2
[GRAPH EXECUTOR,VM] Add benchmarking function to graph executor and v…
Aug 26, 2021
39ca27f
Apply CPPLint to CRT Tests (#8844)
Mousius Aug 26, 2021
3e1187d
[Relay][TOPI] Support of depthwise conv2d NHWC for Mali/Bifrost. (#8584)
AnastasiaStulova Aug 26, 2021
a221761
Support for CMSIS-NN in Corstone300 Makefile (#8831)
asparkhi Aug 26, 2021
c2d1940
[microtvm][Zephyr] Increase timeout to fix flaky tests (#8846)
mehrdadh Aug 26, 2021
73c9f07
[AMP] Bump up tolerance on flaky test (#8850)
AndrewZhaoLuo Aug 26, 2021
2231f0d
[Hexagon] Rework tvm.target.hexagon() interface (#8823)
Aug 26, 2021
9447946
[Pattern matching] Add an option to rewrite the graph only once (#8843)
ekalda Aug 26, 2021
8ca142b
update gpu and cpu (#8853)
mehrdadh Aug 26, 2021
9a68712
VTA cmake change to include Verilator header for building tsim librar…
aasorokiin Aug 26, 2021
c105a1b
[FIX] Bug fix for a floormod rewrite simplify rule (#8852)
jcf94 Aug 26, 2021
d833218
move rust lint script (#8726)
mehrdadh Aug 26, 2021
3862ce6
[AMP] Disallow fp16 conversion for summation-like ops (#8810)
masahi Aug 26, 2021
934b4e5
[TOPI] [Relay] Sparse Conv2d Implementation for 3x3 kernels (#8605)
Tantalus13A98B5F Aug 27, 2021
382b194
extend repeat_interleave op for relay.Expr (#8839)
vvchernov Aug 27, 2021
b5aaa39
Change AOT from ExprVisitor to MixedModeVisitor (#8856)
Mousius Aug 27, 2021
8633399
Add a PaddlePaddle Frontend (#8645)
jiangjiajun Aug 27, 2021
7cce940
[Runtime] add set_output_zero_copy (#8497)
sunjiweiswift Aug 27, 2021
b3d6d78
[Hexagon] Change declaration order of unique_ptr objects to fix crash…
Aug 27, 2021
2501640
[Graph Executor, VM] Add end to end benchmarking of models (#8858)
Aug 27, 2021
d19b66c
[UnitTests] Expose TVM pytest helpers as plugin (#8532)
Lunderberg Aug 27, 2021
5328acb
Remove AOT Executor header from Arduino project (#8857)
Mousius Aug 27, 2021
fb29996
[Community] @mdw-octoml -> Reviewer (#8868)
yzhliu Aug 28, 2021
bbe2998
[TIR] Fix opaque access in buffer locator pass and match_buffer in re…
Hzfengsy Aug 28, 2021
3d43446
[Autoscheduler] Configurable workload keys (#8862)
AndrewZhaoLuo Aug 28, 2021
a5cb1a9
[Tutorial][Executor] Fix the usage of executors in tutorials (#8586)
ganler Aug 28, 2021
d5c699c
[Frontend][Onnx] Simplify onnx input since name accesses are not reli…
Aug 28, 2021
91effea
[TIR] GetBlockReadWriteRegion (#8875)
MasterJH5574 Aug 29, 2021
aad9a88
[RISCV] Add support for llvm parameter -mabi (-target-abi) (#8860)
apivovarov Aug 30, 2021
0ee4c63
[Community] @manupa-arm -> Committer (#8870)
Aug 30, 2021
6b87fb5
[RPC] Fix ios_rpc build (#8864)
echuraev Aug 31, 2021
b1d9d11
[Vulkan][Target] Added the driver name to the vulkan target string. (…
Lunderberg Aug 31, 2021
dc9b2d7
[ONNX][TOPI] Support select_last_index for argmin/max (#8816)
AndrewZhaoLuo Aug 31, 2021
f6d6229
refactor optimize GEMM on CPU tutorial (#8825)
adstraw Aug 31, 2021
aca2844
Change target string to Target object in the TE compiler and interpre…
electriclilies Aug 31, 2021
6a417c2
[TensorIR][M2a] CacheRead/Write (#8863)
Aug 31, 2021
1fbb74a
[CI] make pre-commit hooks to run on every push instead of every comm…
mikepapadim Aug 31, 2021
ff8e138
[TVMScript] Fix printing ForNode annotations (#8891)
vinx13 Sep 1, 2021
3655e8e
[1/10] CMSIS-NN graph partitioner for softmax (#8653)
asparkhi Sep 1, 2021
60014c8
[microTVM][RVM] Add Arduino RVM (#8748)
guberti Sep 1, 2021
d5c4113
sce loss example
Sep 1, 2021
3371073
Merge branch 'main' into aluo/onnx/sceloss
Sep 1, 2021
4e43297
Merge branch 'main' into aluo/onnx/sceloss
AndrewZhaoLuo Sep 2, 2021
7d70d63
add comments, remove other tests
Sep 3, 2021
4f138f3
lint
AndrewZhaoLuo Sep 3, 2021
ccc57d4
lint
AndrewZhaoLuo Sep 3, 2021
75da5cc
jostle
Sep 6, 2021
95bdb82
lint up
AndrewZhaoLuo Sep 6, 2021
1c2806c
Merge branch 'aluo/onnx/sceloss' of github.com:AndrewZhaoLuo/tvm into…
AndrewZhaoLuo Sep 6, 2021
d677eb8
jostle
AndrewZhaoLuo Sep 6, 2021
6d3aeb8
Merge branch 'main' into aluo/onnx/sceloss
AndrewZhaoLuo Sep 16, 2021
812acf3
uncomment some tests
AndrewZhaoLuo Sep 16, 2021
4418709
proper return
AndrewZhaoLuo Sep 16, 2021
09e6069
clean up
AndrewZhaoLuo Sep 16, 2021
7d6a90a
lint
AndrewZhaoLuo Sep 16, 2021
d6eace4
minor merge errors
Sep 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[microTVM][RVM] Add Arduino RVM (#8748)
* Functioning Arduino Vagrant VM

Begin building Arduino Vagrant VM

Mostly working Vagrant VM

Changes for debugging

Add ignored json file

Fix venv path

* Generalize parts of RVM for multiple platforms

cwd hack

Add unit tests from apps directory to task_python_microtvm.sh

Generalize parts of RVM for multiple platforms

* Add Vagrantfile lint exceptions

* Address PR comments

Address Mehrdad's PR comments

More PR comments

Documentation tweaks

Add dialout group to user

* Rerun tests

* Spresense fix

* Rerun CI tests

* Rerun tests
  • Loading branch information
guberti authored and Andrew Zhao Luo committed Sep 1, 2021
commit 60014c8dc8cfee2d7debf48baf7494dc0e05872c
5 changes: 5 additions & 0 deletions apps/microtvm/arduino/template_project/microtvm_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class BoardAutodetectFailed(Exception):
"architecture": "esp32",
"board": "feathers2",
},
"metrom4": {
"package": "adafruit",
"architecture": "samd",
"board": "adafruit_metro_m4",
},
# Spresense only works as of its v2.3.0 sdk
"spresense": {
"package": "SPRESENSE",
Expand Down
1 change: 1 addition & 0 deletions apps/microtvm/reference-vm/arduino/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.vagrant
44 changes: 44 additions & 0 deletions apps/microtvm/reference-vm/arduino/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!--- Licensed to the Apache Software Foundation (ASF) under one -->
<!--- or more contributor license agreements. See the NOTICE file -->
<!--- distributed with this work for additional information -->
<!--- regarding copyright ownership. The ASF licenses this file -->
<!--- to you under the Apache License, Version 2.0 (the -->
<!--- "License"); you may not use this file except in compliance -->
<!--- with the License. You may obtain a copy of the License at -->

<!--- http://www.apache.org/licenses/LICENSE-2.0 -->

<!--- Unless required by applicable law or agreed to in writing, -->
<!--- software distributed under the License is distributed on an -->
<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
<!--- KIND, either express or implied. See the License for the -->
<!--- specific language governing permissions and limitations -->
<!--- under the License. -->

# microTVM Arduino Reference Virtual Machine

This directory contains setup files for Arduino virtual machine used for testing
microTVM platforms that are supported by [Arduino](https://www.arduino.cc/).

## VM Information for Developers
Arduino VM is published under [tlcpack](https://app.vagrantup.com/tlcpack).
Here is a list of different release versions and their tools.

(none currently)

## Supported Arduino Boards
This RVM has been tested and is known to work with these boards:
- Adafruit Metro M4
- Adafruit Pybadge
- Arduino Due
- Arduino Nano 33 BLE
- Feather S2
- Sony Spresense
- Wio Terminal

However, the RVM *should* work with any Arduino with sufficient memory, provided
its core is installed in `base-box/base_box_provision.sh`.

Note that this RVM does not work with the Teensy boards, even though they are
supported by microTVM. This is because arduino-cli does not support Teensy
boards (https://github.com/arduino/arduino-cli/issues/700)/).
66 changes: 66 additions & 0 deletions apps/microtvm/reference-vm/arduino/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

Vagrant.configure("2") do |config|
config.vm.box = "tlcpack/microtvm-arduino-0.18.3"

if ENV.has_key?("TVM_RVM_NUM_CORES")
num_cores = ENV["TVM_RVM_NUM_CORES"]
else
num_cores = 2
end

if ENV.has_key?("TVM_RVM_RAM_BYTES")
ram_bytes = ENV["TVM_RVM_RAM_BYTES"]
else
ram_bytes = 2048
end

tvm_home = "../../../.."
dirs_to_mount = [Pathname.new(Pathname.new(tvm_home).expand_path())]
if ENV.has_key?("TVM_PROJECT_DIR") then
dirs_to_mount.append(ENV["TVM_PROJECT_DIR"])
puts "NOTE: also configuring project dir: %s" % [dirs_to_mount[-1]]
end

git_file = Pathname.new(tvm_home + "/.git")
if git_file.ftype() == "file" then
gitdir_match = Regexp.new('^gitdir: (?<gitdir>.*/.git).*\n$', Regexp::MULTILINE).match(git_file.read())
if !gitdir_match.nil? then
dirs_to_mount.append(Pathname.new(tvm_home).realpath.join(gitdir_match.named_captures["gitdir"]))
puts "NOTE: also configuring git-worktree gitdir: %s" % [dirs_to_mount[-1]]
end
end

config.vm.provision "shell", path: "provision_setup.sh", env: {"TVM_HOME": dirs_to_mount[0]}, privileged: false

# Enable USB Controller on VirtualBox
vm_name = "microtvm-arduino-#{Time.now.tv_sec}"
config.vm.provider "virtualbox" do |vb, overrides|
vb.name = vm_name
vb.cpus = num_cores
vb.memory = ram_bytes
vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["modifyvm", :id, "--usbehci", "on"]
vb.customize ["modifyvm", :id, "--usbxhci", "on"]
vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
dirs_to_mount.each do |d|
overrides.vm.synced_folder d.to_s, d.to_s
end
end

end
4 changes: 4 additions & 0 deletions apps/microtvm/reference-vm/arduino/base-box/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.box
.vagrant
/output-packer-*
/packer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

Vagrant.configure("2") do |config|
# From hashicorp default template:
# https://github.com/hashicorp/packer/blob/master/builder/vagrant/step_create_vagrantfile.go#L23-L37

config.vm.define "source" do |source|
source.vm.box = "{{.SourceBox}}"
config.ssh.insert_key = {{.InsertKey}}
end

config.vm.define "output" do |output|
output.vm.box = "{{.BoxName}}"
output.vm.box_url = "file://package.box"
config.ssh.insert_key = {{.InsertKey}}
end

{{ if ne .SyncedFolder "" -}}
config.vm.synced_folder "{{.SyncedFolder}}", "/vagrant"
{{- else -}}
config.vm.synced_folder ".", "/vagrant", disabled: true
{{- end}}


{{ if eq .BoxName "microtvm-base-vmware_desktop" -}}
config.vm.provision "shell", inline: "touch ~/skip_zeroing_disk", privileged: false
{{- end}}

# NOTE: base_box_setup.sh resides in the parent directory (../) because this template is expanded into a
# sub-directory of base-box (output-packer-*).
config.vm.provision "shell", path: "../base_box_setup.sh", privileged: false
end
77 changes: 77 additions & 0 deletions apps/microtvm/reference-vm/arduino/base-box/base_box_provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/bin/bash -e
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Using this script we can reuse docker/install scripts to configure the reference
# virtual machine similar to CI QEMU setup.
#

set -e
set -x

source ~/.profile

# Init Arduino
cd ~

sudo apt-get install -y ca-certificates

# Install Arduino-CLI (latest version)
export PATH="/home/vagrant/bin:$PATH"
wget -O - https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s

# Arduino (the CLI and GUI) require the dialout permission for uploading
sudo usermod -a -G dialout $USER

# ubuntu_init_arduino.sh only installs a few officially
# supported architectures, so we don't use it here

# 3rd party board URLs
ADAFRUIT_BOARDS_URL="https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"
ESP32_BOARDS_URL="https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json"
SPARKFUN_BOARDS_URL="https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json"
SEEED_BOARDS_URL="https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json"
SPRESENSE_BOARDS_URL="https://github.com/sonydevworld/spresense-arduino-compatible/releases/download/generic/package_spresense_index.json"
arduino-cli core update-index --additional-urls $ADAFRUIT_BOARDS_URL,$ESP32_BOARDS_URL,$SPARKFUN_BOARDS_URL,$SEEED_BOARDS_URL,$SPRESENSE_BOARDS_URL

# Install supported cores from those URLS
arduino-cli core install arduino:mbed_nano
arduino-cli core install arduino:sam
arduino-cli core install adafruit:samd --additional-urls $ADAFRUIT_BOARDS_URL
arduino-cli core install esp32:esp32 --additional-urls $ESP32_BOARDS_URL
arduino-cli core install Seeeduino:samd --additional-urls $SEEED_BOARDS_URL
arduino-cli core install SPRESENSE:spresense --additional-urls $SPRESENSE_BOARDS_URL

# The Sony Spresense SDK has a major bug that breaks TVM. It's scheduled to be fixed in
# release 2.3.0, but until that's published we need to use the below hack. This ONLY
# fixes the bug in the main core release SDK - the subcore release SDK and both
# the main and subcore debug SDKs will continue to fail until an official fix is made.
# https://github.com/sonydevworld/spresense/issues/200
SPRESENSE_NUTTX_BUGFIX_PATH=~/.arduino15/packages/SPRESENSE/tools/spresense-sdk/2.2.1/spresense/release/nuttx/include/sys/types.h
sed -i 's/#ifndef CONFIG_WCHAR_BUILTIN/#if !defined(__cplusplus)/g' $SPRESENSE_NUTTX_BUGFIX_PATH

# There's also a bug in arduino-cli where {runtime.os} is not properly templated in
# platform.txt. This bug only seems to appear with the SPRESENSE SDK. A fix has been
# merged and will be part of arduino-cli 0.18.4, but that has yet to be published.
# This change is only needed to upload code (not compile) for the Spresense.
# https://github.com/arduino/arduino-cli/issues/1198
SPRESENSE_FLASH_WRITER_BUGFIX_PATH=~/.arduino15/packages/SPRESENSE/hardware/spresense/2.2.1/platform.txt
sed -i 's/tools.spresense-tools.cmd.path={path}\/flash_writer\/{runtime.os}\/flash_writer/tools.spresense-tools.cmd.path={path}\/flash_writer\/linux\/flash_writer/g' $SPRESENSE_FLASH_WRITER_BUGFIX_PATH
sed -i 's/tools.spresense-tools.cmd.path.linux={path}\/flash_writer\/{runtime.os}\/flash_writer/tools.spresense-tools.cmd.path.linux={path}\/flash_writer\/linux\/flash_writer/g' $SPRESENSE_FLASH_WRITER_BUGFIX_PATH

# Cleanup
rm -f *.sh
75 changes: 75 additions & 0 deletions apps/microtvm/reference-vm/arduino/base-box/base_box_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#!/bin/bash -e
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

set -e
set -x

skip_zeroing_disk=0
if [ -e "$HOME/skip_zeroing_disk" ]; then
echo "NOTE: will not zero disk at the end due to VMWare Fusion bug"
echo "See: https://communities.vmware.com/t5/VMware-Fusion-Discussions/VMWare-Fusion-Pro-11-15-6-16696540-causes-macOS-crash-during/m-p/2284011#M139190"
skip_zeroing_disk=1
fi

sudo apt update
sudo apt install -y build-essential
sudo apt-get --purge remove modemmanager # required to access serial ports.

sudo apt install -y --no-install-recommends git \
cmake cmake-data \
ninja-build gperf ccache dfu-util device-tree-compiler wget \
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
make gcc gcc-multilib g++-multilib libsdl2-dev

OLD_HOSTNAME=$(hostname)
sudo hostnamectl set-hostname microtvm
sudo sed -i.bak "s/${OLD_HOSTNAME}/microtvm.localdomain/g" /etc/hosts

# Poetry deps
sudo apt install -y python3-venv

# TVM deps
sudo apt install -y llvm

# ONNX deps
sudo apt install -y protobuf-compiler libprotoc-dev

# TODO do we need this?
echo 'export PATH=$HOME/vagrant/bin:"$PATH"' >> ~/.profile
source ~/.profile
echo PATH=$PATH

# Poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
sed -i "/^# If not running interactively,/ i source \$HOME/.poetry/env" ~/.bashrc
sed -i "/^# If not running interactively,/ i\\ " ~/.bashrc

# Clean box for packaging as a base box
sudo apt-get clean
if [ $skip_zeroing_disk -eq 0 ]; then
echo "Zeroing disk..."
EMPTY_FILE="$HOME/EMPTY"
dd if=/dev/zero "of=${EMPTY_FILE}" bs=1M || /bin/true
if [ ! -e "${EMPTY_FILE}" ]; then
echo "failed to zero empty sectors on disk"
exit 2
fi
rm -f "${EMPTY_FILE}"
else
echo "NOTE: skipping zeroing disk due to command-line argument."
fi
40 changes: 40 additions & 0 deletions apps/microtvm/reference-vm/arduino/base-box/base_box_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash -e
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Usage: base_box_test.sh <MICROTVM_PLATFORM>
# Execute microTVM Arduino tests.
#

set -e
set -x

if [ "$#" -lt 1 ]; then
echo "Usage: base_box_test.sh <MICROTVM_PLATFORM>"
exit -1
fi

microtvm_platform=$1

pytest tests/micro/arduino/test_arduino_workflow.py --microtvm-platforms=${microtvm_platform}

if [ $microtvm_platform == "nano33ble" ]; then
# https://github.com/apache/tvm/issues/8730
echo "NOTE: skipped test_arduino_rpc_server.py on $microtvm_platform -- known failure"
else
pytest tests/micro/arduino/test_arduino_rpc_server.py --microtvm-platforms=${microtvm_platform}
fi
Loading