Filter keyboard rows grounded by joystick buttons before processing actions, preventing right fire from acting as A/D/E and undoing its release rotation. Arm X and Y independently so an uncentered vertical axis cannot block steering. Reproduce both defects in host regressions, retain ordinary CMOC input APIs, and update official project membership. Compact unchanged display data and make render profiling optional to preserve the original memory and stack bounds. Deliver QUADPSL02.DSK with fresh scores. Retire the old artifact from tracking while leaving the loaded local disk untouched. Host suites, official Release build and MC6809/512 KB keyboard/audio smoke checks pass. Actual joystick-port confirmation and the reported normal-window buzz remain pending.
25 lines
1.2 KiB
Python
25 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
"""Host-only input/persistence regression suites; CoCo qualification is separate."""
|
|
import subprocess
|
|
from pathlib import Path
|
|
root=Path(__file__).resolve().parents[1]
|
|
out=root/'test-output/components'
|
|
out.mkdir(parents=True,exist_ok=True)
|
|
for name in ['input','store']:
|
|
exe=out/(name+'_test')
|
|
subprocess.run(['clang','-std=c89','-Wall','-Wextra','-Werror','-pedantic',
|
|
'-fsanitize=address,undefined','-DQUAD_HOST','-I'+str(root/'src/game'),
|
|
str(root/'tests'/(name+'_test.c')),str(root/'src/game'/(name+'.c')),
|
|
'-o',str(exe)],check=True)
|
|
subprocess.run([str(exe)],check=True)
|
|
|
|
# Exercise the real public-API keyboard adapter with shared joystick/keyboard rows.
|
|
exe=out/'keyboard_test'
|
|
subprocess.run(['clang','-std=c89','-Wall','-Wextra','-Werror','-pedantic',
|
|
'-fsanitize=address,undefined','-DQUAD_HOST',
|
|
*['-I'+str(root/p) for p in ['tests/include','src/game','src/platform']],
|
|
*[str(root/p) for p in ['tests/keyboard_test.c','src/platform/keyboard.c','src/game/input.c','src/game/rules.c']],
|
|
'-o',str(exe)],check=True)
|
|
subprocess.run([str(exe)],check=True)
|