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 5use fixture::vm::Config; 6use fixture::vm::TestVm; 7 8#[test] 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 15