diff --git a/tests/integration.rs b/tests/integration.rs index 4f54138f2..80075f8a6 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -1723,7 +1723,10 @@ mod tests { guest.ssh_command(&mount_cmd).unwrap_or_default().trim(), "ok" ); - // Check the cache size is the expected one + + // Check the cache size is the expected one. + // With virtio-mmio the cache doesn't appear in /proc/iomem + #[cfg(not(feature = "mmio"))] aver_eq!( tb, guest @@ -1767,22 +1770,27 @@ mod tests { }); } + #[test] fn test_virtio_fs_dax_on_default_cache_size() { test_virtio_fs(true, None, "none", &prepare_virtiofsd) } + #[test] fn test_virtio_fs_dax_on_cache_size_1_gib() { test_virtio_fs(true, Some(0x4000_0000), "none", &prepare_virtiofsd) } + #[test] fn test_virtio_fs_dax_off() { test_virtio_fs(false, None, "none", &prepare_virtiofsd) } + #[test] fn test_virtio_fs_dax_on_default_cache_size_w_vhost_user_fs_daemon() { test_virtio_fs(true, None, "none", &prepare_vhost_user_fs_daemon) } + #[test] fn test_virtio_fs_dax_on_cache_size_1_gib_w_vhost_user_fs_daemon() { test_virtio_fs( true, @@ -1792,6 +1800,7 @@ mod tests { ) } + #[test] fn test_virtio_fs_dax_off_w_vhost_user_fs_daemon() { test_virtio_fs(false, None, "none", &prepare_vhost_user_fs_daemon) }