mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
tests/qemu: Make the isolation tests more read and write heavy.
Do more reading of the backing file data, and more writes to the overlay.
This commit is contained in:
@@ -36,10 +36,14 @@ add-drive-opts $f format:raw readonly:true
|
||||
|
||||
run
|
||||
|
||||
# Read some of the backing file to ensure reads don't modify it.
|
||||
download-offset /dev/sda - 10M 10M | cat >/dev/null
|
||||
|
||||
part-disk /dev/sda mbr
|
||||
mkfs ext2 /dev/sda1
|
||||
mount /dev/sda1 /
|
||||
write /test This_is_a_test
|
||||
fill-pattern abc 5M /test2
|
||||
|
||||
# Really try hard to force writes to the disk.
|
||||
umount-all
|
||||
|
||||
@@ -36,10 +36,14 @@ add-drive-ro $f
|
||||
|
||||
run
|
||||
|
||||
# Read some of the backing file to ensure reads don't modify it.
|
||||
download-offset /dev/sda - 10M 10M | cat >/dev/null
|
||||
|
||||
part-disk /dev/sda mbr
|
||||
mkfs ext2 /dev/sda1
|
||||
mount /dev/sda1 /
|
||||
write /test This_is_a_test
|
||||
fill-pattern abc 5M /test2
|
||||
|
||||
# Really try hard to force writes to the disk.
|
||||
umount-all
|
||||
|
||||
@@ -38,10 +38,14 @@ add-drive-opts $f format:qcow2 readonly:true
|
||||
|
||||
run
|
||||
|
||||
# Read some of the backing file to ensure reads don't modify it.
|
||||
download-offset /dev/sda - 10M 10M | cat >/dev/null
|
||||
|
||||
part-disk /dev/sda mbr
|
||||
mkfs ext2 /dev/sda1
|
||||
mount /dev/sda1 /
|
||||
write /test This_is_a_test
|
||||
fill-pattern abc 5M /test2
|
||||
|
||||
# Really try hard to force writes to the disk.
|
||||
umount-all
|
||||
|
||||
Reference in New Issue
Block a user