Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/e2e_tests/benches/boot.rs
5392 views
1
// Copyright 2023 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
use fixture::vm::Config;
6
use fixture::vm::TestVm;
7
8
#[test]
9
fn boot_test_vm() -> anyhow::Result<()> {
10
let mut vm = TestVm::new(Config::from_env()).unwrap();
11
assert_eq!(vm.exec_in_guest("echo 42")?.stdout.trim(), "42");
12
Ok(())
13
}
14
15