Files
zig/test/standalone/test_runner_path/build.zig
T
Andrew Kelley 7fb5a0b18b introduce std.Build.path; deprecate LazyPath.relative
This adds the *std.Build owner to LazyPath so that lazy paths returned
from a dependency can be used in the application without friction or
footguns.

closes #19313
2024-04-10 15:02:20 -07:00

17 lines
431 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 = .{ .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);
}