Fixed tests not being run when built

This commit is contained in:
Caleb J. Gardner
2026-06-02 22:03:03 -05:00
parent c51cc34f17
commit 7bbede3f2e
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -77,9 +77,12 @@ pub fn build(b: *std.Build) !void {
const lib_test = b.addTest(.{ const lib_test = b.addTest(.{
.name = "squashfs-test", .name = "squashfs-test",
.root_module = lib.root_module, .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"); const test_step = b.step("test", "Run tests");
test_step.dependOn(&lib_test.step); test_step.dependOn(&lib_test_run.step);
// zls check step // zls check step
const lib_check = b.addLibrary(.{ const lib_check = b.addLibrary(.{
+1 -1
View File
@@ -4,5 +4,5 @@ pub const ExtractionOptions = @import("options.zig");
test { test {
const std = @import("std"); const std = @import("std");
std.testing.refAllDecls(Archive); std.testing.refAllDecls(@This());
} }