how to set HAVE_CMOCKA

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Wed Feb 21 22:50:44 UTC 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-unittests.lib_util_modules-test-module-probe-with-sk.patch
Type: text/x-patch
Size: 967 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180222/38517679/0001-unittests.lib_util_modules-test-module-probe-with-sk.bin>


More information about the samba-technical mailing list