]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Build virstoragetest only when storage driver is compiled too
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 09:47:31 +0000 (11:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 12:24:15 +0000 (14:24 +0200)
virstoragetest now requires parts of the storage driver to be built.
Without this change the test can't be compiled on platforms that don't
build the storage driver (mingw).

make[2]: *** No rule to make target `../src/libvirt_driver_storage_impl.la', needed by `virstoragetest.exe'.  Stop.

Broken by commit 713cc3b0a7ff8ad42b4c13429b624d1b2b5a99f2

tests/Makefile.am

index f9f2b84a611a1adee6628f243581e5d459d0c41e..1fdfd3b0f34b6f8d95e70e8d2c485ef6a16e490b 100644 (file)
@@ -162,7 +162,6 @@ test_programs = virshtest sockettest \
        virstringtest \
        virportallocatortest \
        sysinfotest \
-       virstoragetest \
        virnetdevbandwidthtest \
        virkmodtest \
        vircapstest \
@@ -279,7 +278,8 @@ test_programs += nwfilterxml2firewalltest
 endif WITH_NWFILTER
 
 if WITH_STORAGE
-test_programs += storagevolxml2argvtest
+test_programs += storagevolxml2argvtest \
+       virstoragetest
 endif WITH_STORAGE
 
 if WITH_LINUX