how to set HAVE_CMOCKA

Ralph Böhme slow at samba.org
Wed Feb 21 07:43:19 UTC 2018


On Wed, Feb 21, 2018 at 08:29:58AM +0100, Andreas Schneider via samba-technical wrote:
> On Wednesday, 21 February 2018 08:27:22 CET Andrew Bartlett wrote:
> > On Wed, 2018-02-21 at 08:16 +0100, Andreas Schneider wrote:
> > > > Yes, I mentioned that above.  Any idea about the failure
> > > > test_samba_module_probe test however?
> > > 
> > > $ 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).
> > 
> > Sure, but does it run/pass from within make test?
> > 
> > What do you get for 'make test TESTS=unittest'?
> 
> There absolutely nothing different when executing that with 'make test'
> 
> [1(0)/5 at 0s] samba.unittests.krb5samba
> [2(4)/5 at 0s] samba.unittests.sambafs_srv_pipe
> [3(6)/5 at 0s] samba.unittests.lib_util_modules
> [4(9)/5 at 1s] samba.unittests.smb1cli_session
> [5(13)/5 at 1s] samba.unittests.tldap
> 
> ALL OK (15 tests in 5 testsuites)

[slow at kazak scratch]$ make -j test TESTS=unittest
WAF_MAKE=1 python ./buildtools/bin/waf test 
'test' finished successfully (0.016s)
Waf: Entering directory `/home/slow/git/samba/scratch/bin'
        Selected embedded Heimdal build
Waf: Leaving directory `/home/slow/git/samba/scratch/bin'
'build' finished successfully (4.128s)
test: running (/usr/bin/perl /home/slow/git/samba/scratch/selftest/selftest.pl --target=samba --prefix=./st --srcdir=/home/slow/git/samba/scratch --exclude=/home/slow/git/samba/scratch/selftest/skip --testlist="/usr/bin/python /home/slow/git/samba/scratch/selftest/tests.py|" --testlist="/usr/bin/python /home/slow/git/samba/scratch/source3/selftest/tests.py|" --testlist="/usr/bin/python /home/slow/git/samba/scratch/source4/selftest/tests.py|"  --exclude=/home/slow/git/samba/scratch/selftest/slow --nss_wrapper_so_path=/home/slow/git/samba/scratch/bin/default/third_party/nss_wrapper/libnss-wrapper.so --resolv_wrapper_so_path=/home/slow/git/samba/scratch/bin/default/third_party/resolv_wrapper/libresolv-wrapper.so --socket_wrapper_so_path=/home/slow/git/samba/scratch/bin/default/third_party/socket_wrapper/libsocket-wrapper.so --uid_wrapper_so_path=/home/slow/git/samba/scratch/bin/default/third_party/uid_wrapper/libuid-wrapper.so --use-dns-faking --socket-wrapper unittest && touch ./st/st_done) | /usr/bin/python -u /home/slow/git/samba/scratch/selftest/filter-subunit --expected-failures=/home/slow/git/samba/scratch/selftest/knownfail --expected-failures=/home/slow/git/samba/scratch/selftest/knownfail.d --flapping=/home/slow/git/samba/scratch/selftest/flapping --flapping=/home/slow/git/samba/scratch/selftest/flapping.d | tee ./st/subunit | /usr/bin/python -u /home/slow/git/samba/scratch/selftest/format-subunit --prefix=./st --immediate
LD_PRELOAD=/home/slow/git/samba/scratch/bin/default/third_party/nss_wrapper/libnss-wrapper.so:/home/slow/git/samba/scratch/bin/default/third_party/resolv_wrapper/libresolv-wrapper.so:/home/slow/git/samba/scratch/bin/default/third_party/socket_wrapper/libsocket-wrapper.so:/home/slow/git/samba/scratch/bin/default/third_party/uid_wrapper/libuid-wrapper.so
SOCKET_WRAPPER_DIR=/home/slow/git/samba/scratch/st/w
DNS: Faking nameserver
skipping subunit (testscenarios not available)
OPTIONS --configfile=$SMB_CONF_PATH --option='fss:sequence timeout=1' --maximum-runtime=$SELFTEST_MAXTIME --basedir=$SELFTEST_TMPDIR --format=subunit --option=torture:progress=no
No tests to run

ALL OK (0 tests in 0 testsuites)

A summary with detailed information can be found in:
  ./st/summary
TOP 10 slowest tests
ERROR: test command failed to complete
make: *** [Makefile:17: test] Error 1
[slow at kazak scratch]$

-slow

-- 
Ralph Boehme, Samba Team       https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/



More information about the samba-technical mailing list