diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/next-tests.md | 46 | ||||
| -rw-r--r-- | docs/typ/cheatsheet.typ | 2 | ||||
| -rw-r--r-- | docs/typ/guide.typ | 2 |
3 files changed, 36 insertions, 14 deletions
diff --git a/docs/next-tests.md b/docs/next-tests.md index 3f85e030..b7b5d3ef 100644 --- a/docs/next-tests.md +++ b/docs/next-tests.md @@ -15,11 +15,33 @@ agent's survey. The `e2e` line (kbdin, mousein) is its first step. - **T1, in-process 9P, is the main tier.** The core is driven only through `serveFs` (src/ninep/testing.zig's `call`, `rd`, `wr`): as behavioural as a client on a socket, and milliseconds a case. -- **Process-level tests (T2) get a Zig runner, not Python:** test/snapshot.zig, - the `.snap` runner, which already forks the app in a pty and has a 9P - client (`snap9p`), grows 9P verbs (`9pwrite`, `9pexpect`, `signal`). The - Python suites (test/fs.py and the rest) stay as examples of scripting a - session and are not grown. +- **One process runner, not Python (the user, 2026-11-04):** test/process.zig's + `Process` starts `pardes` detached (over its socket), in a pty, or as the + hidden window, in a throwaway root, and talks 9P to it with Session's + method names (`read`, `write`, `refused`, `keys`, `click`, `screen`, + `focused`), plus `signal`, the exit code, pty bytes and captured frames + by mode. It is mostly test/snapshot.zig's launching and 9P client moved + out: + - **the `.snap` scripts** become one user of it (the interpreter and the + goldens stay in snapshot.zig); + - **process tests (T2)** are plain Zig tests in test/process/<label>.zig, + under a `process-test` step; + - **the window's tests (T4)** are `Process` in its window mode. + + Built (2026-11-04): + - **test/process.zig:** `Files` (a running pardes's tree over its socket, + dialled by pid or path) and `Detached` (a session in a throwaway root, + PARDES_DAEMON=off, so nothing outlives it). + - **The pty mode** is e2e_harness's Harness with `process.of`. + - **The `process-test` step** runs test/process_test.zig over + test/process/*.zig. Its first case is fs.py's keys_and_mouse. + - **snap9p** reads /screen through `Files`. + + The Python suites in the build (fs.py, monkey9p.py, gui_monkey.py, + v9fs*.py, agent_session_test.py) move onto it or onto Session, then + leave the build. The developer tools (ui_review, record_demos, + appearance_gallery…) stay Python, as examples. A real process performs + its effects, so tests that need one can land at T2. - **Layout (from a ponytail review, 2026-11-03):** - **test/session.zig is the T1 `Session`:** a 9P client's walk, open, read or write, clunk, by path, with the core opaque. @@ -101,15 +123,15 @@ What the M tests reach into, and the public surface for it: ## Progress -After the first fan-out (2026-11-03: four migrators, each followed by a -reviewer that ran its own breaks; 108 tests in test/behaviour/): +Two fan-outs (2026-11-03 and 2026-11-04; a migrator per area, then a +reviewer running breaks of its own): 211 tests moved, 216 in +test/behaviour/, plus the first process test. -| area | moved | M left | X kept | +| area | moved | M left (most excluded: effects, T2, images, LSP) | X kept | |---|---|---|---| -| src/ninep/ctl.zig, pane.zig | 38 (9 by hand) | about 72 | 6 | -| test/panes.zig | 30 | 15 | 16 | -| src/pardes.zig | 28 | 17 | 36 | -| test/pdf.zig, test/output.zig | 14 | 28 | 13 | +| src/ninep/ctl.zig | 9 + 29 + 62 | 37 | 14 | +| src/ninep/pane.zig, test/panes.zig | 30 + 27 | 16 | 19 | +| src/pardes.zig, test/output.zig, test/pdf.zig | 28 + 14 + 21 | 13 | 51 | What the M left need, most first: - **Effects performed:** Session counts a save and drops it; a save diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index 9dc9c473..a831273b 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -6,7 +6,7 @@ == The mouse #pairs( - btn("B1"), [select, and focus the pane. On a tag: type there.], + btn("B1"), [select, and focus the pane. On a tag: its cursor there, in normal mode (#key("i") to type).], btn("B2"), [#word("Exec") the word or selection: a builtin, else a shell line.], btn("B3"), [#word("Look"): open the file, address, directory or URL, else find the word's next place. Resting the pointer tints what #btn("B3") would take.], [sweep], [drag #btn("B2") or #btn("B3") to #word("Exec") or #word("Look") exactly what you swept.], diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 56fe3ebd..74a0df86 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -64,7 +64,7 @@ before #key("Ctrl-w") or #key("Alt-n"). = The mouse <mouse> #pairs( - btn("B1"), [select; a click puts the cursor there and gives the pane the keyboard. In a tag it starts typing, in insert mode. A double click selects the word; at a line's start or end, the line; just inside a bracket or quote, up to its match.], + btn("B1"), [select; a click puts the cursor there and gives the pane the keyboard. In a tag it puts the tag's cursor there, in normal mode: #key("i") types there, #key("Enter") or #key("Tab") runs the word under it. A double click selects the word; at a line's start or end, the line; just inside a bracket or quote, up to its match.], btn("B2"), [#word("Exec"): a builtin word runs, anything else is a shell line.], btn("B3"), [#word("Look"): open the file, address, directory or URL, else find the word's next place.], chord("B1", "B2"), [cut the selection], |
