]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix testing of augeas files in VPATH builds
authorEric Blake <eblake@redhat.com>
Tue, 29 May 2012 21:49:13 +0000 (15:49 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 30 May 2012 15:29:32 +0000 (09:29 -0600)
commitfb59cf7a5824b9c876737dcbf6aac97c29b1444a
tree43363ec4d705043fc1294d5562af5ad238962932
parentaabf77aa41e9589faa7ce44add87b97f5a6dde2e
build: fix testing of augeas files in VPATH builds

Without this fix, a VPATH build (such as used by ./autobuild.sh)
fails with messages like:

make[3]: Entering directory `/home/remote/eblake/libvirt-tmp2/build/daemon'
../../build-aux/augeas-gentest.pl libvirtd.conf ../../daemon/test_libvirtd.aug.in test_libvirtd.aug
cannot read libvirtd.conf: No such file or directory at ../../build-aux/augeas-gentest.pl line 38.

Since the test files are not part of the tarball, we can generate
them into the build dir, but rather than create a subdirectory
just for the test file, it is easier to test them directly in
libvirt.git/src.

* daemon/Makefile.am (AUG_GENTEST): Factor out definition.
(test_libvirtd.aug): Look for correct file.
* src/Makefile.am (AUG_GENTEST): Use $(PERL).
(qemu/test_libvirtd_qemu.aug, lxc/test_libvirtd_lxc.aug)
(locking/test_libvirt_sanlock.aug): Rename to avoid subdirectories.
(check-augeas-qemu, check-augeas-lxc, check-augeas-sanlock): Reflect
location of built tests.
* configure.ac (PERL): Substitute perl.
.gitignore
configure.ac
daemon/Makefile.am
src/Makefile.am