From 3e4a022ef524a018ac4d2c6b9fefa1f1b078e071 Mon Sep 17 00:00:00 2001 From: adybag14-cyber Date: Fri, 29 May 2026 10:35:10 +0100 Subject: [PATCH] test(zigux): add findNextAndBit replay runner --- ...1_find_next_and_bit_bench_replay_build.zig | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 zigux/tests/phase1_find_next_and_bit_bench_replay_build.zig diff --git a/zigux/tests/phase1_find_next_and_bit_bench_replay_build.zig b/zigux/tests/phase1_find_next_and_bit_bench_replay_build.zig new file mode 100644 index 00000000000000..46315893040ff1 --- /dev/null +++ b/zigux/tests/phase1_find_next_and_bit_bench_replay_build.zig @@ -0,0 +1,39 @@ +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_find_next_and_bit_bench_replay.zig"), + .target = target, + .optimize = optimize, + }); + const find_bit_module = b.createModule(.{ + .root_source_file = b.path("../../tools/lib/find_bit.zig"), + .target = target, + .optimize = optimize, + }); + + root_module.addImport("find_bit", find_bit_module); + + const replay_tests = b.addTest(.{ + .name = "phase1-find-next-and-bit-bench-replay", + .root_module = root_module, + }); + const run_replay = b.addRunArtifact(replay_tests); + + const replay_step = b.step( + "phase1-find-next-and-bit-bench-replay", + "Run the focused Phase 1 findNextAndBit bench replay from zigux/tests", + ); + replay_step.dependOn(&run_replay.step); + + const test_step = b.step( + "test", + "Run the focused Phase 1 findNextAndBit bench replay from zigux/tests", + ); + test_step.dependOn(&run_replay.step); + + b.default_step.dependOn(test_step); +}