| ... | ... | @@ -2,9 +2,13 @@ const std = @import("std"); |
| 2 | 2 | const deps = @import("./deps.zig"); |
| 3 | 3 | |
| 4 | 4 | pub fn build(b: *std.build.Builder) void { |
| 5 | | const t = b.addTest("main.zig"); |
| 5 | const t = b.addTest(.{ |
| 6 | .root_source_file = .{ .path = "main.zig" }, |
| 7 | }); |
| 6 | 8 | deps.addAllTo(t); |
| 7 | 9 | |
| 10 | const run_t = b.addRunArtifact(t); |
| 11 | |
| 8 | 12 | const t_step = b.step("run", "Run all the tests."); |
| 9 | | t_step.dependOn(&t.step); |
| 13 | t_step.dependOn(&run_t.step); |
| 10 | 14 | } |