zig/test/standalone/main_pkg_path/build.zig

10 lines
261 B
Zig

const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const test_exe = b.addTest("a/test.zig");
test_exe.setMainPkgPath(".");
const test_step = b.step("test", "Test the program");
test_step.dependOn(&test_exe.step);
}