You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/run-tests: Add itest_ framework for interactive PTY tests.
This adds support for itest_* test files that require CPython to
control MicroPython via a PTY with signal generation enabled. The
framework handles all PTY setup, terminal configuration (ISIG,
controlling terminal), subprocess spawning, and cleanup. Test files
contain only test-specific logic and are exec'd with the master PTY
fd available in their global scope.
This allows testing terminal features like Ctrl-C interrupt handling
that require signal generation and cannot be tested via the existing
repl_ framework (which sends complete lines and cannot interrupt
mid-execution).
Signed-off-by: Andrew Leech <[email protected]>
0 commit comments