mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
tests: Add integration test to force io_uring off for block
Fixes: #1561 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
c622278030
commit
f913dd6150
@ -2853,8 +2853,7 @@ mod tests {
|
|||||||
handle_child_output(r, &output);
|
handle_child_output(r, &output);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
fn _test_virtio_block(disable_io_uring: bool) {
|
||||||
fn test_virtio_blk() {
|
|
||||||
let mut focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
let mut focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||||
let guest = Guest::new(&mut focal);
|
let guest = Guest::new(&mut focal);
|
||||||
|
|
||||||
@ -2884,8 +2883,9 @@ mod tests {
|
|||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
format!(
|
format!(
|
||||||
"path={},readonly=on,direct=on,num_queues=4",
|
"path={},readonly=on,direct=on,num_queues=4,_disable_io_uring={}",
|
||||||
blk_file_path.to_str().unwrap()
|
blk_file_path.to_str().unwrap(),
|
||||||
|
disable_io_uring
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
])
|
])
|
||||||
@ -2937,6 +2937,16 @@ mod tests {
|
|||||||
handle_child_output(r, &output);
|
handle_child_output(r, &output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_virtio_block() {
|
||||||
|
_test_virtio_block(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_virtio_block_disable_io_uring() {
|
||||||
|
_test_virtio_block(false)
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_vhost_user_net_default() {
|
fn test_vhost_user_net_default() {
|
||||||
test_vhost_user_net(None, 2, Some(&prepare_vhost_user_net_daemon), false)
|
test_vhost_user_net(None, 2, Some(&prepare_vhost_user_net_daemon), false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user