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]