mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
main: Add a PCI bridge class integration test
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
2b2c31d206
commit
bc742d6a5f
@ -286,6 +286,12 @@ mod tests {
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
fn get_pci_bridge_class() -> String {
|
||||
ssh_command("cat /sys/bus/pci/devices/0000:00:00.0/class")
|
||||
.trim()
|
||||
.to_string()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_simple_launch() {
|
||||
test_block!(tb, "", {
|
||||
@ -308,6 +314,7 @@ mod tests {
|
||||
aver_eq!(tb, get_initial_apicid(), 0);
|
||||
aver!(tb, get_total_memory() > 496_000);
|
||||
aver!(tb, get_entropy() >= 1000);
|
||||
aver_eq!(tb, get_pci_bridge_class(), "0x060000");
|
||||
|
||||
ssh_command("sudo reboot");
|
||||
thread::sleep(std::time::Duration::new(10, 0));
|
||||
|
Loading…
Reference in New Issue
Block a user