extra-tests: add test-guests to prevent test error
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Fri, 23 Dec 2011 03:46:21 +0000 (11:46 +0800)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 23 Dec 2011 08:32:10 +0000 (08:32 +0000)
extra-tests is depending on tests-guests.
We need guests/*.img when doing extra-tests.

/work/git/libguestfs/run valgrind --log-file=/work/git/libguestfs/tests/extra/valgrind.log --leak-check=full --error-exitcode=119 --suppressions=/work/git/libguestfs/tests/extra/suppressions ../../cat/virt-cat -a ../guests/fedora.img /etc/fstab >/dev/null
../guests/fedora.img: No such file or directory
make[1]: *** [test-tools-internal] Error 1
make[1]: Leaving directory `/work/git/libguestfs/tests/extra'

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
tests/extra/Makefile.am

index 582fa55..d129b6d 100644 (file)
@@ -69,6 +69,7 @@ GUESTS = $(shell virsh -c $(LIBVIRT_DEFAULT_URI) list --all | \
                 awk '{print $$2}')
 
 extra-tests: \
+       test-guests \
        test-prerequisites \
        test-c-api \
        test-tools-null \
@@ -80,6 +81,9 @@ extra-tests: \
        test-resize \
        test-sparsify
 
+test-guests:
+       $(MAKE) -C ../guests check
+
 test-prerequisites:
        @libtool --help >/dev/null 2>&1 || { \
          echo "extra-tests: libtool is not installed"; \