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.
19 lines
672 B
Python
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,
|
|
)
|