2023-01-31 07:19:51 +00:00
|
|
|
const std = @import("std");
|
2017-08-20 09:03:36 +01:00
|
|
|
|
2023-01-31 07:19:51 +00:00
|
|
|
pub fn build(b: *std.Build) void {
|
2023-03-08 07:16:16 +00:00
|
|
|
const test_step = b.step("test", "Test it");
|
|
|
|
b.default_step = test_step;
|
|
|
|
|
|
|
|
const optimize: std.builtin.OptimizeMode = .Debug;
|
|
|
|
|
2023-01-31 04:39:43 +00:00
|
|
|
const main = b.addTest(.{
|
|
|
|
.root_source_file = .{ .path = "main.zig" },
|
2023-03-08 07:16:16 +00:00
|
|
|
.optimize = optimize,
|
2023-01-31 04:39:43 +00:00
|
|
|
});
|
2022-01-24 18:15:32 +00:00
|
|
|
main.addIncludePath(".");
|
2017-08-20 09:03:36 +01:00
|
|
|
|
2023-04-11 01:05:09 +01:00
|
|
|
test_step.dependOn(&b.addRunArtifact(main).step);
|
2017-08-20 09:03:36 +01:00
|
|
|
}
|