]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Disable networkxml2argvtest when configured without network
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 5 Jul 2011 13:26:18 +0000 (15:26 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 5 Jul 2011 13:26:18 +0000 (15:26 +0200)
Reported by Ruben Kerkhof.

tests/Makefile.am

index 30b2d95bd29addf492948216561746081e9c2fd5..48f9faabfa3b04ffe3c46447bb79ed7d3a1125d1 100644 (file)
@@ -124,7 +124,9 @@ endif
 
 check_PROGRAMS += networkxml2xmltest
 
+if WITH_NETWORK
 check_PROGRAMS += networkxml2argvtest
+endif
 
 check_PROGRAMS += nwfilterxml2xmltest
 
@@ -244,7 +246,9 @@ endif
 
 TESTS += networkxml2xmltest
 
+if WITH_NETWORK
 TESTS += networkxml2argvtest
+endif
 
 TESTS += storagevolxml2xmltest storagepoolxml2xmltest
 
@@ -373,10 +377,14 @@ networkxml2xmltest_SOURCES = \
        testutils.c testutils.h
 networkxml2xmltest_LDADD = $(LDADDS)
 
+if WITH_NETWORK
 networkxml2argvtest_SOURCES = \
        networkxml2argvtest.c \
        testutils.c testutils.h
 networkxml2argvtest_LDADD = ../src/libvirt_driver_network.la $(LDADDS)
+else
+EXTRA_DIST += networkxml2argvtest.c
+endif
 
 nwfilterxml2xmltest_SOURCES = \
        nwfilterxml2xmltest.c \