summaryrefslogtreecommitdiffstats
path: root/resize/test-virt-resize.sh
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-29 17:14:18 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-29 17:14:18 +0000
commit7708d3e04f6ec3985fd74ee1a44a5615d43065e2 (patch)
treeace7e77726522eda17e24c2f03ef5c14972cb2f5 /resize/test-virt-resize.sh
parent082a55f76cd61f3590976f6b095552ea65259ced (diff)
downloadlibguestfs-7708d3e04f6ec3985fd74ee1a44a5615d43065e2.tar.gz
libguestfs-7708d3e04f6ec3985fd74ee1a44a5615d43065e2.tar.xz
libguestfs-7708d3e04f6ec3985fd74ee1a44a5615d43065e2.zip
extra tests: Test virt-resize.
This adds the virt-resize --debug-gc option which causes virt-resize to call Gc.compact before exiting, allowing GC and memory problems to be tested. Add an extratest which runs virt-resize under valgrind.
Diffstat (limited to 'resize/test-virt-resize.sh')
-rwxr-xr-xresize/test-virt-resize.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/resize/test-virt-resize.sh b/resize/test-virt-resize.sh
index 2b76e0b8..09e5f617 100755
--- a/resize/test-virt-resize.sh
+++ b/resize/test-virt-resize.sh
@@ -27,7 +27,7 @@ set -e
../fish/guestfish -N bootrootlv:/dev/VG/LV:ext2:ext4:400M:32M:gpt </dev/null
qemu-img create -f qcow2 test2.img 500M
-./virt-resize -d --expand /dev/sda2 --lv-expand /dev/VG/LV test1.img test2.img
+$VG ./virt-resize -d --debug-gc --expand /dev/sda2 --lv-expand /dev/VG/LV test1.img test2.img
# Test shrinking in a semi-realistic scenario. Although the disk
# image created above contains no data, we will nevertheless use
@@ -42,6 +42,6 @@ fsck ext4 /dev/VG/LV
EOF
rm -f test2.img; truncate -s 300M test2.img
-./virt-resize -d --shrink /dev/sda2 test1.img test2.img
+$VG ./virt-resize -d --debug-gc --shrink /dev/sda2 test1.img test2.img
rm -f test1.img test2.img