mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
build: run test suite
This commit is contained in:
@@ -64,12 +64,14 @@ pub fn build(b: *std.build.Builder) !void {
|
||||
// ----
|
||||
|
||||
// compile
|
||||
const exe_tests = b.addTest(.{ .root_source_file = .{ .path = "src/run_tests.zig" } });
|
||||
try common(exe_tests, options);
|
||||
const tests = b.addTest(.{ .root_source_file = .{ .path = "src/run_tests.zig" } });
|
||||
try common(tests, options);
|
||||
tests.single_threaded = true;
|
||||
const run_tests = b.addRunArtifact(tests);
|
||||
|
||||
// step
|
||||
const test_step = b.step("test", "Run unit tests");
|
||||
test_step.dependOn(&exe_tests.step);
|
||||
test_step.dependOn(&run_tests.step);
|
||||
}
|
||||
|
||||
fn common(
|
||||
|
||||
Reference in New Issue
Block a user