| #!/usr/bin/env bash |
| # 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 -euxo pipefail |
| |
| |
| source tests/scripts/setup-pytest-env.sh |
| |
| make cython3 |
| |
| # Zephyr |
| run_pytest ctypes python-microtvm-zephyr-qemu_x86 tests/micro/zephyr --board=qemu_x86 |
| run_pytest ctypes python-microtvm-zephyr-qemu_riscv32 tests/micro/zephyr --board=qemu_riscv32 |
| run_pytest ctypes python-microtvm-zephyr-qemu_riscv64 tests/micro/zephyr --board=qemu_riscv64 |
| run_pytest ctypes python-microtvm-zephyr-mps2_an521 tests/micro/zephyr --board=mps2_an521 |
| run_pytest ctypes python-microtvm-zephyr-mps3_an547 tests/micro/zephyr --board=mps3_an547 --use-fvp |
| |
| # Arduino |
| run_pytest ctypes python-microtvm-arduino-nano33ble tests/micro/arduino --board=nano33ble --test-build-only |
| run_pytest ctypes python-microtvm-arduino-due tests/micro/arduino --board=due --test-build-only |
| |
| # STM32 |
| run_pytest ctypes python-microtvm-stm32 tests/micro/stm32 |
| |
| # Common Tests |
| run_pytest ctypes python-microtvm-common-qemu_x86 tests/micro/common --platform=zephyr --board=qemu_x86 |
| run_pytest ctypes python-microtvm-common-due tests/micro/common --platform=arduino --board=due --test-build-only |
| |
| # Project API |
| run_pytest ctypes python-microtvm-project_api tests/micro/project_api |
| |
| # Tutorials |
| python3 gallery/how_to/work_with_microtvm/micro_tflite.py |
| python3 gallery/how_to/work_with_microtvm/micro_autotune.py |
| python3 gallery/how_to/work_with_microtvm/micro_aot.py |
| python3 gallery/how_to/work_with_microtvm/micro_pytorch.py |
| ./gallery/how_to/work_with_microtvm/micro_tvmc.sh |
| |
| # without CMSIS-NN |
| python3 gallery/how_to/work_with_microtvm/micro_mlperftiny.py |
| # with CMSIS-NN |
| export TVM_USE_CMSIS=1 |
| python3 gallery/how_to/work_with_microtvm/micro_mlperftiny.py |
| export TVM_USE_CMSIS= |
| |
| # Tutorials running with Zephyr |
| export TVM_MICRO_USE_HW=1 |
| export TVM_MICRO_BOARD=qemu_x86 |
| python3 gallery/how_to/work_with_microtvm/micro_tflite.py |
| python3 gallery/how_to/work_with_microtvm/micro_autotune.py |
| python3 gallery/how_to/work_with_microtvm/micro_aot.py |
| |
| run_pytest ctypes python-relay-strategy-arm_cpu tests/python/relay/strategy/arm_cpu --enable-corstone300-tests |
| run_pytest ctypes python-relay-aot tests/python/relay/aot --enable-corstone300-tests |
| run_pytest ctypes python-integration-m7-simd tests/python/integration/test_arm_mprofile_dsp.py --enable-corstone300-tests |
| run_pytest ctypes python-integration-contrib-test_cmsisnn tests/python/contrib/test_cmsisnn -n auto |
| run_pytest ctypes python-integration-contrib-test_ethosu tests/python/contrib/test_ethosu -n auto |