mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-25 20:45:00 +00:00
f741098251
This change includes relevant toolchain versions and some echos announcing the stages of testing. This should make kokoro's logs a bit easier to diagnose. TEST=kokoro_simulator.sh BUG=None Change-Id: I6d51d8ae6618a244338605d61882eeedcb1f5b79 Reviewed-on: https://chromium-review.googlesource.com/1324689 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
32 lines
768 B
Bash
Executable file
32 lines
768 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2018 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.
|
|
|
|
set -ex
|
|
|
|
main() {
|
|
if [ -z "${KOKORO_ARTIFACTS_DIR}" ]; then
|
|
echo "This script must be run in kokoro"
|
|
exit 1
|
|
fi
|
|
|
|
local src_root="${KOKORO_ARTIFACTS_DIR}"/git/crosvm
|
|
local base_image_tarball="${KOKORO_GFILE_DIR}"/crosvm-base.tar.xz
|
|
local base_image="crosvm-base"
|
|
|
|
if [[ "$(docker images -q ${base_image} 2> /dev/null)" == "" ]]; then
|
|
docker load -i "${base_image_tarball}"
|
|
fi
|
|
docker run \
|
|
--rm \
|
|
--privileged \
|
|
-e TEST_RUNNER_FLAGS='--format terse' \
|
|
-v /dev/log:/dev/log \
|
|
-v "${src_root}":/src:ro \
|
|
${base_image}
|
|
|
|
return 0
|
|
}
|
|
|
|
main "$@"
|