Skip to content

Commit 2ce67f2

Browse files
committed
tests: Use embedded virtual hub.
This is closer to the real deal.
1 parent 25b19b5 commit 2ce67f2

File tree

3 files changed

+3
-40
lines changed

3 files changed

+3
-40
lines changed

test-virtualhub.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Runs tests on virtualhub.
3+
# Runs tests on simhub.
44
#
55
# Use `--list-test` to list tests or `--include <regex>` to run single tests.
66
#
@@ -12,17 +12,15 @@ if [[ $CI != "true" ]]; then
1212
fi
1313

1414
SCRIPT_DIR=$(readlink -f "$(dirname "$0")")
15-
BRICK_DIR="$SCRIPT_DIR/bricks/virtualhub"
15+
BRICK_DIR="$SCRIPT_DIR/bricks/simhub"
1616
MP_TEST_DIR="$SCRIPT_DIR/micropython/tests"
1717
PB_TEST_DIR=$"$SCRIPT_DIR/tests"
1818
BUILD_DIR="$BRICK_DIR/build${COVERAGE:+-coverage}"
1919
PBIO_DIR="$SCRIPT_DIR/lib/pbio"
2020

2121
make -s -j $(nproc --all) -C "$BRICK_DIR"
2222

23-
export MICROPY_MICROPYTHON="$BUILD_DIR/virtualhub-micropython"
24-
export PYTHONPATH="$PBIO_DIR/cpython"
25-
export PBIO_VIRTUAL_PLATFORM_MODULE=pbio_virtual.platform.robot
23+
export MICROPY_MICROPYTHON="$BUILD_DIR/firmware.elf"
2624

2725
cd "$MP_TEST_DIR"
2826
./run-tests.py --test-dirs $(find "$PB_TEST_DIR/virtualhub" -type d -and ! -wholename "*/build/*" -and ! -wholename "*/run_test.py") "$@" || \

tests/virtualhub/motor/test_1.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

tests/virtualhub/motor/test_1.py.exp

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)