1# Copyright 2022 The ChromiumOS Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# Example invocation to run the locally built guest for debugging 6 7CARGO_TARGET=$(cargo metadata --no-deps --format-version 1 | 8 jq -r ".target_directory") 9GUEST_DIR="${CARGO_TARGET}/guest_under_test/x86_64" 10 11cargo run -p crosvm -- \ 12 run \ 13 -p "init=/bin/sh" \ 14 --root "${GUEST_DIR}/rootfs"\ 15 "${GUEST_DIR}/bzImage" \ 16 $@ 17