]> xenbits.xensource.com Git - libvirt.git/commitdiff
fchosttest: Run the test only under linux
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Sep 2013 14:47:12 +0000 (16:47 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 27 Sep 2013 16:32:43 +0000 (18:32 +0200)
Currently, we have functions to handle fc_host implemented just
for linux. On all other platforms an error is thrown. It makes no
sense to run the test on those platforms then.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am

index 1a7ff4b48ba2744676f0c64ad0e911b2977d9888..17a2a724c6a1aed628b0bcfabc30a36d6b35462f 100644 (file)
@@ -129,9 +129,12 @@ test_programs = virshtest sockettest \
         virportallocatortest \
        sysinfotest \
        virstoragetest \
-        fchosttest \
        $(NULL)
 
+if WITH_LINUX
+test_programs += fchosttest
+endif WITH_LINUX
+
 if WITH_LIBVIRTD
 test_programs += fdstreamtest
 endif WITH_LIBVIRTD
@@ -845,10 +848,15 @@ fdstreamtest_SOURCES = \
        fdstreamtest.c testutils.h testutils.c
 fdstreamtest_LDADD = $(LDADDS)
 
+if WITH_LINUX
 fchosttest_SOURCES = \
        fchosttest.c testutils.h testutils.c
 fchosttest_LDADD = $(LDADDS)
 
+else ! WITH_LINUX
+EXTRA_DIST += fchosttest.c
+endif  ! WITH_LINUX
+
 if WITH_CIL
 CILOPTFLAGS =
 CILOPTINCS =