crosvm/ci/kokoro/windows/crosvm_build.bat
Vikram Auradkar 2b43443edc Enable vmm_vhost windows tests
Does couple of things
- move tube under right directory
- cleanup cros_async dependency
- export tube module from base
- enable base windows tests
- add verbose flag to test runner

test: built on window and presubmit
bug: b:213151429
bug: b:213153157
Change-Id: I0d1906d7edcc3352db53325ea7527550eaf00895
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3550296
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
2022-03-29 20:29:54 +00:00

48 lines
1.4 KiB
Batchfile

:: Copyright 2022 The Chromium OS Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.
:: Make environment changes (cd, env vars, etc.) local, so they don't affect the calling batch file
setlocal
:: Code under repo is checked out to %KOKORO_ARTIFACTS_DIR%\git.
:: The final directory name in this path is determined by the scm name specified
:: in the job configuration
cd %KOKORO_ARTIFACTS_DIR%\git\crosvm
:: Pin rustup to a known/tested version.
set rustup_version=1.24.3
:: Install rust toolchain through rustup.
echo [%TIME%] installing rustup %rustup_version%
choco install -y rustup.install --version=%rustup_version%
:: Reload path for installed rustup binary
call RefreshEnv.cmd
:: Toolchain version and necessary components will be automatically picked
:: up from rust-toolchain
cargo install bindgen
:: Install python. The default kokoro intalled version is 3.7 but linux tests
:: seem to run on 3.9+.
choco install -y python
choco install python --version=3.9.0
:: Reload path for installed rust toolchain.
call RefreshEnv.cmd
:: Log the version of the Rust toolchain
echo [%TIME%] Using Rust toolchain version:
cargo --version
rustc --version
:: Log python version
echo [%TIME%] Python version:
py --version
echo [%TIME%] Calling crosvm\build_test.py
py ./tools\impl/test_runner.py --arch x86_64 -v
if %ERRORLEVEL% neq 0 ( exit /b %ERRORLEVEL% )
exit /b %ERRORLEVEL%