Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
59e28a6
tests/run-tests.py: Don't print info for tests that pass.
dpgeorge Oct 23, 2024
9029c31
tests/run-multitests.py: Suppress diff.
dpgeorge Oct 25, 2024
0611f96
tests/run-tests.py: Capture KeyboardInterrupt for nicer exit.
dpgeorge Oct 31, 2024
66e14bc
tests/vcprate.py: Add a test for serial data rate and integrity.
dpgeorge Oct 30, 2024
b628716
tests/hwtest.py: Add a full, automatic test runner.
dpgeorge Oct 30, 2024
b2cd326
tests/hwtest.py: Make sure unittest is installed.
dpgeorge Apr 10, 2025
edef636
tests/hwtest.py: Add command to build all natmods.
dpgeorge Apr 10, 2025
f85f6ec
tests/run-tests.py: Add option to not print list of skipped tests.
dpgeorge Apr 28, 2025
c21ea4b
tests/hwtest.py: Improve CLI options.
dpgeorge Apr 14, 2025
73e4b0d
tests: Increase buffer to 249 bytes.
dpgeorge Apr 15, 2025
e750902
tests/vcprate.py: Support targets without sys.stdout.buffer.
dpgeorge Apr 24, 2025
97cecf4
tests/hwtest.py: Just print returncode on subprocess fail.
dpgeorge Apr 28, 2025
8ffe151
tests/hwtest.py: Change args to selection then devices.
dpgeorge Apr 28, 2025
d4d3bcc
tests/hwtest.py: Run hardware tests in native mode if selected.
dpgeorge Apr 29, 2025
138109f
tests/hwtest.py: Support targets without a filesystem.
dpgeorge Apr 29, 2025
c3424f5
tests/run-tests.py: Exit with code 2 on error.
dpgeorge Apr 29, 2025
c038e01
tests/hwtest.py: Run hardware tests after native tests.
dpgeorge May 12, 2025
51a4383
tests/hwtest.py: Increase sleep and fix list append bug.
dpgeorge May 13, 2025
e38505f
tests/hwtest.py: Add multi_wlan tests.
dpgeorge May 21, 2025
5b3afc1
tests/micropython/extreme_exc.py: Skip on ESP32 with PSRAM.
dpgeorge Apr 10, 2025
ea4d25d
tests/extmod_hardware: Add pins for UM FeatherS2.
dpgeorge May 12, 2025
8ac5992
tests/extmod/machine_i2s_rate.py: Add I2S instance for ESP32C3.
dpgeorge May 21, 2025
46c0d0a
tests/extmod/machine_uart_tx.py: Add zephyr-frdm_k64f config.
dpgeorge Jun 4, 2025
a0e0fbe
tests/vcprate.py: Add read timeout and debugging when script isn't sent.
dpgeorge Jun 24, 2025
16ec0c5
tests/extmod/machine_uart_tx.py: Add settings for frdm, nucleo.
dpgeorge Jul 7, 2025
b6e5375
tests/hwtest.py: Use -j8 for building natmods.
dpgeorge Jul 7, 2025
38396ae
tests/extmod_hardware/machine_pwm.py: Add comments about zephyr.
dpgeorge Jul 7, 2025
a1410eb
tests/hwtest.py: Remove armv6 and armv7em.
dpgeorge Jul 22, 2025
3b7e48f
tests/hwtest.py: Fix target check.
dpgeorge Jul 25, 2025
7aa7d67
tests/hwtest.py: Skip Octoprobe infrastructure.
dpgeorge Jul 26, 2025
ed2b04f
tests/extmod/machine_spi_rate.py: Support ADAFRUIT_ITSYBITSY_M0_EXPRESS.
dpgeorge Jul 28, 2025
038b98b
tests/hwtest.py: Allow selecting natmods to build.
dpgeorge Aug 2, 2025
f1c8165
tests/multi_extmod: Update pins for I2CTarget test using octoprobe.
dpgeorge Aug 2, 2025
7d745cf
tests: Improve test support for renesas-ra boards.
dpgeorge Aug 6, 2025
dddfe9b
tests/extmod_hardware/machine_i2c_target.py: Improve pyboard support.
dpgeorge Aug 6, 2025
c07c573
tests/extmod_hardware/machine_pwm.py: Improve support for Seeed Xiao.
dpgeorge Aug 6, 2025
a75b6ec
tests/multi_net: Skip tests on axTLS when needed.
dpgeorge Aug 4, 2025
a010284
tests/net_inet: Skip tests on axTLS when necessary.
dpgeorge Jul 31, 2025
36b8550
tests/net_hosted/ssl_verify_callback.py: Skip if necessary.
dpgeorge Jul 31, 2025
3c87f14
tests/run-tests.py: Decrease MP_STREAM_GET_BUFFER_SIZE to 32-7.
dpgeorge Aug 6, 2025
3cb3d7b
tests: Support PYBLITE.
dpgeorge Aug 6, 2025
51e0d42
tests/hwtest.py: Add argparse and support a reference board.
dpgeorge Aug 6, 2025
d668cbe
tests/hwtest.py: Support any number of return values from target_info.
dpgeorge Aug 15, 2025
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
5 changes: 4 additions & 1 deletion tests/extmod/machine_i2s_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
(2, Pin("D4"), Pin("D3"), Pin("D2"), None),
)
elif "esp32" in sys.platform:
i2s_instances = ((0, Pin(18), Pin(19), Pin(21), Pin(14)),)
if "ESP32C3" in sys.implementation._machine:
i2s_instances = ((0, Pin(5), Pin(6), Pin(7), Pin(4)),)
else:
i2s_instances = ((0, Pin(18), Pin(19), Pin(21), Pin(14)),)
# Allow for small additional RTOS overhead
MAX_DELTA_MS = 8

Expand Down
10 changes: 9 additions & 1 deletion tests/extmod/machine_spi_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@
if "alif" in sys.platform:
MAX_DELTA_MS = 20
spi_instances = ((0, None, None, None),)
elif "samd" in sys.platform:
# Use default SPI instance (tested working on ADAFRUIT_ITSYBITSY_M0_EXPRESS).
spi_instances = ((None, None, None, None),)
elif "pyboard" in sys.platform:
spi_instances = (
(1, None, None, None), # "explicit choice of sck/mosi/miso is not implemented"
(2, None, None, None),
)
elif "renesas-ra" in sys.platform:
MAX_DELTA_MS = 15
spi_instances = ((0, None, None, None),)
elif "rp2" in sys.platform:
spi_instances = ((0, Pin(18), Pin(19), Pin(16)),)
elif "esp32" in sys.platform:
Expand Down Expand Up @@ -111,8 +117,10 @@ def test_spi(spi_id, sck, mosi, miso, baudrate, polarity, phase, print_results):
polarity=polarity,
phase=phase,
)
else:
elif spi_id is not None:
s = SPI(spi_id, baudrate=baudrate, polarity=polarity, phase=phase)
else:
s = SPI(baudrate=baudrate, polarity=polarity, phase=phase)

# to keep the test runtime down, use shorter buffer for lower baud rate
wr_buf = wr_long if baudrate > 500_000 else wr_short
Expand Down
12 changes: 12 additions & 0 deletions tests/extmod/machine_uart_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
elif "pyboard" in sys.platform:
if "STM32WB" in sys.implementation._machine:
uart_id = "LP1"
elif "PYBLITE" in sys.implementation._machine:
uart_id = "XA"
else:
uart_id = 4
pins = {}
Expand All @@ -44,6 +46,16 @@
pins = {"tx": "D1", "rx": "D0"}
timing_margin_us = 300
bit_margin = 1
elif "zephyr-frdm_k64f" in sys.implementation._machine:
uart_id = "uart3"
pins = {} # TX/RX=PTC17/PTC16
bit_margin = 1
timing_margin_us = 1200
elif "zephyr-nucleo_wb55rg" in sys.implementation._machine:
uart_id = "lpuart1"
pins = {} # TX/RX=PC0/PC1
bit_margin = 1
timing_margin_us = 400
else:
print("SKIP")
raise SystemExit
Expand Down
7 changes: 5 additions & 2 deletions tests/extmod_hardware/machine_i2c_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
args_target = (1,)
elif sys.platform == "pyboard":
if sys.implementation._build == "NUCLEO_WB55":
args_controller = {"scl": "B8", "sda": "B9"}
args_target = (3,)
args_controller = {"scl": "B8", "sda": "B9"} # Arduino header D15/D14
args_target = (3,) # PC0/PC1, Arduino header A0/A1
else:
args_controller = {"scl": "X1", "sda": "X2"}
args_target = ("X",)
if hasattr(Pin.board, "PULL_SCL"):
Pin("PULL_SCL", Pin.OUT, value=1)
Pin("PULL_SDA", Pin.OUT, value=1)
elif "zephyr-nucleo_wb55rg" in sys.implementation._machine:
# PB8=I2C1_SCL, PB9=I2C1_SDA (on Arduino header D15/D14)
# PC0=I2C3_SCL, PC1=I2C3_SDA (on Arduino header A0/A1)
Expand Down
8 changes: 8 additions & 0 deletions tests/extmod_hardware/machine_pwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# Configure pins based on the target.
if "esp32" in sys.platform:
pwm_pulse_pins = ((4, 5),)
if "ESP32S2" in sys.implementation._machine:
# For UM FeatherS2
pwm_pulse_pins = ((6, 5),)
freq_margin_per_thousand = 2
duty_margin_per_thousand = 1
timing_margin_us = 20
Expand All @@ -44,9 +47,14 @@
pwm_pulse_pins = (("GPIO0", "GPIO1"),)
elif "samd" in sys.platform:
pwm_pulse_pins = (("D0", "D1"),)
if "Seeed Xiao" in sys.implementation._machine:
pwm_pulse_pins = (("A1_D1", "A0_D0"),)
if "SAMD21" in sys.implementation._machine:
# MCU is too slow to capture short pulses.
pwm_freq_limit = 2_000
# zephyr
# enable machine.time_pulse_us()
# frdm_k64f board: work out which physical pin ("ftm0", 0) and ("ftm3", 0) are...
else:
print("Please add support for this test on this platform.")
raise SystemExit
Expand Down
6 changes: 6 additions & 0 deletions tests/extmod_hardware/machine_uart_irq_rx.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@
uart_id = 1
tx_pin = 4
rx_pin = 5
if "ESP32S2" in sys.implementation._machine:
# For UM FeatherS2
tx_pin = 6
rx_pin = 5
elif "pyboard" in sys.platform:
if "STM32WB" in sys.implementation._machine:
# LPUART(1) is on PA2/PA3
uart_id = "LP1"
elif "PYBLITE" in sys.implementation._machine:
uart_id = "XA"
else:
# UART(4) is on PA0/PA1
uart_id = 4
Expand Down
6 changes: 6 additions & 0 deletions tests/extmod_hardware/machine_uart_irq_rxidle.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
uart_id = 1
tx_pin = 4
rx_pin = 5
if "ESP32S2" in sys.implementation._machine:
# For UM FeatherS2
tx_pin = 6
rx_pin = 5
elif "mimxrt" in sys.platform:
uart_id = 1
tx_pin = None
Expand All @@ -33,6 +37,8 @@
if "STM32WB" in sys.implementation._machine:
# LPUART(1) is on PA2/PA3
uart_id = "LP1"
elif "PYBLITE" in sys.implementation._machine:
uart_id = "XA"
else:
# UART(4) is on PA0/PA1
uart_id = 4
Expand Down
Loading
Loading