zig/test/link/bss/build.zig

15 lines
397 B
Zig
Raw Normal View History

const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const test_step = b.step("test", "Test");
const exe = b.addExecutable("bss", "main.zig");
b.default_step.dependOn(&exe.step);
exe.setBuildMode(mode);
const run = exe.run();
run.expectStdOutEqual("0, 1, 0\n");
test_step.dependOn(&run.step);
}