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
@@ -189,7 +189,7 @@ pub fn virtio_features_to_tap_offload(features: u64) -> c_uint {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -139,7 +139,7 @@ impl FromStr for MacAddr {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -550,7 +550,7 @@ impl AsRawFd for Tap {
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(devcli_testenv)] // we need special permissions in the ENV to create Tap devices
|
||||
mod tests {
|
||||
mod unit_tests {
|
||||
use std::net::Ipv4Addr;
|
||||
use std::sync::{LazyLock, Mutex, mpsc};
|
||||
use std::time::Duration;
|
||||
|
||||
Reference in New Issue
Block a user