build: add option to install tests

This commit is contained in:
CJ van den Berg 2026-03-09 12:19:23 +01:00
parent 5b2962fdc0
commit 6b0cbe7171
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -82,5 +82,7 @@ pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_tests.step);
if (b.option(bool, "install_tests", "Install the tests executable to the output directory") orelse false) {
b.installArtifact(tests);
}
}