Backlog/testing/build.zig

25 lines
757 B
Zig

const std = @import("std");
const Backlog = @import("Backlog");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
var blbuild = Backlog.init(b, .{
.target = target,
.optimize = optimize,
});
const testAll = blbuild.addProgram(.{
.name = "tests",
.desc = "a test runner that runs every single module test",
.root_source_file = b.path("test-all.zig"),
});
testAll.setModuleEnabled("assets", false);
testAll.setModuleEnabled("platform", false);
testAll.setModuleEnabled("audio", false);
testAll.setModuleEnabled("net", false);
testAll.setModuleEnabled("rend", false);
}