forked from mirror/vulkan-zig
actually run the tests
This commit is contained in:
committed by
bluesillybeard
parent
9c45afca2e
commit
571cecdda6
@@ -68,12 +68,14 @@ pub fn build(b: *std.Build) void {
|
|||||||
const triangle_run_step = b.step("run-triangle", "Run the triangle example");
|
const triangle_run_step = b.step("run-triangle", "Run the triangle example");
|
||||||
triangle_run_step.dependOn(&triangle_run_cmd.step);
|
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" },
|
.root_source_file = .{ .path = "generator/index.zig" },
|
||||||
});
|
});
|
||||||
|
|
||||||
var test_step = b.step("test", "Run all the tests");
|
const run_test = b.addRunArtifact(test_target);
|
||||||
test_step.dependOn(&test_target.step);
|
|
||||||
|
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.
|
// This test needs to be an object so that vulkan-zig can import types from the root.
|
||||||
// It does not need to run anyway.
|
// It does not need to run anyway.
|
||||||
|
|||||||
Reference in New Issue
Block a user