Fixed tests not being run when built
This commit is contained in:
@@ -77,9 +77,12 @@ pub fn build(b: *std.Build) !void {
|
||||
const lib_test = b.addTest(.{
|
||||
.name = "squashfs-test",
|
||||
.root_module = lib.root_module,
|
||||
.use_llvm = debug,
|
||||
});
|
||||
const lib_test_run = b.addRunArtifact(lib_test);
|
||||
lib_test_run.skip_foreign_checks = true;
|
||||
const test_step = b.step("test", "Run tests");
|
||||
test_step.dependOn(&lib_test.step);
|
||||
test_step.dependOn(&lib_test_run.step);
|
||||
|
||||
// zls check step
|
||||
const lib_check = b.addLibrary(.{
|
||||
|
||||
Reference in New Issue
Block a user