Move tests to packages/server and add regtest infrastructure#1
Open
danielbodart wants to merge 1 commit intomasterfrom
Open
Move tests to packages/server and add regtest infrastructure#1danielbodart wants to merge 1 commit intomasterfrom
danielbodart wants to merge 1 commit intomasterfrom
Conversation
- Move tests/ directory to packages/server/tests/ where interpreters are built - Add regtest.py (from eblong.com/zarf/plotex/) with modifications for streaming RemGlk JSON protocol: read multiple JSON objects per turn, accumulate text across streaming updates, handle grid windows with missing lines, handle interpreter exit gracefully - Add run-regtest.sh test runner that maps game files to interpreters (.ulx->glulxe, .z5->bocfel, .hex->hugo) and supports native/wasm modes - Add `./run testServer` command to run.ts for running regression tests - Add `** remformat: yes` to regtest files that were missing it - Add python to mise.toml (required by regtest.py) - Pin zig to 0.14 (0.15 has build-breaking changes) - Increase text buffer from 8KB to 64KB and JSON output buffer from 32KB to 128KB in protocol.zig/state.zig to handle large interpreter output Test results: 3/6 pass (colossal.hex, coretest.hex, praxix.z5) Known failures: - advent.ulx/z5 menu section: help sub-window content not sent over protocol - glulxercise: Unicode case conversion bug in interpreter https://claude.ai/code/session_01JwXGWTcmp3LCT41CTvCitb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RemGlk JSON protocol: read multiple JSON objects per turn, accumulate text
across streaming updates, handle grid windows with missing lines, handle
interpreter exit gracefully
(.ulx->glulxe, .z5->bocfel, .hex->hugo) and supports native/wasm modes
./run testServercommand to run.ts for running regression tests** remformat: yesto regtest files that were missing it128KB in protocol.zig/state.zig to handle large interpreter output
Test results: 3/6 pass (colossal.hex, coretest.hex, praxix.z5)
Known failures:
https://claude.ai/code/session_01JwXGWTcmp3LCT41CTvCitb