diff options
author | Andreas Schneider <asn@samba.org> | 2017-04-10 07:50:41 +0200 |
---|---|---|
committer | Uri Simchoni <uri@samba.org> | 2017-04-12 12:54:24 +0200 |
commit | 63698da6e26965a539b623064ff34d4cb177f2ff (patch) | |
tree | f45cb9a54ece42ff0da9b3c9bf50859d3d0c784c /selftest/tests.py | |
parent | 2fa9346333bab34a5bf1ad1ec26da2d9b6a291dd (diff) | |
download | samba-63698da6e26965a539b623064ff34d4cb177f2ff.tar.gz |
waf: Only build pam_wrapper if we build with pam
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'selftest/tests.py')
-rw-r--r-- | selftest/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/selftest/tests.py b/selftest/tests.py index d962a66f4e6..e3dd91414d9 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -39,6 +39,7 @@ finally: have_man_pages_support = ("XSLTPROC_MANPAGES" in config_hash) with_cmocka = ("HAVE_CMOCKA" in config_hash) +with_pam = ("WITH_PAM" in config_hash) pam_wrapper_so_path=config_hash["LIBPAM_WRAPPER_SO_PATH"] planpythontestsuite("none", "samba.tests.source") @@ -137,8 +138,9 @@ plantestsuite( configuration]) planpythontestsuite("none", "samba.tests.glue", py3_compatible=True) -plantestsuite("samba.tests.pam_winbind", "ad_member", - [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"), valgrindify(python), pam_wrapper_so_path]) +if with_pam: + plantestsuite("samba.tests.pam_winbind", "ad_member", + [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"), valgrindify(python), pam_wrapper_so_path]) if with_cmocka: plantestsuite("samba.unittests.krb5samba", "none", |