diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-30 10:33:43 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-30 13:55:05 +0200 |
commit | 4bd20c075f0f187db0181dc53d00ab6cd47fdb4d (patch) | |
tree | 941d53a7b8823f73ff4b8f3cca60633c704b98f2 /src/conf_macros.m4 | |
parent | b772ceb6e5cdda62aa98d4fc61f4800b9779b74a (diff) | |
download | sssd-4bd20c075f0f187db0181dc53d00ab6cd47fdb4d.tar.gz sssd-4bd20c075f0f187db0181dc53d00ab6cd47fdb4d.tar.xz sssd-4bd20c075f0f187db0181dc53d00ab6cd47fdb4d.zip |
BUILD: Disable dbus tests when running distcheck
https://fedorahosted.org/sssd/ticket/2291
The dbus tests that mock an sbus server were failing when make distcheck
was ran by a user logged in through the SSSD.
The reason was that the libtool wrapper around the test library alters
the LD_LIBRARY_PATH and as a consequence, the standard getpwuid_r() calls
the dbus server performs would load the in-tree NSS library and not the
system one. The-in tree library would then attempt to talk to an in-tree
NSS socket, fail, which would fail the getpwuid_r call with an error such as:
"""
Could not get password database information for UID of current process:
User "???" unknown or no memory to allocate password entry
"""
This patch adds a new configure-time option called --enable-dbus-tests
that is enabled by default and disabled during distcheck. When the
option is disabled, the tests that require a mocked dbus server are not
compiled at all.
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r-- | src/conf_macros.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 2c8340319..af0834a75 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -667,3 +667,10 @@ AC_DEFUN([WITH_SAMBA], fi AM_CONDITIONAL([BUILD_SAMBA], [test x"$with_samba" = xyes]) ]) + +AC_ARG_ENABLE([dbus-tests], + [AS_HELP_STRING([--enable-dbus-tests], + [enable running tests using a dbus server instance [default=yes]])], + [build_dbus_tests=$enableval], + [build_dbus_tests=yes]) +AM_CONDITIONAL([BUILD_DBUS_TESTS], [test x$build_dbus_tests = xyes]) |