| author | |
| committer | |
| log | 6de79b4ff8f7462e26f224f4bed3c81710c8893b |
| tree | c57953332753f5d1740fcd99fd3eb2a3907b5cb8 |
| parent | 1e407e101f8f9ed8701d3d82119f8bbef72c176f |
| signature |
2 files changed, 6 insertions(+), 2 deletions(-)
build.zig+1-1| ... | @@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void { | ... | @@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void { |
| 14 | }), | 14 | }), |
| 15 | }); | 15 | }); |
| 16 | deps.addAllTo(tests); | 16 | deps.addAllTo(tests); |
| 17 | tests.linkLibC(); | 17 | tests.root_module.link_libc = true; |
| 18 | tests.use_llvm = !disable_llvm; | 18 | tests.use_llvm = !disable_llvm; |
| 19 | tests.use_lld = !disable_llvm; | 19 | tests.use_lld = !disable_llvm; |
| 20 | b.getInstallStep().dependOn(&tests.step); | 20 | b.getInstallStep().dependOn(&tests.step); |
test.zig+5-1| ... | @@ -3,7 +3,11 @@ const detect = @import("detect-license"); | ... | @@ -3,7 +3,11 @@ const detect = @import("detect-license"); |
| 3 | const expect = @import("expect").expect; | 3 | const expect = @import("expect").expect; |
| 4 | 4 | ||
| 5 | test { | 5 | test { |
| 6 | std.testing.refAllDeclsRecursive(detect); | 6 | _ = &detect.detect; |
| 7 | _ = &detect.detectInDir; | ||
| 8 | _ = &detect.testLicenseFile; | ||
| 9 | _ = &detect.licenses.find; | ||
| 10 | _ = &detect.licenses.spdx; | ||
| 7 | } | 11 | } |
| 8 | test { | 12 | test { |
| 9 | const alloc = std.testing.allocator; | 13 | const alloc = std.testing.allocator; |