- Sequences v2, bridges and sim-controller changes from the working tree. - Records the led-driver, led-tool and led-simulator commits above. - Includes dmx-driver/ and graphify-out/. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
19 lines
577 B
Python
19 lines
577 B
Python
#!/usr/bin/env python3
|
|
"""Run the led-driver link and beat tests on the host (they are plain Python)."""
|
|
import os
|
|
import sys
|
|
|
|
root = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "led-driver")
|
|
sys.path[:0] = [os.path.join(root, "src"), os.path.join(root, "tests")]
|
|
|
|
import test_beat_sync # noqa: E402
|
|
import test_espnow_rx # noqa: E402
|
|
|
|
n = 0
|
|
for mod in (test_espnow_rx, test_beat_sync):
|
|
for name, fn in list(vars(mod).items()):
|
|
if name.startswith("test_") and callable(fn):
|
|
fn()
|
|
n += 1
|
|
print(f"{n} driver tests passed")
|