wrappers in the samba test environment.
Andreas Schneider
asn at samba.org
Tue Aug 11 06:56:32 UTC 2015
On Tuesday 11 August 2015 16:29:33 Andrew Bartlett wrote:
> On Mon, 2015-08-10 at 10:55 +0200, Andreas Schneider wrote:
> > The wrappers do not work on really strange platforms like IRIX or
> > something
> > like that. So if you just build Samba it compile without the wrappers
> > ...
>
> Do we have tests that show if we are on a supported platform, and can
> we rely on resolv_wrapper in make test?
> That is, as you know, I'm interested in adding a test for
> samba_dnsupdate. For that I'll need a working resolv_wrapper.
That resolv_wrapper can redirect dns queries to a DNS server only works on
Linux!
The reason is that only on Linux we have a libresolv library, so
socket_wrapper can intercept the traffic. On other platforms the functions are
part of libc. This means that the internal socket functions are bound first
and called directly.
> Are we
> going to try and still have make test run on platforms that can't
> support resolv_wrapper, and if so, what should I be detecting that
> with?
resolv_wrapper is turned on by default and runs on every platform we support.
Currently it is in DNS faking mode for all platform including Linux.
See selftest/wscript search for FIXME
Cheers,
-- andreas
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list