mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
tests: Drop classic (i.e. C based) virtiofsd testing
This has been deprecated upstream in favour of the Rust version. Fixes: #3729 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
6daddf0831
commit
4c4eb8db40
@ -72,27 +72,6 @@ const DIRECT_KERNEL_BOOT_CMDLINE: &str =
|
|||||||
|
|
||||||
const CONSOLE_TEST_STRING: &str = "Started OpenBSD Secure Shell server";
|
const CONSOLE_TEST_STRING: &str = "Started OpenBSD Secure Shell server";
|
||||||
|
|
||||||
fn prepare_virtiofsd(
|
|
||||||
tmp_dir: &TempDir,
|
|
||||||
shared_dir: &str,
|
|
||||||
cache: &str,
|
|
||||||
) -> (std::process::Child, String) {
|
|
||||||
let virtiofsd_socket_path =
|
|
||||||
String::from(tmp_dir.as_path().join("virtiofs.sock").to_str().unwrap());
|
|
||||||
|
|
||||||
// Start the daemon
|
|
||||||
let child = Command::new("virtiofsd")
|
|
||||||
.args(&[format!("--socket-path={}", virtiofsd_socket_path).as_str()])
|
|
||||||
.args(&["-o", format!("source={}", shared_dir).as_str()])
|
|
||||||
.args(&["-o", format!("cache={}", cache).as_str()])
|
|
||||||
.spawn()
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
thread::sleep(std::time::Duration::new(10, 0));
|
|
||||||
|
|
||||||
(child, virtiofsd_socket_path)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn prepare_virtiofsd_rs_daemon(
|
fn prepare_virtiofsd_rs_daemon(
|
||||||
tmp_dir: &TempDir,
|
tmp_dir: &TempDir,
|
||||||
shared_dir: &str,
|
shared_dir: &str,
|
||||||
@ -2775,7 +2754,14 @@ mod parallel {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
#[cfg(not(feature = "mshv"))]
|
||||||
fn test_virtio_fs_dax_on_default_cache_size() {
|
fn test_virtio_fs_dax_on_default_cache_size() {
|
||||||
test_virtio_fs(true, None, "none", &prepare_virtiofsd, false, None)
|
test_virtio_fs(
|
||||||
|
true,
|
||||||
|
None,
|
||||||
|
"never",
|
||||||
|
&prepare_virtiofsd_rs_daemon,
|
||||||
|
false,
|
||||||
|
None,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -2784,8 +2770,8 @@ mod parallel {
|
|||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
true,
|
true,
|
||||||
Some(0x4000_0000),
|
Some(0x4000_0000),
|
||||||
"none",
|
"never",
|
||||||
&prepare_virtiofsd,
|
&prepare_virtiofsd_rs_daemon,
|
||||||
false,
|
false,
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
@ -2793,37 +2779,6 @@ mod parallel {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_virtio_fs_dax_off() {
|
fn test_virtio_fs_dax_off() {
|
||||||
test_virtio_fs(false, None, "none", &prepare_virtiofsd, false, None)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_fs_dax_on_default_cache_size_w_virtiofsd_rs_daemon() {
|
|
||||||
test_virtio_fs(
|
|
||||||
true,
|
|
||||||
None,
|
|
||||||
"never",
|
|
||||||
&prepare_virtiofsd_rs_daemon,
|
|
||||||
false,
|
|
||||||
None,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_fs_dax_on_cache_size_1_gib_w_virtiofsd_rs_daemon() {
|
|
||||||
test_virtio_fs(
|
|
||||||
true,
|
|
||||||
Some(0x4000_0000),
|
|
||||||
"never",
|
|
||||||
&prepare_virtiofsd_rs_daemon,
|
|
||||||
false,
|
|
||||||
None,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_virtio_fs_dax_off_w_virtiofsd_rs_daemon() {
|
|
||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
false,
|
false,
|
||||||
None,
|
None,
|
||||||
@ -2837,17 +2792,6 @@ mod parallel {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
#[cfg(not(feature = "mshv"))]
|
||||||
fn test_virtio_fs_hotplug_dax_on() {
|
fn test_virtio_fs_hotplug_dax_on() {
|
||||||
test_virtio_fs(true, None, "none", &prepare_virtiofsd, true, None)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_virtio_fs_hotplug_dax_off() {
|
|
||||||
test_virtio_fs(false, None, "none", &prepare_virtiofsd, true, None)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_fs_hotplug_dax_on_w_virtiofsd_rs_daemon() {
|
|
||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
true,
|
true,
|
||||||
None,
|
None,
|
||||||
@ -2859,7 +2803,7 @@ mod parallel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_virtio_fs_hotplug_dax_off_w_virtiofsd_rs_daemon() {
|
fn test_virtio_fs_hotplug_dax_off() {
|
||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
false,
|
false,
|
||||||
None,
|
None,
|
||||||
@ -2876,8 +2820,8 @@ mod parallel {
|
|||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
true,
|
true,
|
||||||
Some(0x4000_0000),
|
Some(0x4000_0000),
|
||||||
"none",
|
"never",
|
||||||
&prepare_virtiofsd,
|
&prepare_virtiofsd_rs_daemon,
|
||||||
true,
|
true,
|
||||||
Some(15),
|
Some(15),
|
||||||
)
|
)
|
||||||
@ -2889,8 +2833,8 @@ mod parallel {
|
|||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
true,
|
true,
|
||||||
Some(0x4000_0000),
|
Some(0x4000_0000),
|
||||||
"none",
|
"never",
|
||||||
&prepare_virtiofsd,
|
&prepare_virtiofsd_rs_daemon,
|
||||||
false,
|
false,
|
||||||
Some(15),
|
Some(15),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user