summaryrefslogtreecommitdiff
path: root/test/behaviour.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-03 17:22:54 -0300
committerGabriel Schneider <[email protected]>2026-11-03 17:23:24 -0300
commit5e778c87a33688c0079c916023d9c337dc944a69 (patch)
tree315a6defd3ed7db0e3404042f5e92a91524cba56 /test/behaviour.zig
parentd20a480e5d556b522aedfc7ec67fa423f37c8d1d (diff)
downloadpardes-5e778c87a33688c0079c916023d9c337dc944a69.tar.gz
pardes-5e778c87a33688c0079c916023d9c337dc944a69.zip
test: six of src/ninep/pane.zig's tests through the 9P tree alone, in new test/behaviour/{tree,addresses,flags}.zig and rules.zig: /index's rows (kind, dirty, name, column; stat 0, mode 0444, read at an offset), a terminal listed as term under its directory and refused a rename, body read at offsets and appended to (its stat its length, its qid version moving with each edit, a tag's 0), data and xdata from addr (data moving it), sel and dot (a truncated dot emptied at its clunk, a write to sel selected, one open's writes running on), the dirty, mark and scroll flags; each checked to fail against a break: kind text written txt, term written terminal, body's version always 0, a data read leaving addr where it was, a truncated dot never emptied, mark always reading 1
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour.zig')
-rw-r--r--test/behaviour.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/behaviour.zig b/test/behaviour.zig
index 49245d82..a272d0f6 100644
--- a/test/behaviour.zig
+++ b/test/behaviour.zig
@@ -3,9 +3,11 @@
//! named by the label first. This module imports test/session.zig alone,
//! so a test sees the session as a 9P client does.
test {
+ _ = @import("behaviour/addresses.zig");
_ = @import("behaviour/columns_and_tags.zig");
_ = @import("behaviour/edit.zig");
_ = @import("behaviour/event.zig");
+ _ = @import("behaviour/flags.zig");
_ = @import("behaviour/log.zig");
_ = @import("behaviour/look_and_exec.zig");
_ = @import("behaviour/mounts.zig");
@@ -14,4 +16,5 @@ test {
_ = @import("behaviour/root_ctl.zig");
_ = @import("behaviour/rules.zig");
_ = @import("behaviour/settings.zig");
+ _ = @import("behaviour/tree.zig");
}