Ingvar Hagelund skrev: > * Mogens Kjaer >> If I remove the comment on %{__make} check and build varnish, >> it doesn't run any checks at all. It just complains about a missing >> libvarnish.so.0: >> >> ... >> error while loading shared libraries: libvarnish.so.0: cannot open >> shared object file: No such file or directory >> FAIL: ./tests/a00000.vtc >> ... >> >> So is the build system using an already installed libvarnish.so.0 >> if one is available and not the newly built libvarnish.so.0? * Jason L Tibbitts III > Usually you play with LD_LIBRARY_PATH in your specfile to reference > the just-built library. Thanks, Jason. To make it run the test suite from within rpmbuild, try %{__make} check LD_LIBRARY_PATH="../../lib/libvarnish/.libs:../../lib/libvarnishcompat/.libs:../../lib/libvarnishapi/.libs:../../lib/libvcl/.libs" The specfile is updated. This is not necessary when ran the tests from an interactive shell. It also appears that when test run within rpmbuild, and with libs from within the build, varnishd won't start, (or at least won't answer any ports) at all. That's different from when running test within rpmbuild, but using libs from the system. Ingvar -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list