master
 1const std = @import("std");
 2
 3pub fn build(b: *std.Build) void {
 4    const test_step = b.step("test", "Test it");
 5    b.default_step = test_step;
 6
 7    const main = b.addTest(.{ .root_module = b.createModule(.{
 8        .root_source_file = b.path("main.zig"),
 9        .target = b.graph.host,
10        .optimize = b.standardOptimizeOption(.{}),
11    }) });
12    // TODO: actually check these two artifacts for correctness
13    _ = main.getEmittedBin();
14    _ = main.getEmittedAsm();
15
16    test_step.dependOn(&b.addRunArtifact(main).step);
17}