mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-29 03:00:19 +00:00
b96ba4c8be
We switch from the chromeos-5.10 kernel with crostini configs to a stripped down config building the mainline 6.1 branch. This allows us more control over the guest kernel for testing and significantly speeds up e2e tests (~4s -> 1.2s for all tests run with nextest). The rootfs is switched to Debian as that's what we use elsewhere which makes this easier to maintain. BUG=b:256652981 TEST=presubmit Change-Id: Ib3897b8dbf3391eefdb1eedb69ec7555f4c77344 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4326888 Reviewed-by: Zihan Chen <zihanchen@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
16 lines
488 B
Bash
Executable file
16 lines
488 B
Bash
Executable file
# 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.
|
|
|
|
# Example invocation to run the locally built guest for debugging
|
|
|
|
CARGO_TARGET=$(cargo metadata --no-deps --format-version 1 |
|
|
jq -r ".target_directory")
|
|
GUEST_DIR="${CARGO_TARGET}/guest_under_test/x86_64"
|
|
|
|
cargo run -p crosvm -- \
|
|
run \
|
|
-p "init=/bin/sh" \
|
|
--root "${GUEST_DIR}/rootfs"\
|
|
"${GUEST_DIR}/bzImage" \
|
|
$@
|