|
| 1 | +sh_test( |
| 2 | + name = "test", |
| 3 | + srcs = ["test.sh"], |
| 4 | + args = ["$(NODE_PATH)"], |
| 5 | + data = glob( |
| 6 | + ["**"], |
| 7 | + exclude = [ |
| 8 | + "BUILD.bazel", |
| 9 | + "node_modules", |
| 10 | + "dist", |
| 11 | + ], |
| 12 | + ) + [ |
| 13 | + "@npm//:node_modules_files", |
| 14 | + "//modules/builders:npm_package", |
| 15 | + "//modules/common:npm_package_runfiles", |
| 16 | + "//modules/express-engine:npm_package_runfiles", |
| 17 | + "//:node_files", |
| 18 | + ] + select({ |
| 19 | + # We're assuming the target platform & the execution platform as the same here |
| 20 | + "//:linux_x86_64": [ |
| 21 | + "@org_chromium_chromedriver_linux_x64//:metadata", |
| 22 | + "@org_chromium_chromium_linux_x64//:chrome-linux", |
| 23 | + ], |
| 24 | + # There are no Chromimum browsers configured for Linux arm64 yet in dev-infra |
| 25 | + # https://github.com/angular/dev-infra/blob/main/bazel/browsers/chromium/chromium.bzl |
| 26 | + # "//:linux_arm64": [ |
| 27 | + # "@org_chromium_chromedriver_linux_arm64//:metadata", |
| 28 | + # "@org_chromium_chromium_linux_arm64//:chrome-linux", |
| 29 | + # ], |
| 30 | + "//:macos_x86_64": [ |
| 31 | + "@org_chromium_chromedriver_macos_x64//:metadata", |
| 32 | + "@org_chromium_chromium_macos_x64//:chrome-mac", |
| 33 | + ], |
| 34 | + "//:macos_arm64": [ |
| 35 | + "@org_chromium_chromedriver_macos_arm64//:metadata", |
| 36 | + "@org_chromium_chromium_macos_arm64//:chrome-mac", |
| 37 | + ], |
| 38 | + }), |
| 39 | + env = { |
| 40 | + "CHROME_BIN": "$(CHROMIUM)", |
| 41 | + "CHROMEDRIVER_BIN": "$(CHROMEDRIVER)", |
| 42 | + }, |
| 43 | + # e2e test runner creates a tmpdir sandbox itself so no point in double sandboxing |
| 44 | + tags = ["local"], |
| 45 | + toolchains = [ |
| 46 | + "@nodejs_toolchains//:resolved_toolchain", |
| 47 | + "@npm//@angular/build-tooling/bazel/browsers/chromium:toolchain_alias", |
| 48 | + ], |
| 49 | +) |
0 commit comments