extra tests: Split up and reorder tests more logically.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 17:22:56 +0000 (17:22 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 17:22:56 +0000 (17:22 +0000)
extratests/Makefile.am

index 66aefaf..c08d3dd 100644 (file)
@@ -43,13 +43,15 @@ GUESTS = $(shell virsh -c $(LIBVIRT_DEFAULT_URI) list --all | \
                 awk '{print $$2}')
 
 extra-tests: \
                 awk '{print $$2}')
 
 extra-tests: \
+       test-capitests \
        test-tools-null \
        test-tools-internal \
        test-tools-null \
        test-tools-internal \
-       test-tools-real \
+       test-df-real \
+       test-filesystems-real \
+       test-inspector-real \
+       test-ocaml \
        test-resize \
        test-resize \
-       test-sparsify \
-       test-capitests \
-       test-ocaml
+       test-sparsify
 
 # Null invocations of the basic tools shouldn't leak memory.
 test-tools-null:
 
 # 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.
        $(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
        $(RUN_VG) virt-df >/dev/null
        $(RUN_VG) virt-df -h >/dev/null
+
+test-filesystems-real:
        @for g in $(GUESTS); do \
        @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
          r=$$?; \
          if [ $$r -ne 0 ]; then exit $$r; fi; \
        done
+
+test-inspector-real:
        @for g in $(GUESTS); do \
        @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
          r=$$?; \
          if [ $$r -ne 0 ]; then exit $$r; fi; \
        done