| 1 |
const std = @import("std"); |
| 2 |
|
| 3 |
pub fn build(b: *std.Build) void { |
| 4 |
const target = b.standardTargetOptions(.{}); |
| 5 |
const optimize = b.standardOptimizeOption(.{}); |
| 6 |
|
| 7 |
const main_tests = b.addTest(.{ |
| 8 |
.root_module = b.createModule(.{ |
| 9 |
.root_source_file = b.path("src/main.zig"), |
| 10 |
.target = target, |
| 11 |
.optimize = optimize, |
| 12 |
}), |
| 13 |
}); |
| 14 |
const run_main_tests = b.addRunArtifact(main_tests); |
| 15 |
const test_step = b.step("test", "Run library tests"); |
| 16 |
test_step.dependOn(&run_main_tests.step); |
| 17 |
} |