authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-01-23 10:13:32 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-01-23 10:13:32 -08:00
log14f3f971a731b78c854ac2dfdadbdd4f81ffe796
tree6cfff0b69150ddfe5842bc8e637a42693c92b700
parent905e29b6760035e63b7dc027a4c355ff392bb454

make the test step actually point at the file


1 files changed, 12 insertions(+), 1 deletions(-)

build.zig+12-1
......@@ -1,11 +1,22 @@
11const std = @import("std");
22
33pub fn build(b: *std.build.Builder) void {
4 const target = b.standardTargetOptions(.{});
5 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
6
47 _ = b.addModule(
58 "extras",
69 .{ .source_file = .{ .path = "src/lib.zig" } },
710 );
811
12 const exe_unit_tests = b.addTest(.{
13 .root_source_file = .{ .path = "src/lib.zig" },
14 .target = target,
15 .optimize = mode,
16 });
17
18 const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests);
19
920 const test_step = b.step("test", "dummy test step to pass CI checks");
10 _ = test_step;
21 test_step.dependOn(&run_exe_unit_tests.step);
1122}