| 1 | const std = @import("std"); |
| 2 | |
| 3 | pub fn build(b: *std.Build) void { |
| 4 | const test_step = b.step("test", "Test it"); |
| 5 | b.default_step = test_step; |
| 6 | |
| 7 | const optimize: std.builtin.Optimize = .debug; |
| 8 | |
| 9 | const main = b.addTest(.{ |
| 10 | .root_module = b.createModule(.{ |
| 11 | .root_source_file = b.path("main.zig"), |
| 12 | .target = b.graph.host, |
| 13 | .optimize = optimize, |
| 14 | .strip = true, |
| 15 | }), |
| 16 | }); |
| 17 | |
| 18 | test_step.dependOn(&b.addRunArtifact(main).step); |
| 19 | } |