mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
14 lines
343 B
Zig
14 lines
343 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const test_step = b.step("test", "Test it");
|
|
b.default_step = test_step;
|
|
|
|
const test_artifact = b.addTest(.{
|
|
.root_source_file = .{ .path = "main.zig" },
|
|
});
|
|
test_artifact.addIncludePath("a_directory");
|
|
|
|
test_step.dependOn(&test_artifact.step);
|
|
}
|