From: Noel Power Date: Thu, 8 Mar 2018 10:37:23 +0000 (+0000) Subject: python samba test: enable samba.tests.libsmb_samba_internal for py3 X-Git-Tag: talloc-2.1.13~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25e336ebbf373bd486ae31a654614925c2cfb111;p=thirdparty%2Fsamba.git python samba test: enable samba.tests.libsmb_samba_internal for py3 Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source3/wscript_build b/source3/wscript_build index ed9ed24fae2..254738e69ea 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -1302,7 +1302,8 @@ bld.SAMBA3_PYTHON('pysmbd', realname='samba/samba3/smbd.so' ) -bld.SAMBA3_PYTHON('pylibsmb', +for env in bld.gen_python_environments(): + bld.SAMBA3_PYTHON('pylibsmb', source='libsmb/pylibsmb.c', deps='smbclient samba-credentials pycredentials', realname='samba/samba3/libsmb_samba_internal.so' diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 0f32c6deed1..b882502be75 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -376,7 +376,7 @@ for t in smbtorture4_testsuites("dlz_bind9."): #The dlz_bind9 tests needs to look at the DNS database plansmbtorture4testsuite(t, "chgdcpass:local", ["ncalrpc:$SERVER", '-U$USERNAME%$PASSWORD']) -planpythontestsuite("nt4_dc", "samba.tests.libsmb_samba_internal"); +planpythontestsuite("nt4_dc", "samba.tests.libsmb_samba_internal", py3_compatible=True); # Blackbox Tests: # tests that interact directly with the command-line tools rather than using