summaryrefslogtreecommitdiff
path: root/build/tests.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 18:58:42 -0300
committerGabriel Schneider <[email protected]>2026-11-18 19:13:22 -0300
commit39ce335d7ca06b8095be2d953c240bac354868e5 (patch)
tree8cc8e543ac30f1e57dd0814fea2451a5219e9a81 /build/tests.zig
parent0d870b0f8f2cbbfbc4827dce39b60f367fc97363 (diff)
downloadpardes-39ce335d7ca06b8095be2d953c240bac354868e5.tar.gz
pardes-39ce335d7ca06b8095be2d953c240bac354868e5.zip
replicas: the PDF back in the soak (docs/design.pdf, --pdf from the build), opened at the start beside the picture and used by the session's typist and every client: its keys, the wheel over it (a glide), a search (`/`, a pattern, Enter: the kind's rows and its jobs), a sweep of B1 over it (a selection), a jump by address (`Look file.pdf:3`, `:1:1`, a hit), Del and Look again; each client keeps the kinds it caught breaking PA_PLAIN as its own process does (Proc swaps Addon.distrusted: shared, one client's catch left every other without the kind's code at its next join, never to run it again); and draw.zig gives a kind's pane whose body has no rows no thumb (the soak's session squeezed its PDF to its tag: '@intFromFloat' out of bounds on a track of 0 rows, a panic in Debug); replicas, five clients, 4 seeds, rtt 30/80/207: diverged 0, unequal 0, deltas checked/wrong 1725/0, 1609/0, 1725/0, quiet checks 457/0, 665/0, 757/0, the PDF's panes the session opened 5/4/5; in one seed at rtt 80 the clients' calls into the PDF: key 617 replayed and 497 speculated, mouse 27/37, view 638, tick 929/465, job_done 88, search 12, address 8, ctl 7
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build/tests.zig')
-rw-r--r--build/tests.zig10
1 files changed, 7 insertions, 3 deletions
diff --git a/build/tests.zig b/build/tests.zig
index ff206438..e0b9235a 100644
--- a/build/tests.zig
+++ b/build/tests.zig
@@ -135,15 +135,19 @@ pub fn add(b: *std.Build, c: struct {
const liar_mod = b.createModule(.{ .root_source_file = b.path("test/liar.zig"), .target = c.target, .optimize = c.optimize, .imports = &.{.{ .name = "addon", .module = c.addon_mod }} });
const liar_lib = b.addLibrary(.{ .name = "liar", .linkage = .dynamic, .root_module = liar_mod });
for ([_]*std.Build.Step.Compile{ snake_lib, life_lib, liar_lib }) |lib| addon_test_step.dependOn(&b.addInstallArtifact(lib, .{}).step);
- // The replicas' soak, its clients showing a picture and a game of life
- // from these libraries, as a user's addons are loaded (the PDF's too,
- // whose pane it does not open: round 5's report).
+ // The replicas' soak, its clients showing a picture, a game of life and
+ // a PDF (docs/design.pdf) from these libraries, as a user's addons are
+ // loaded.
const replicas = program(b, "pardes-replicas", "test/replicas.zig", c.target, c.optimize, &.{ .{ .name = "pardes", .module = c.core_module }, .{ .name = "term", .module = c.parts.term } });
const run_replicas = b.addRunArtifact(replicas);
for ([_]?*std.Build.Step.Compile{ c.image_addon, life_lib, c.pdf_addon }) |l| if (l) |lib| {
run_replicas.addArg("--addon");
run_replicas.addArtifactArg(lib);
};
+ if (c.pdf_addon != null) {
+ run_replicas.addArg("--pdf");
+ run_replicas.addFileArg(b.path("docs/design.pdf"));
+ }
run_replicas.addPassthruArgs();
run_replicas.has_side_effects = true;
b.step("replicas", "one authority and several replicas in process, each client typing over a delayed link: digests at quiescence, rollback rate and costs per RTT (-- [--seeds N] [--steps M] [--clients C] [--rtt 30,80,207])").dependOn(&run_replicas.step);