crosvm/infra/recipes/build_windows.py
Dennis Kempin d9de9f6457 infra: Use new --platform flag for run_tests
This will greatly speed up aarch64 runs since we can run
many tests with user-space emulation instead of using the slow
VM.

BUG=b:247139912
TEST=
x86: https://ci.chromium.org/swarming/task/5d7583a3a377d710
aarch64: https://ci.chromium.org/swarming/task/5d7584f7c890d010
armhf: https://ci.chromium.org/swarming/task/5d75859f0642a410

Change-Id: I73a476ce27f6d23d5cbf88841fa3eae5dc467b63
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3908369
Commit-Queue: Zihan Chen <zihanchen@google.com>
Auto-Submit: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
2022-09-20 21:40:07 +00:00

50 lines
1.3 KiB
Python

# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine.post_process import Filter
PYTHON_VERSION_COMPATIBILITY = "PY3"
DEPS = [
"crosvm",
"recipe_engine/buildbucket",
"recipe_engine/context",
"recipe_engine/properties",
"recipe_engine/step",
]
def RunSteps(api):
# Note: The recipe does work on linux as well, if the required dependencies have been installed
# on the host via ./tools/install-deps.
# This allows the build to be tested via `./recipe.py run build_windows`
with api.crosvm.host_build_context():
api.step(
"Build crosvm tests",
[
"vpython3",
"./tools/run_tests",
"--verbose",
"--build-only",
],
)
api.step(
"Run crosvm tests",
[
"vpython3",
"./tools/run_tests",
"--verbose",
],
)
def GenTests(api):
filter_steps = Filter("Build crosvm tests", "Run crosvm tests")
yield (
api.test(
"build",
api.buildbucket.ci_build(project="crosvm/crosvm"),
)
+ api.post_process(filter_steps)
)