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.
This commit is contained in:
1 parent
1a0193030d
commit
6a02035373
5 files changed
+94
-34
No files matched your search
@@ -12,6 +12,7 @@ import tempfile
|
||||
import tomllib
|
||||
|
||||
from native_terminal import KeyboardFixture, wait_for
|
||||
from hardware_fixture import build_usb_fixture
|
||||
|
||||
|
||||
def main():
|
||||
@@ -24,8 +25,7 @@ def main():
|
||||
suiteRoot = Path(directory)
|
||||
libraryRoot = suiteRoot / "usb"
|
||||
libraryRoot.mkdir()
|
||||
subprocess.run(["cc", "-shared", "-fPIC", "-o", str(libraryRoot / "libusb-1.0.so.0"),
|
||||
str(repository / "internal/speech/testdata/usb_fixture.c")], check=True)
|
||||
build_usb_fixture(libraryRoot)
|
||||
keyboard = KeyboardFixture()
|
||||
try:
|
||||
for driver in ("dectalk", "dectalk-usb", "litetalk", "doubletalk", "tripletalk"):
|
||||
@@ -72,8 +72,8 @@ def main():
|
||||
subprocess.run(["xdotool", "windowfocus", "--sync", state["window"]], check=True)
|
||||
expect(b"prompt")
|
||||
start = len(output())
|
||||
keyboard.key("Insert+Right", "Insert+Right", "Insert+Right")
|
||||
expect(b"speech rate 0", start) # Hardware wraps after volume.
|
||||
keyboard.key("Insert+Right", "Insert+Right", "Insert+Right", "Insert+Right")
|
||||
expect(b"speech rate 0", start) # Wrap after pitch, volume and voice profile.
|
||||
start = len(output())
|
||||
keyboard.key("Insert+Up", "Insert+ctrl+s")
|
||||
expect(b"Settings saved", start)
|
||||
|
||||
Reference in new issue
Block a user