summaryrefslogtreecommitdiff
path: root/test/e2e_harness.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-06 18:11:36 -0300
committerGabriel Schneider <[email protected]>2026-09-07 13:59:12 -0300
commit60367d8fe23f6af98ec28e3cf6c2094dfe332df0 (patch)
tree310fc734173cf771881f4691c71909135fadde97 /test/e2e_harness.zig
parentfa82cac885cb4738fe36d1e49b4749b5a3e31a4a (diff)
downloadpardes-60367d8fe23f6af98ec28e3cf6c2094dfe332df0.tar.gz
pardes-60367d8fe23f6af98ec28e3cf6c2094dfe332df0.zip
Refactor panes and filesystem; replace FUSE with 9P
Consolidate pane, layout, memory and host code. Serve 9P by default over Unix sockets, with runtime mounts and optional TCP/QUIC transports. Remove FUSE and obsolete proof-of-concept examples. Fix highlighting and terminal-history performance, expand differential and stress-test infrastructure, sort navigation results while preserving the next occurrence, add syntax-colored Braille minimaps, remove SPC-k, and document 9P interaction as a repository skill.
Diffstat (limited to 'test/e2e_harness.zig')
-rw-r--r--test/e2e_harness.zig12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/e2e_harness.zig b/test/e2e_harness.zig
index e08e59f2..f7f380df 100644
--- a/test/e2e_harness.zig
+++ b/test/e2e_harness.zig
@@ -14,7 +14,7 @@ extern "c" fn forkpty(
) c_int;
extern "c" fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int;
extern "c" fn _exit(status: c_int) noreturn;
-extern "c" fn setenv(name: [*:0]const u8, value: [*:0]const u8, overwrite: c_int) c_int;
+extern "c" fn unsetenv(name: [*:0]const u8) c_int;
/// Monotonic milliseconds; the harness's only clock (std.time lost
/// milliTimestamp in 0.16).
@@ -88,18 +88,12 @@ pub const Harness = struct {
argv[0] = exe;
for (args, 0..) |a, i| argv[i + 1] = a;
- // The app under test is a fresh outer session even when this harness
- // itself is running in a pardes pane. Unlike --nested, the boundary
- // still lets pane shells below that app detect and talk to it, which
- // nested.snap exercises directly.
- var boundary_buf: [32:0]u8 = undefined;
- const boundary = try std.fmt.bufPrintSentinel(&boundary_buf, "{d}", .{@as(u32, @intCast(libc.getpid()))}, 0);
- if (setenv("PARDES_NESTED_BOUNDARY_PID", boundary, 1) != 0) return error.SetEnvFailed;
-
var master: c_int = undefined;
const ws = posix.winsize{ .row = rows, .col = cols, .xpixel = 0, .ypixel = 0 };
const pid = forkpty(&master, null, null, &ws);
if (pid == 0) {
+ for ([_][*:0]const u8{ "PARDES_9P", "PARDES_PANE", "PARDES_FORWARD_LOOK" }) |name|
+ if (unsetenv(name) != 0) _exit(126);
_ = execvp(exe, argv.ptr);
_exit(127);
}