mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
13 lines
421 B
Rust
13 lines
421 B
Rust
|
// Copyright 2020 The Chromium OS Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
mod fixture;
|
||
|
use crosvm::Config;
|
||
|
use fixture::{TestVm, TestVmOptions};
|
||
|
|
||
|
#[test]
|
||
|
fn boot_test_vm() {
|
||
|
let mut vm = TestVm::new(Config::default(), TestVmOptions::default()).unwrap();
|
||
|
assert_eq!(vm.exec_in_guest("echo 42").unwrap().trim(), "42");
|
||
|
}
|