make: add end2end target

This commit is contained in:
Pierre Tachoire
2025-04-17 17:41:29 +02:00
parent 1c08b3e5e4
commit b62faef520
2 changed files with 21 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ help:
# $(ZIG) commands
# ------------
.PHONY: build build-dev run run-release shell test bench download-zig wpt data get-v8 build-v8 build-v8-dev
.PHONY: end2end
zig_version = $(shell grep 'recommended_zig_version = "' "vendor/zig-js-runtime/build.zig" | cut -d'"' -f2)
@@ -94,6 +95,11 @@ wpt-summary:
test:
@TEST_FILTER='${F}' $(ZIG) build test -freference-trace --summary all
## Run demo/runner end to end tests
end2end:
@test -d ../demo
cd ../demo && go run runner/main.go
## v8
get-v8:
@printf "\e[36mGetting v8 source...\e[0m\n"