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

@@ -208,7 +208,7 @@ impl<T: CpuStateManager> InstructionHandler<T> for Cmp_rm64_imm8 {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::arch::x86::emulator::mock_vmm::*;

View File

@@ -268,7 +268,7 @@ impl<T: CpuStateManager> InstructionHandler<T> for Mov_RAX_moffs64 {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::arch::x86::emulator::mock_vmm::*;

View File

@@ -104,7 +104,7 @@ impl<T: CpuStateManager> InstructionHandler<T> for Movsb_m8_m8 {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::arch::x86::emulator::mock_vmm::*;

View File

@@ -49,7 +49,7 @@ impl<T: CpuStateManager> InstructionHandler<T> for Or_rm8_r8 {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::arch::x86::emulator::mock_vmm::*;

View File

@@ -90,7 +90,7 @@ impl<T: CpuStateManager> InstructionHandler<T> for Stosb_m8_AL {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::arch::x86::emulator::mock_vmm::*;

View File

@@ -786,7 +786,7 @@ mod mock_vmm {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
use crate::arch::x86::emulator::mock_vmm::*;

View File

@@ -114,7 +114,7 @@ pub fn segment_from_gdt(entry: u64, table_index: u8) -> SegmentRegister {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use super::*;
#[test]

View File

@@ -481,7 +481,7 @@ impl Vgic for KvmGicV3Its {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use crate::HypervisorVmConfig;
use crate::aarch64::gic::{
get_dist_regs, get_icc_regs, get_redist_regs, set_dist_regs, set_icc_regs, set_redist_regs,

View File

@@ -2937,7 +2937,7 @@ impl KvmVcpu {
}
#[cfg(test)]
mod tests {
mod unit_tests {
#[test]
#[cfg(target_arch = "riscv64")]
fn test_get_and_set_regs() {

View File

@@ -250,7 +250,7 @@ impl Vaia for KvmAiaImsics {
}
#[cfg(test)]
mod tests {
mod unit_tests {
use crate::HypervisorVmConfig;
use crate::arch::riscv64::aia::VaiaConfig;
use crate::kvm::KvmAiaImsics;