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<()>9fn 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