xref: /aosp_15_r20/external/crosvm/e2e_tests/benches/boot.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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]
boot_test_vm() -> anyhow::Result<()>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