diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-01 21:55:09 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-01 21:55:09 +0100 |
commit | f8a88def14f844e60f20d7887e249e32b57e7243 (patch) | |
tree | e438b5261132859f73bfa6778d63c132f70b8882 | |
parent | 95123a9144edc1ddb3ad67d75276ca3af70eddb8 (diff) | |
download | libguestfs-f8a88def14f844e60f20d7887e249e32b57e7243.tar.gz libguestfs-f8a88def14f844e60f20d7887e249e32b57e7243.tar.xz libguestfs-f8a88def14f844e60f20d7887e249e32b57e7243.zip |
extra-tests: Test virt-sysprep.
-rw-r--r-- | tests/extra/Makefile.am | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/extra/Makefile.am b/tests/extra/Makefile.am index baba4a33..a4f4bb7f 100644 --- a/tests/extra/Makefile.am +++ b/tests/extra/Makefile.am @@ -29,7 +29,6 @@ # XXX Not tested: # # ../edit/virt-edit -# ../sysprep/virt-sysprep # # Perl bindings # ../edit/virt-edit -e @@ -79,6 +78,7 @@ extra-tests: \ test-df-real \ test-filesystems-real \ test-inspector-real \ + test-sysprep-real \ test-ocaml \ test-resize \ test-sparsify @@ -127,6 +127,11 @@ test-tools-internal: $(RUN_VG) ../../inspector/virt-inspector -a ../guests/fedora-md1.img -a ../guests/fedora-md2.img >/dev/null $(RUN_VG) ../../inspector/virt-inspector -a ../guests/ubuntu.img >/dev/null $(RUN_VG) ../../inspector/virt-inspector -a ../guests/windows.img >/dev/null + $(RUN_VG) ../../sysprep/virt-sysprep -n -a ../guests/debian.img + $(RUN_VG) ../../sysprep/virt-sysprep -n -a ../guests/fedora.img + $(RUN_VG) ../../sysprep/virt-sysprep -n -a ../guests/fedora-md1.img -a ../guests/fedora-md2.img + $(RUN_VG) ../../sysprep/virt-sysprep -n -a ../guests/ubuntu.img + $(RUN_VG) ../../sysprep/virt-sysprep -n -a ../guests/windows.img # Invocations of tools on real images shouldn't leak memory. test-df-real: @@ -149,6 +154,14 @@ test-inspector-real: if [ $$r -ne 0 ]; then exit $$r; fi; \ done +test-sysprep-real: + @for g in $(random_guests); do \ + echo $(RUN_VG) ../../sysprep/virt-sysprep -n -d $$g; \ + $(RUN_VG) ../../sysprep/virt-sysprep -n -d $$g > /dev/null; \ + r=$$?; \ + if [ $$r -ne 0 ]; then exit $$r; fi; \ + done + # Run virt-resize tests under valgrind. test-resize: $(MAKE) -C ../../resize VG="$(VG)" check |