Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/e2e_tests/guest_under_test/run_guest.sh
5394 views
1
#!/bin/bash
2
# Copyright 2022 The ChromiumOS Authors
3
# Use of this source code is governed by a BSD-style license that can be
4
# found in the LICENSE file.
5
6
# Example invocation to run the locally built guest for debugging
7
8
CARGO_TARGET=$(cargo metadata --no-deps --format-version 1 |
9
jq -r ".target_directory")
10
GUEST_DIR="${CARGO_TARGET}/guest_under_test/x86_64"
11
12
cargo run -p crosvm -- \
13
run \
14
-p "init=/bin/sh" \
15
--root "${GUEST_DIR}/rootfs"\
16
"${GUEST_DIR}/bzImage" \
17
"$@"
18
19