diff --git a/build.zig b/build.zig index ab1a30b..67ec998 100644 --- a/build.zig +++ b/build.zig @@ -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(.{ diff --git a/src/root.zig b/src/root.zig index c2b4b7e..8fc70a7 100644 --- a/src/root.zig +++ b/src/root.zig @@ -4,5 +4,5 @@ pub const ExtractionOptions = @import("options.zig"); test { const std = @import("std"); - std.testing.refAllDecls(Archive); + std.testing.refAllDecls(@This()); }