summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 11:52:57 -0300
committerGabriel Schneider <[email protected]>2026-11-18 12:16:41 -0300
commit69bf62d3e245934b922025c62d8703700521cac0 (patch)
tree24ed2d0950caa4723101c34afd98b70687d19d75 /test
parent0cc7413bbf1d546f29976b9639896a209e2e7f27 (diff)
downloadpardes-69bf62d3e245934b922025c62d8703700521cac0.tar.gz
pardes-69bf62d3e245934b922025c62d8703700521cac0.zip
kinds: the Shadow path deleted (the session painting a pane of a kind for each client and sending its frames, the rasters as strips, the client's picture cache): no kind in the tree reached it but a test's since the PDF and the picture run where they are shown (PA_PLAIN); a kind that is not plain shows a line in a client saying it runs in the session alone, its keys and mouse still the session's; Kind.zig 1,743 -> 1,367 lines (the Shadow section, Slot.shadow, draw's Shadow branch, the three Shadow tests), replica.zig 4,579 -> 4,477 (Screens.shadows and the kind_shadow/kind_raster/kind_want messages, PeerOf.shadow, Replica.blobs; Screens.flush keeps its view argument, unread now), the Counter kind's test rewritten for the line, draw.zig's pointer from the Shadow, dump.zig's comments; the manual (running.typ) and next-run.md say what a client shows; net -472 lines; tui core-test 817/956 (139 skipped; the three Shadow tests gone), shell-test 991/994, behaviour-test 274/274, --replay 20 seeds 0 failures, pane-test 181/182, replicas pass, addon-test 1/1, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), test/daemon.py, --games and --window-clients pass, --far timed out once at load 10-12 (the ssh client's first frame) and passed alone; gui unit-test 1586/1590 (its perf check's BaselineBuildMismatch, the base's), the frame corpus 77/77 against mbase2
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test')
-rw-r--r--test/daemon.py6
-rw-r--r--test/panes.zig2
-rw-r--r--test/replicas.zig2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/daemon.py b/test/daemon.py
index 051297a8..5bdf1fc4 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -649,9 +649,9 @@ def pdf_window(binary, gui_binary):
"""A PDF in a terminal's detached session (the pdf addon its prefix
installs, `<prefix>/lib/pardes/addons/pdf.so`), a window client attached
and its wheel turned over the PDF: the session's page moves, the
- window's digest is the session's, and the window, which runs no addon
- code, draws the session's frames of it. Skipped when the build has no
- pdf.so."""
+ window's digest is the session's, and the window, which runs the
+ addon's code itself (its state is plain: PA_PLAIN), draws its own
+ pages from the file. Skipped when the build has no pdf.so."""
lib = Path(binary).resolve().parent.parent / 'lib' / 'pardes' / 'addons' / 'pdf.so'
if not lib.exists():
print(f'daemon: no {lib}: the PDF window case skipped')
diff --git a/test/panes.zig b/test/panes.zig
index 34c81801..a9a22351 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -3937,7 +3937,7 @@ const PdfAddon = struct {
else
try std.testing.expectEqualDeep(@field(s, name), @field(t, name));
}
- // Its place: what its kind says, and the Shadow's copy of it.
+ // Its place: what its kind says, and the loaded copy of it.
var here: [32]u8 = undefined;
var there: [32]u8 = undefined;
try std.testing.expectEqualStrings(pardes.Kind.where(s, &here), pardes.Kind.where(t, &there));
diff --git a/test/replicas.zig b/test/replicas.zig
index 55efd124..a84b826f 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -680,7 +680,7 @@ fn push(q: *std.PriorityQueue(Msg, void, Msg.order), nn: *u64, m: Msg) !void {
fn flushAll(sc: *replica.Screens, core: *pardes.Pardes, ps: []const u16, list: *std.ArrayListUnmanaged([]u8), q: *std.PriorityQueue(Msg, void, Msg.order), nn: *u64, now: u64, dl: []Link, rnd: std.Random, ow: u64, jt: u64, vs: *std.AutoHashMapUnmanaged(u64, u64), tot: *Totals) !void {
for (ps, 0..) |peer, c| {
list.clearRetainingCapacity();
- // No pane of a kind here: the view a Shadow is painted for is moot.
+ // Terminals alone cross: the view is not read.
try sc.flush(core, peer, 0, list);
for (list.items) |bytes| {
tot.deltas += 1;