mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
selftest: Add function for checking whether a module is enabled
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
99565d2a8d
commit
80add26b5f
@ -70,6 +70,12 @@ have_inotify = ("HAVE_INOTIFY" in config_hash)
|
||||
have_ldwrap = ("HAVE_LDWRAP" in config_hash)
|
||||
with_pthreadpool = ("WITH_PTHREADPOOL" in config_hash)
|
||||
|
||||
def is_module_enabled(module):
|
||||
if module in config_hash["STRING_SHARED_MODULES"]:
|
||||
return True
|
||||
if module in config_hash["STRING_STATIC_MODULES"]:
|
||||
return True
|
||||
return False
|
||||
|
||||
plantestsuite("samba3.blackbox.success", "nt4_dc:local", [os.path.join(samba3srcdir, "script/tests/test_success.sh")])
|
||||
plantestsuite("samba3.blackbox.failure", "nt4_dc:local", [os.path.join(samba3srcdir, "script/tests/test_failure.sh")])
|
||||
|
Loading…
x
Reference in New Issue
Block a user