wpt: rename file into main and create make wpt

This commit is contained in:
Pierre Tachoire
2023-10-10 17:07:44 +02:00
parent 8321aa42c7
commit 22b9b1841c
3 changed files with 6 additions and 1 deletions

View File

@@ -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"

View File

@@ -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,
});