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(.{
|
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
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user