mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
This search/replace updates all copyright notices to drop the "All rights reserved", Use "ChromiumOS" instead of "Chromium OS" and drops the trailing dots. This fulfills the request from legal and unifies our notices. ./tools/health-check has been updated to only accept this style. BUG=b:246579983 TEST=./tools/health-check Change-Id: I87a80701dc651f1baf4820e5cc42469d7c5f5bf7 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3894243 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com>
31 lines
1.1 KiB
Rust
31 lines
1.1 KiB
Rust
// Copyright 2022 The ChromiumOS Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
pub mod fixture;
|
|
use fixture::Config;
|
|
use fixture::TestVm;
|
|
|
|
// Tests for possible backwards compatibility issues.
|
|
//
|
|
// There is no backwards compatibility policy yet, these are just "change detector" tests. If you
|
|
// break a test, make sure the change is intended and then ask in go/crosvm-chat to see if anyone
|
|
// objects to updating the golden file.
|
|
|
|
// Many changes to PCI devices can cause issues, e.g. some users depend on crosvm always choosing
|
|
// the same PCI slots for particular devices.
|
|
#[test]
|
|
fn backcompat_test_simple_lspci() {
|
|
let mut vm = TestVm::new(Config::new()).unwrap();
|
|
let expected = include_str!("goldens/backcompat_test_simple_lspci.txt").trim();
|
|
let result = vm
|
|
.exec_in_guest("lspci -n")
|
|
.unwrap()
|
|
.trim()
|
|
.replace("\r", "");
|
|
assert_eq!(
|
|
expected,
|
|
result,
|
|
"PCI Devices changed:\n<<< Expected <<<\n{}\n<<<<<<<<<<<<<<<<\n>>> Got >>>\n{}\n>>>>>>>>>>>>>>>>\n",
|
|
expected, result
|
|
);
|
|
}
|