From 72ca059ff7f2518e80bb8d9208c3dd85f8312db0 Mon Sep 17 00:00:00 2001 From: adybag14-cyber Date: Fri, 29 May 2026 09:36:59 +0100 Subject: [PATCH] test(zigux): add findAddCached replay build shard --- ...ree_find_add_cached_bench_replay_build.zig | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 zigux/tests/phase1_rbtree_find_add_cached_bench_replay_build.zig diff --git a/zigux/tests/phase1_rbtree_find_add_cached_bench_replay_build.zig b/zigux/tests/phase1_rbtree_find_add_cached_bench_replay_build.zig new file mode 100644 index 00000000000000..6a570d62313ca5 --- /dev/null +++ b/zigux/tests/phase1_rbtree_find_add_cached_bench_replay_build.zig @@ -0,0 +1,38 @@ +const std = @import("std"); + +pub fn build(b: *std.Build) void { + const target = b.standardTargetOptions(.{}); + const optimize = b.standardOptimizeOption(.{}); + + const root_module = b.createModule(.{ + .root_source_file = b.path("phase1_rbtree_find_add_cached_bench_replay.zig"), + .target = target, + .optimize = optimize, + }); + const rbtree_module = b.createModule(.{ + .root_source_file = b.path("../../tools/lib/rbtree.zig"), + .target = target, + .optimize = optimize, + }); + + root_module.addImport("rbtree", rbtree_module); + + const tests = b.addTest(.{ + .root_module = root_module, + }); + const run_tests = b.addRunArtifact(tests); + + const replay_step = b.step( + "phase1-rbtree-find-add-cached-bench-replay", + "Run the Phase 1 rbtree findAddCached bench replay", + ); + replay_step.dependOn(&run_tests.step); + + const test_step = b.step( + "test", + "Run the Phase 1 rbtree findAddCached bench replay", + ); + test_step.dependOn(&run_tests.step); + + b.default_step.dependOn(test_step); +}