mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: streamline module names to unit_tests
This better aligns with the rest of the code and makes it clearer that these tests can run "as is" in a normal hosted environments without the special test environment. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Bo Chen
parent
c990f1bdaa
commit
d1680b9ff9
@@ -3170,7 +3170,7 @@ impl Drop for VmConfig {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use std::fs::File;
|
||||
use std::os::unix::io::AsRawFd;
|
||||
|
||||
|
||||
@@ -2992,7 +2992,7 @@ impl CpuElf64Writable for CpuManager {
|
||||
|
||||
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use arch::layout::{BOOT_STACK_POINTER, ZERO_PAGE_START};
|
||||
use arch::x86_64::interrupts::*;
|
||||
use arch::x86_64::regs::*;
|
||||
@@ -3140,7 +3140,7 @@ mod tests {
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
#[cfg(feature = "kvm")]
|
||||
use std::{mem, mem::offset_of};
|
||||
|
||||
|
||||
@@ -5496,7 +5496,7 @@ impl Drop for DeviceManager {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -152,7 +152,7 @@ impl DoubleEndedIterator for BftIter<'_> {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use super::{DeviceNode, DeviceTree};
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -3167,7 +3167,7 @@ impl GuestDebuggable for Vm {
|
||||
|
||||
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use super::*;
|
||||
|
||||
fn test_vm_state_transitions(state: VmState) {
|
||||
@@ -3443,7 +3443,7 @@ mod tests {
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use arch::aarch64::fdt::create_fdt;
|
||||
use arch::aarch64::layout;
|
||||
use arch::{DeviceType, MmioDeviceInfo};
|
||||
|
||||
Reference in New Issue
Block a user