Files
fenrir/tests/hardware_fixture.py
Storm Dragon 6a02035373 Refresh native regressions for shared reader core
Resolve fake USB fixtures from the selected shared transport package. Update speech control order, quick-setting and voice-profile navigation, phonetic and punctuation expectations, and persistence assertions while retaining keyboard isolation and cleanup checks.

Validated the full race-enabled Go suite, eight Python tests, vet, lint, the complete private-X11 terminal harness, and both fake-hardware suites for five synthesizers and both keyboard layouts. Live speech, physical input, Braille, and real synthesizers remain human acceptance checks.
2026-11-16 23:41:22 -05:00

19 lines
672 B
Python

# Copyright (c) 2026 Storm Dragon
# SPDX-License-Identifier: GPL-3.0-or-later
"""Build the fake USB transport from the selected shared reader core."""
from pathlib import Path
import subprocess
def build_usb_fixture(libraryRoot):
repository = Path(__file__).resolve().parents[1]
transportDir = subprocess.check_output(
["go", "list", "-f", "{{.Dir}}",
"git.stormux.org/storm/screenreader-common/hardware/transport"],
cwd=repository, text=True,
).strip()
subprocess.run(
["cc", "-shared", "-fPIC", "-o", str(libraryRoot / "libusb-1.0.so.0"),
str(Path(transportDir) / "testdata/usb_fixture.c")], check=True,
)