diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-11-29 17:22:56 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-29 17:22:56 +0000 |
commit | cee513112adcf4084d6be9e3b5037b7b54c9f514 (patch) | |
tree | 2dc49b968778a03f87af28e775cb12c92fbf79a1 | |
parent | 14b1e7b963cd5446ab76a067085b91925dd5d3e3 (diff) | |
download | libguestfs-cee513112adcf4084d6be9e3b5037b7b54c9f514.tar.gz libguestfs-cee513112adcf4084d6be9e3b5037b7b54c9f514.tar.xz libguestfs-cee513112adcf4084d6be9e3b5037b7b54c9f514.zip |
extra tests: Split up and reorder tests more logically.
-rw-r--r-- | extratests/Makefile.am | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/extratests/Makefile.am b/extratests/Makefile.am index 66aefaf6..c08d3dd4 100644 --- a/extratests/Makefile.am +++ b/extratests/Makefile.am @@ -43,13 +43,15 @@ GUESTS = $(shell virsh -c $(LIBVIRT_DEFAULT_URI) list --all | \ awk '{print $$2}') extra-tests: \ + test-capitests \ test-tools-null \ test-tools-internal \ - test-tools-real \ + test-df-real \ + test-filesystems-real \ + test-inspector-real \ + test-ocaml \ test-resize \ - test-sparsify \ - test-capitests \ - test-ocaml + test-sparsify # Null invocations of the basic tools shouldn't leak memory. test-tools-null: @@ -83,18 +85,22 @@ test-tools-internal: $(RUN_VG) ../inspector/virt-inspector -a ../images/windows.img >/dev/null # Invocations of tools on real images shouldn't leak memory. -test-tools-real: +test-df-real: $(RUN_VG) virt-df >/dev/null $(RUN_VG) virt-df -h >/dev/null + +test-filesystems-real: @for g in $(GUESTS); do \ - echo $(RUN_VG) ../inspector/virt-inspector -d $$g; \ - $(RUN_VG) ../inspector/virt-inspector -d $$g > /dev/null; \ + echo $(RUN_VG) ../cat/virt-filesystems -d $$g --all --long -h --uuid; \ + $(RUN_VG) ../cat/virt-filesystems -d $$g --all --long -h --uuid > /dev/null; \ r=$$?; \ if [ $$r -ne 0 ]; then exit $$r; fi; \ done + +test-inspector-real: @for g in $(GUESTS); do \ - echo $(RUN_VG) ../cat/virt-filesystems -d $$g --all --long -h --uuid; \ - $(RUN_VG) ../cat/virt-filesystems -d $$g --all --long -h --uuid > /dev/null; \ + echo $(RUN_VG) ../inspector/virt-inspector -d $$g; \ + $(RUN_VG) ../inspector/virt-inspector -d $$g > /dev/null; \ r=$$?; \ if [ $$r -ne 0 ]; then exit $$r; fi; \ done |