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:
Philipp Schuster
2025-11-18 07:24:05 +01:00
committed by Bo Chen
parent c990f1bdaa
commit d1680b9ff9
53 changed files with 59 additions and 59 deletions

View File

@@ -192,7 +192,7 @@ pub fn get_host_cpu_phys_bits(hypervisor: &dyn hypervisor::Hypervisor) -> u8 {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
#[test]

View File

@@ -218,7 +218,7 @@ pub fn get_host_cpu_phys_bits(_hypervisor: &dyn hypervisor::Hypervisor) -> u8 {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
#[test]

View File

@@ -1428,7 +1428,7 @@ fn update_cpuid_topology(
}
}
#[cfg(test)]
mod tests {
mod unit_tests {
use linux_loader::loader::bootparam::boot_e820_entry;
use super::*;

View File

@@ -297,7 +297,7 @@ pub fn setup_mptable(
}
#[cfg(test)]
mod tests {
mod unit_tests {
use vm_memory::bitmap::BitmapSlice;
use vm_memory::{GuestUsize, VolatileMemoryError, VolatileSlice, WriteVolatile};

View File

@@ -196,7 +196,7 @@ pub fn configure_segments_and_sregs(
}
#[cfg(test)]
mod tests {
mod unit_tests {
use vm_memory::GuestAddress;
use super::*;

View File

@@ -272,7 +272,7 @@ pub fn setup_smbios(
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
#[test]

View File

@@ -519,7 +519,7 @@ impl TdHob {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
#[test]