diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 03:20:04 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 04:13:33 -0300 |
| commit | 4c2125ecf47588d33f9894c1fdf2833d0512f3b4 (patch) | |
| tree | c76510fd390e20187554ea86a3fdabd2dfb65ca5 /test/snapshots | |
| parent | d1d5d3cfb18841604bba2057eeb3598f729b4475 (diff) | |
| download | pardes-4c2125ecf47588d33f9894c1fdf2833d0512f3b4.tar.gz pardes-4c2125ecf47588d33f9894c1fdf2833d0512f3b4.zip | |
client #2, one frontend a session: the daemon answers `other <name>` for an attach to a session attached already (as it did for one of the other kind), so a second `pardes --attach` or `pardes-gui --attach` on this machine is a replica client through the replica socket, the path a remote one takes; a session tells the daemon its clients (SO_PEERCRED on each replica socket, at every join and leave) and `--ps` lists `client <pid> <command>` under it; the tty's per-terminal Screens (Screen.create/drop/destroy, primary, its stub and Killed slot), the Poster and its `from` input, the Gui's window-fields swap (window_fields, GuiWindow, copyWindow, freshWindow, follow, route, openAnotherWindow, closeView, windowsOpen, closeOtherWindows, resumeWindows), drawOthers and every harness's extra terminals (snapshot.zig's `start ... views=N` and `view <k>`, e2e_harness's initView and drainOthers, PARDES_TEST_VIEWS in both frontends, the GUI feed's `view;<k>`, the monkey's --views) go; the pump draws the one view this process shows (views.shown), through drawOne when a client's input was the last; an Upgrade from a build that kept a second terminal of its own lets it go (its stub told it is detached) and closes its view; deleted: views.snap, views-term.snap and views-pan.snap with their goldens (the in-process second terminal they drove is gone; views.zig's unit tests keep the per-view cursor, layout, register, sizing, closing and panning behaviour, test/replicas.zig and the soak the views of clients); the two views.zig tests that drew through drawOthers draw through drawOne; daemon.py's second terminal is a client listed by --ps, typed into in both terminals, detached from inside and closed; its second window a client listed by --ps and closed; the reference and next-daemon.md say so; no golden changes; gates: core-test 956/956 both, behaviour-test 248/248 both, unit-test 1487/1488 tui and 1530/1531 gui, pane-test 171/172 both, snap all 102 ok, process-test 0 of 37 failed on both, hxdiff 19 and hxparity 6 mismatches (the base's names), hxgolf 0, replicas, addon-test, gui-golden and monkey-gui 0 of 1 failed, daemon.py main, --window-clients and --gui ok, soak local pass (differ, mispred, view_bad, lost 0)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots')
| -rw-r--r-- | test/snapshots/views-pan.golden | 52 | ||||
| -rw-r--r-- | test/snapshots/views-pan.snap | 27 | ||||
| -rw-r--r-- | test/snapshots/views-term.golden | 46 | ||||
| -rw-r--r-- | test/snapshots/views-term.snap | 27 | ||||
| -rw-r--r-- | test/snapshots/views.golden | 123 | ||||
| -rw-r--r-- | test/snapshots/views.snap | 57 |
6 files changed, 0 insertions, 332 deletions
diff --git a/test/snapshots/views-pan.golden b/test/snapshots/views-pan.golden deleted file mode 100644 index e2c6186b..00000000 --- a/test/snapshots/views-pan.golden +++ /dev/null @@ -1,52 +0,0 @@ -== snap tall grid=80x24 cursor=4,16 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/views-pan/cwd Term+bash Save Mode Filter Collapse Del -| 18 -| 19 -| 20 -| 21 -| 22 -| 23 -| 24 -| 25 -| 26 -| 27 -| 28 -| 29 -| 30 -| $ -| /tmp/pardes-snap/views-pan/cwd/+New Save Term Collapse Del -| 1 -== snap short-pans grid=60x12 cursor=4,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/views-pan/cwd Term+bash Save Mode Filter -| Collapse Del -|↑ 27 -| 28 -| 29 -| 30 -| $ -| /tmp/pardes-snap/views-pan/cwd/+New Save Term Collapse Del -| 1 -== snap short-typed grid=60x12 cursor=4,8 -|4: 29 -|5: 30 -|6: $ echo typed-in-short -|7: typed-in-short -== snap tall-sees grid=80x24 cursor=4,7 -|3: 29 -|4: 30 -|5: $ echo typed-in-short -|6: typed-in-short -|7: $ -|8: -|9: -|10: -|11: -|12: -|13: -|14: -|15: -|16: diff --git a/test/snapshots/views-pan.snap b/test/snapshots/views-pan.snap deleted file mode 100644 index 3ba1ac5b..00000000 --- a/test/snapshots/views-pan.snap +++ /dev/null @@ -1,27 +0,0 @@ -# A terminal shown in a view shorter than it (src/views.zig): sized for the -# tall view that typed into it, the short one passes over its top rows so -# its cursor and prompt stay in sight, an arrow in the gutter saying rows -# are above. -config Verbose off -start 24 80 views=2 -wait 8000 $ -stable 700 20000 -view 2 -resize 12 60 -stable 500 10000 -view 1 -text seq 1 30 -key enter -wait 8000 30 -stable 500 10000 -snap tall -view 2 -stable 500 10000 -snap short-pans -text echo typed-in-short -key enter -stable 500 10000 -snap short-typed -view 1 -stable 500 10000 -snap tall-sees diff --git a/test/snapshots/views-term.golden b/test/snapshots/views-term.golden deleted file mode 100644 index 3ece1f10..00000000 --- a/test/snapshots/views-term.golden +++ /dev/null @@ -1,46 +0,0 @@ -== snap small grid=50x14 cursor=4,4 -| Newcol Joincol Find Grep Help Changelog Tutor Du -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/views-term/cwd Term+bash Save M -| ode Filter Collapse Del -| $ -| -| -| -| -| -| /tmp/pardes-snap/views-term/cwd/+New Save Term C -| ollapse Del -| 1 -== snap big grid=80x24 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/views-term/cwd Term+bash Save Mode Filter Collapse Del -| $ echo from-the-big-one -| from-the-big-one -| $ -| -| -| -| -| -| -| -| -| -| -| -| /tmp/pardes-snap/views-term/cwd/+New Save Term Collapse Del -| 1 -== snap small-sees grid=50x14 cursor=4,6 -|4: $ echo from-the-big-one -|5: from-the-big-one -|6: $ -== snap small-typed grid=50x14 cursor=4,8 -|6: $ echo from-the-small-one -|7: from-the-small-one -|8: $ -== snap big-sees grid=80x24 cursor=4,7 -|5: $ echo from-the-small-one -|6: from-the-small-one -|7: $ diff --git a/test/snapshots/views-term.snap b/test/snapshots/views-term.snap deleted file mode 100644 index bbd1c368..00000000 --- a/test/snapshots/views-term.snap +++ /dev/null @@ -1,27 +0,0 @@ -# A terminal shown in two views at two sizes (src/views.zig): it takes the -# size of the view that typed into it last; the other shows it at that size. -config Verbose off -start 24 80 views=2 -wait 8000 $ -stable 700 20000 -view 2 -resize 14 50 -stable 500 10000 -snap small -# Typed in the big view: sized for it, shown so in the small one. -view 1 -text echo from-the-big-one -key enter -stable 500 10000 -snap big -view 2 -stable 500 10000 -snap small-sees -# Typed in the small view: sized for it now, the big one shows it so. -text echo from-the-small-one -key enter -stable 500 10000 -snap small-typed -view 1 -stable 500 10000 -snap big-sees diff --git a/test/snapshots/views.golden b/test/snapshots/views.golden deleted file mode 100644 index 14120f39..00000000 --- a/test/snapshots/views.golden +++ /dev/null @@ -1,123 +0,0 @@ -== snap one grid=80x24 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/views/cwd/v.txt Save Term Collapse Del -| 1 line 1 -| 2 line 2 -| 3 line 3 -| 4 line 4 -| 5 line 5 -| 6 line 6 -| 7 line 7 -| 8 line 8 -| 9 line 9 -| 10 line 10 -| 11 line 11 -| 12 line 12 -| 13 line 13 -| 14 line 14 -| 15 line 15 -| 16 line 16 -| 17 line 17 -| 18 line 18 -| 19 line 19 -| 20 line 20 -| 21 line 21 -== snap two grid=80x24 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/views/cwd/v.txt Save Term Collapse Del -| 1 line 1 -| 2 line 2 -| 3 line 3 -| 4 line 4 -| 5 line 5 -| 6 line 6 -| 7 line 7 -| 8 line 8 -| 9 line 9 -| 10 line 10 -| 11 line 11 -| 12 line 12 -| 13 line 13 -| 14 line 14 -| 15 line 15 -| 16 line 16 -| 17 line 17 -| 18 line 18 -| 19 line 19 -| 20 line 20 -| 21 line 21 -== snap one-edit grid=80x24 cursor=15,3 -|2: */tmp/pardes-snap/views/cwd/v.txt Save Term Collapse Del -|3: 1 EDIT-ONEline 1 -== snap two-sees grid=80x24 cursor=7,3 -|2: */tmp/pardes-snap/views/cwd/v.txt Save Term Collapse Del -|3: 1 EDIT-ONEline 1 -== snap two-down grid=80x24 cursor=7,6 -|3: 22 line 22 -|4: 23 line 23 -|5: 24 line 24 -|6: 25 line 25 -|7: 26 line 26 -|8: 27 line 27 -|9: 28 line 28 -|10: 29 line 29 -|11: 30 line 30 -|12: 31 line 31 -|13: 32 line 32 -|14: 33 line 33 -|15: 34 line 34 -|16: 35 line 35 -|17: 36 line 36 -|18: 37 line 37 -|19: 38 line 38 -|20: 39 line 39 -|21: 40 line 40 -|22: 41 line 41 -|23: 42 line 42 -== snap one-top grid=80x24 cursor=15,3 -== snap two-put grid=80x24 cursor=21,7 -|7: 26 EDIT-ONEline 1 -|8: 27 line 26 -|9: 28 line 27 -|10: 29 line 28 -|11: 30 line 29 -|12: 31 line 30 -|13: 32 line 31 -|14: 33 line 32 -|15: 34 line 33 -|16: 35 line 34 -|17: 36 line 35 -|18: 37 line 36 -|19: 38 line 37 -|20: 39 line 38 -|21: 40 line 39 -|22: 41 line 40 -|23: 42 line 41 -== snap two-col grid=80x24 cursor=42,1 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: */tmp/pardes-snap/views/cwd/v.txt Save -|3: Term Collapse Del -|4: 22 line 22 -|5: 23 line 23 -|6: 24 line 24 -|7: 25 line 25 -|8: 26 EDIT-ONEline 1 -|9: 27 line 26 -|10: 28 line 27 -|11: 29 line 28 -|12: 30 line 29 -|13: 31 line 30 -|14: 32 line 31 -|15: 33 line 32 -|16: 34 line 33 -|17: 35 line 34 -|18: 36 line 35 -|19: 37 line 36 -|20: 38 line 37 -|21: 39 line 38 -|22: 40 line 39 -|23: 41 line 40 -== snap one-col grid=80x24 cursor=21,3 -== snap one-after grid=80x24 cursor=13,4 diff --git a/test/snapshots/views.snap b/test/snapshots/views.snap deleted file mode 100644 index eba26bae..00000000 --- a/test/snapshots/views.snap +++ /dev/null @@ -1,57 +0,0 @@ -# Two terminals on one session, each a view of it (src/views.zig): each its -# own layout, focus, cursor and scroll over the same panes. An edit typed in -# one is in the other; a line yanked in one is put in the other (registers -# are the session's); Newcol in one leaves the other's columns; Detach in -# one lets that terminal go and leaves the other drawing. -config Verbose off -lines v.txt 120 -start 24 80 views=2 v.txt -wait 8000 line 1 -stable 500 10000 -snap one -view 2 -wait 8000 line 1 -stable 500 10000 -snap two -# Typed in view 1: in view 2 too. -view 1 -key i -text EDIT-ONE -key esc -settle 100 -stable 400 8000 -snap one-edit -view 2 -stable 400 8000 -snap two-sees -# Scrolled in view 2: view 1 stays at the top. -key pgdn -stable 400 8000 -snap two-down -view 1 -stable 400 8000 -snap one-top -# Yanked in view 1, put in view 2. -key x y -stable 400 8000 -view 2 -key p -stable 400 8000 -snap two-put -# A column in view 2 only. -key space -text cn -stable 400 8000 -snap two-col -view 1 -stable 400 8000 -snap one-col -# Detached in view 2: its terminal let go, view 1 drawing on. -view 2 -key space -text sD -stable 400 8000 -view 1 -key j -stable 400 8000 -snap one-after |
