Commit d3ccfd34 authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

[fuchsia] Add host chromedriver build and CIPD package.

* Add the host chromedriver binary as part of the Fuchsia build.
* Add a CIPD package to upload a stripped chromedriver binary.

Bug: IN-1321 (Fuchsia internal)
Change-Id: Ia414914304ede7a54ff097365bb72cba6674e5ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719377
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Reviewed-by: default avatarWez <wez@chromium.org>
Auto-Submit: Fabrice de Gans-Riberi <fdegans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682114}
parent c6ee0e8a
......@@ -545,6 +545,10 @@ group("gn_all") {
}
}
if (is_fuchsia) {
deps += [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
}
if (is_android || (is_linux && !is_chromeos)) {
deps += [
"//components/network_hints/browser",
......
......@@ -145,6 +145,49 @@ cipd_archive("http") {
]
}
_stripped_chromedriver_file = "${root_out_dir}/clang_x64/stripped/chromedriver"
action("strip_chromedriver_binary") {
testonly = true
prog_name = "${root_out_dir}/clang_x64/chromedriver"
deps = [
"//chrome/test/chromedriver:chromedriver($host_toolchain)",
]
script = "//build/gn_run_binary.py"
sources = [
"//buildtools/third_party/eu-strip/bin/eu-strip",
prog_name,
]
outputs = [
_stripped_chromedriver_file,
]
args = [
rebase_path("//buildtools/third_party/eu-strip/bin/eu-strip",
root_build_dir),
"-o",
rebase_path(_stripped_chromedriver_file, root_build_dir),
rebase_path(prog_name, root_build_dir),
]
visibility = [ ":*" ]
}
cipd_archive("chromedriver") {
cipd_manifest_name = "chromedriver.yaml"
cipd_path = "chromium/fuchsia/chromedriver-\${os}-\${arch}"
cipd_description = "Prebuilt Chromedriver binary for Fuchsia host."
deps = [
":strip_chromedriver_binary",
]
sources = [
_stripped_chromedriver_file,
]
}
cipd_archive("tests") {
_manifest_path = "${target_gen_dir}/test_manifest.json"
cipd_manifest_name = "tests.yaml"
......@@ -234,6 +277,7 @@ group("cipd") {
testonly = true
deps = [
":castrunner",
":chromedriver",
":clear_key_cdm",
":debug_symbols",
":http",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment