]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: all test_scripts should be part of tarball when building without libvirtd
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 13 May 2011 08:03:20 +0000 (16:03 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Sat, 14 May 2011 05:46:00 +0000 (13:46 +0800)
Steps to reproduce this problem:
1. # ./autogen.sh --without-libvirtd
2. # make dist
3. # rpmbuild --nodeps --define "_sourcedir `pwd`" -ba libvirt.spec
   ...
   make  check-TESTS
   make[1]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.1/tests'
   make[1]: *** No rule to make target `test_conf.sh', needed by `check-TESTS'.  Stop.
   make[1]: Leaving directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.1/tests'
   make: *** [check-am] Error 2
   error: Bad exit status from /var/tmp/rpm-tmp.7Rb9PV (%check)

tests/Makefile.am

index fe191fd16b707ac87f73808be94d69d2b35203dd..bc171d22d6a0e1c0ad852484cf43ab033f3285ad 100644 (file)
@@ -144,6 +144,24 @@ test_scripts +=                            \
        virsh-optparse                  \
        virsh-schedinfo                 \
        virsh-synopsis
+else
+EXTRA_DIST +=                          \
+       test_conf.sh                    \
+       cpuset                          \
+       daemon-conf                     \
+       define-dev-segfault             \
+       int-overflow                    \
+       libvirtd-fail                   \
+       libvirtd-pool                   \
+       read-bufsiz                     \
+       read-non-seekable               \
+       start                           \
+       undefine                        \
+       vcpupin                         \
+       virsh-all                       \
+       virsh-optparse                  \
+       virsh-schedinfo                 \
+       virsh-synopsis
 endif
 
 if WITH_SECDRIVER_APPARMOR