wpt: first draft for tests

This commit is contained in:
Pierre Tachoire
2023-10-02 21:18:29 +02:00
parent b782a591f9
commit d171b0ff01
7 changed files with 5531 additions and 0 deletions

View File

@@ -72,6 +72,19 @@ pub fn build(b: *std.build.Builder) !void {
// step
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_tests.step);
// wpt tests
// -----
// compile
const wpt = b.addTest(.{ .root_source_file = .{ .path = "src/run_wpt.zig" } });
try common(wpt, options);
wpt.single_threaded = true;
const run_wpt = b.addRunArtifact(wpt);
// step
const wpt_step = b.step("wpt", "Run Web Platform Tests");
wpt_step.dependOn(&run_wpt.step);
}
fn common(