mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
17 lines
426 B
Zig
17 lines
426 B
Zig
const std = @import("std");
|
|
|
|
pub const requires_stage2 = true;
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const test_step = b.step("test", "Test the program");
|
|
b.default_step = test_step;
|
|
|
|
const test_exe = b.addTest(.{
|
|
.root_source_file = b.path("test.zig"),
|
|
});
|
|
test_exe.test_runner = b.path("test_runner.zig");
|
|
|
|
const test_run = b.addRunArtifact(test_exe);
|
|
test_step.dependOn(&test_run.step);
|
|
}
|