From 94ca47f225632fefc8f688c0c0822d25d6a5db1e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 23:38:24 -0300 Subject: settings #6, the cut through the public surface: a T1 case loads the user's startup file (~/.config/pardes/init as it was on 2026-11-05, copied into the test, never read) and finds no init-file notice in /log and every value read back on the root ctl, the window's words as `# X unsupported` in a terminal's view, and a second refuses each of the fifteen cut words on the root ctl with the unknown-word refusal, finds none of them in /commands, and gives a startup file saying one a notice naming its line while the next line still applies (test/session.zig's initStartup); the cut is fifteen of the thirty-two words, Verbose, MessageLinger and DumpDir kept for the tests, harnesses and documented path that use them; a dump the base build wrote with every cut setting off its default Restores in this build; gates on the head: tui core-test 961/961, behaviour-test 242/242, unit-test 1478/1479, pane-test 171/172, snap all 105 scripts ok, process-test 0 of 37 failed, hxdiff 19 and hxparity 6 mismatches (the base's sets by name), hxgolf 0; gui behaviour-test 242/242, unit-test 1522/1523, process-test 0 of 37 failed, gui-golden 0 of 1 failed, monkey-gui 0 of 1 failed; daemon.py main and --window-clients ok; perf within 13% of the base on every medium gesture Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/session.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/session.zig') diff --git a/test/session.zig b/test/session.zig index 71627dad..c3e6c579 100644 --- a/test/session.zig +++ b/test/session.zig @@ -47,6 +47,17 @@ pub const Session = struct { return s; } + /// A session showing one file pane, its startup file `init` (as + /// `~/.config/pardes/init` is read) applied first. + pub fn initStartup(gpa: std.mem.Allocator, init: []const u8) !Session { + const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 80, .rows = 24, .state = .memory, .startup_config = init }); + errdefer p.deinit(); + _ = try p.setTestFile("x\n"); + var s: Session = .{ .core = p, .arena = .init(gpa) }; + s.drain(); + return s; + } + /// A session showing its terminal pane, as `pardes` starts. pub fn initTerm(gpa: std.mem.Allocator) !Session { const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 80, .rows = 24, .state = .memory }); -- cgit v1.3