how to set HAVE_CMOCKA
Andreas Schneider
asn at samba.org
Thu Feb 22 06:50:49 UTC 2018
On Wednesday, 21 February 2018 23:50:44 CET Douglas Bagnall wrote:
> On 21/02/18 20:16, Andreas Schneider via samba-technical wrote:
> > $ CMOCKA_MESSAGE_OUTPUT=stdout ./bin/test_lib_util_modules
> > [==========] Running 3 test(s).
> > [ RUN ] test_samba_module_probe
> > [ OK ] test_samba_module_probe
> > [ RUN ] test_samba_module_probe_dummy
> > Test dummy executed!
> > [ OK ] test_samba_module_probe_dummy
> > [ RUN ] test_samba_module_probe_slash
> > [ OK ] test_samba_module_probe_slash
> > [==========] 3 test(s) run.
> > [ PASSED ] 3 test(s).
>
> On our Openstack cloud with Ubuntu 16.04 or 14.04, we see
>
> [==========] Running 3 test(s).
> [ RUN ] test_samba_module_probe
> [ ERROR ] --- NT_STATUS_IS_OK(status)
> [ LINE ] --- ../testsuite/unittests/test_lib_util_modules.c:30:
> error: Failure!
> [ FAILED ] test_samba_module_probe
> [ RUN ] test_samba_module_probe_dummy
> Test dummy executed!
> [ OK ] test_samba_module_probe_dummy
> [ RUN ] test_samba_module_probe_slash
> [ OK ] test_samba_module_probe_slash
> [==========] 3 test(s) run.
> [ PASSED ] 2 test(s).
> [ FAILED ] 1 test(s), listed below:
> [ FAILED ] test_samba_module_probe
>
> 1 FAILED TEST(S)
>
> That is trying to load the "unix" module, but we only have script.so and
> skel.so. That is, for whatever reason, waf decided this:
>
> AUTH_STATIC: auth_builtin,auth_sam,auth_winbind,auth_unix,auth_samba4
> AUTH_SHARED: auth_script,auth_skel
>
> The attached patch tests with the skel module instead.
>
> Douglas
That looks fine for me. I see it is already upstream.
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list