master
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const test_step = b.step("test", "Test the program");
5 b.default_step = test_step;
6
7 const test_exe = b.addTest(.{ .root_module = b.createModule(.{
8 .target = b.graph.host,
9 .root_source_file = b.path("test.zig"),
10 }) });
11 test_exe.test_runner = .{
12 .path = b.path("test_runner.zig"),
13 .mode = .simple,
14 };
15
16 const test_run = b.addRunArtifact(test_exe);
17 test_step.dependOn(&test_run.step);
18}