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

@@ -798,7 +798,7 @@ impl BusDevice for FwCfg {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use std::ffi::CString;
use std::io::Write;

View File

@@ -323,7 +323,7 @@ impl Transportable for Gpio {}
impl Migratable for Gpio {}
#[cfg(test)]
mod tests {
mod unit_tests {
use vm_device::interrupt::{InterruptIndex, InterruptSourceConfig};
use vmm_sys_util::eventfd::EventFd;

View File

@@ -216,7 +216,7 @@ impl BusDevice for Rtc {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::{
read_be_u16, read_be_u32, read_le_i32, read_le_u16, read_le_u64, write_be_u16,

View File

@@ -340,7 +340,7 @@ impl Transportable for Serial {}
impl Migratable for Serial {}
#[cfg(test)]
mod tests {
mod unit_tests {
use std::sync::Mutex;
use vm_device::interrupt::{InterruptIndex, InterruptSourceConfig};

View File

@@ -453,7 +453,7 @@ impl Transportable for Pl011 {}
impl Migratable for Pl011 {}
#[cfg(test)]
mod tests {
mod unit_tests {
use std::sync::Mutex;
use vm_device::interrupt::{InterruptIndex, InterruptSourceConfig};

View File

@@ -531,7 +531,7 @@ impl BusDevice for Tpm {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
#[test]