From 839191168399ff38ad115fbec57b74e1406f14a9 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Sat, 13 Apr 2024 23:18:44 +0200 Subject: [PATCH] actually run the tests --- build.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index c7673f3..6a1c7c6 100644 --- a/build.zig +++ b/build.zig @@ -68,12 +68,14 @@ pub fn build(b: *std.Build) void { const triangle_run_step = b.step("run-triangle", "Run the triangle example"); triangle_run_step.dependOn(&triangle_run_cmd.step); - var test_target = b.addTest(.{ + const test_target = b.addTest(.{ .root_source_file = .{ .path = "generator/index.zig" }, }); - var test_step = b.step("test", "Run all the tests"); - test_step.dependOn(&test_target.step); + const run_test = b.addRunArtifact(test_target); + + const test_step = b.step("test", "Run all the tests"); + test_step.dependOn(&run_test.step); // This test needs to be an object so that vulkan-zig can import types from the root. // It does not need to run anyway.