Skip to content
Draft
Changes from all commits
Commits
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
13 changes: 10 additions & 3 deletions .ci/scripts/test_espressif_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ et_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
build_dir="${ESPRESSIF_HOST_BUILD_DIR:-${et_root}/cmake-out-espnn-host}"
cd "${et_root}"

EXECUTORCH_REQUIRE_ESP_NN_SCRATCH=1 python -m pytest -q \
backends/espressif/test -k 'not implementation'
# Cap pytest-xdist's -n auto to the container's CPU quota. The suite is
# pure host work with no shared writable state, so it runs in parallel
# like the emulator tests in test_espressif.sh.
source .ci/scripts/pytest-parallelism.sh

EXECUTORCH_REQUIRE_ESP_NN_SCRATCH=1 OMP_NUM_THREADS=1 python -m pytest \
-n auto -q --durations=10 backends/espressif/test -k 'not implementation'

for variant in plain sanitized; do
sanitize=OFF
Expand All @@ -33,6 +38,8 @@ for variant in plain sanitized; do
cmake --build "${build_dir}/${variant}"
ESPNN_HOST_RUNNER="${build_dir}/${variant}/espnn_host_runner" \
ESPNN_HOST_INTERPRETER="${build_dir}/${variant}/espnn_host_interpreter" \
python -m pytest -v --tb=short backends/espressif/test/test_host_runtime.py \
OMP_NUM_THREADS=1 \
python -m pytest -n auto -v --tb=short --durations=10 \
backends/espressif/test/test_host_runtime.py \
backends/espressif/test/test_host_interpreter.py
done
Loading