diff --git a/zigux/tests/phase1_bench_build_contract_build.zig b/zigux/tests/phase1_bench_build_contract_build.zig new file mode 100644 index 00000000000000..0a4a559b137e18 --- /dev/null +++ b/zigux/tests/phase1_bench_build_contract_build.zig @@ -0,0 +1,32 @@ +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_bench_build_contract.zig"), + .target = target, + .optimize = optimize, + }); + + const contract_tests = b.addTest(.{ + .name = "phase1-bench-build-contract", + .root_module = root_module, + }); + const run_contract = b.addRunArtifact(contract_tests); + + const contract_step = b.step( + "phase1-bench-build-contract", + "Run the focused Phase 1 bench build contract from zigux/tests", + ); + contract_step.dependOn(&run_contract.step); + + const test_step = b.step( + "test", + "Run the focused Phase 1 bench build contract from zigux/tests", + ); + test_step.dependOn(&run_contract.step); + + b.default_step.dependOn(test_step); +}