| ... | ... | @@ -19,4 +19,16 @@ pub fn build(b: *std.Build) void { |
| 19 | 19 | .install_dir = .header, |
| 20 | 20 | .install_subdir = "unicode", |
| 21 | 21 | }); |
| 22 | |
| 23 | const tests = b.addTest(.{ |
| 24 | .root_source_file = b.path("test.zig"), |
| 25 | .target = target, |
| 26 | .optimize = mode, |
| 27 | }); |
| 28 | deps.addAllTo(tests); |
| 29 | |
| 30 | const test_step = b.step("test", "Run all library tests"); |
| 31 | const tests_run = b.addRunArtifact(tests); |
| 32 | tests_run.has_side_effects = true; |
| 33 | test_step.dependOn(&tests_run.step); |
| 22 | 34 | } |