From: Simon McVittie Date: Wed, 8 Jun 2011 17:47:14 +0000 (+0100) Subject: installcheck: don't run installed tests against installed library if in a DESTDIR X-Git-Tag: dbus-1.4.12~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983fd362645beab59cf43fc5d68e4f6ac7a8bbeb;p=thirdparty%2Fdbus.git installcheck: don't run installed tests against installed library if in a DESTDIR That probably won't work, because it'll find the system-wide library which might be older. Reviewed-by: Will Thompson Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570 --- diff --git a/test/Makefile.am b/test/Makefile.am index be594038c..e74a8d394 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -132,10 +132,14 @@ endif !DBUS_ENABLE_INSTALLED_TESTS endif DBUS_ENABLE_MODULAR_TESTS +# If we're installing the tests into a DESTDIR we can't run them +# again using the installed copy, because we don't know how to +# do a portable equivalent of setting LD_LIBRARY_PATH. installcheck-local: $(MAKE) check-TESTS TESTS='$$(installcheck_tests)' \ TESTS_ENVIRONMENT='$$(installcheck_environment)' if DBUS_ENABLE_INSTALLED_TESTS + test -n "$(DESTDIR)" || \ $(installcheck_environment) \ $(srcdir)/dbus-test-runner \ $(testexecdir) \