diff --git a/Makefile b/Makefile index 1eab9cc0..2bdb239d 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,11 @@ shell: @printf "\e[36mBuilding shell...\e[0m\n" @$(ZIG) build shell -Dengine=v8 || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;) +## Run WPT tests +wpt: + @printf "\e[36mBuilding wpt...\e[0m\n" + @$(ZIG) build wpt -Dengine=v8 || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;) + ## Test test: @printf "\e[36mTesting...\e[0m\n" diff --git a/build.zig b/build.zig index 0a50bfff..e2aa6bc4 100644 --- a/build.zig +++ b/build.zig @@ -79,7 +79,7 @@ pub fn build(b: *std.build.Builder) !void { // compile and install const wpt = b.addExecutable(.{ .name = "browsercore-wpt", - .root_source_file = .{ .path = "src/run_wpt.zig" }, + .root_source_file = .{ .path = "src/main_wpt.zig" }, .target = target, .optimize = mode, }); diff --git a/src/run_wpt.zig b/src/main_wpt.zig similarity index 100% rename from src/run_wpt.zig rename to src/main_wpt.zig