Logging for Samba3 'make test'?

Stefan (metze) Metzmacher metze at samba.org
Wed May 17 14:10:22 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Lendecke schrieb:
> Hi, Stefan!
> 
> One question regarding samba3 'make test': How can I get
> smbd log output from 'make test'? I tried
> 
> Index: script/tests/selftest.sh
> ===================================================================
> --- script/tests/selftest.sh    (Revision 15655)
> +++ script/tests/selftest.sh    (Arbeitskopie)
> @@ -88,7 +88,8 @@
>         pid directory = $PIDDIR
>         lock directory = $LOCKDIR
>         log file = $LOGDIR/log.%m
> -       log level = 0
> +       log level = 10
> +       max log size = 0
> 
>         passdb backend = tdbsam
> 
> but I did not get any files in logs/. Looking at
> /proc/<smbd-pid>/fd/ I see that smbd still has smbd_test.log
> open but it would not log into that.
> 
> Any idea?

Hi Volker,

yes:-)

we start smbd like this:
timelimit $SMBD_MAXTIME $SMBD_VALGRIND $SRCDIR/bin/smbd -F -S \
- --no-process-group -d0 -s $SERVERCONFFILE > $SMBD_TEST_LOG 2>&1 &

and nmbd the same way

see ./st/smbd_test.log and ./st/nmbd_test.log

I've done this because I wanted all smbd's to write to the same log
file, because we do a 'cat ./smbd_test.log' when a test fails.
With that we can see the log file content on the build-farm and
and on the screen in interactive mode.

the debug level is also provided on the command line

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEay7Om70gjA5TCD8RArXwAJ4q3qpMWr1PnJo1qFwxdrgmvBAUEACfQL3I
2ozoawBdlMx3St7DWUeRRiE=
=3uPe
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list