1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli/dns
Andrew Bartlett 6107c79c90 build: Do not build selftest binaries for builds without --enable-selftest
Add new for_selftest option to SAMBA_BINARY() and SAMBA3_BINARY()

This allows us to be much more consistent (at least in the core Samba)
and documents clearly why the binary should not be installed.

Not modified are
 - test_lp_load
 - notifyd-tests
 - gendrandperf
 - test* from examples/libsmbclient
 - dbwrap_torture
 - split_tokens
 - locktest2
 - msgtest
 - msg_sink
 - msg_source
 - versiontest
 - rpc_open_tcp
 - test_headers

As these are not tested in selftest so any change would also be
untested.  Of course they probably should be added in a different
MR.

Also not modified (because they are not tests, nor part of the
build system) are:
 - smb2mount
 - notifydd
 - log2pacp
 - debug2html
 - smbfilter
 - destroy_netlogon_creds_cli
 - spotlight2*
 - tevent_glib_tracker

These do however appear to be untested.

For now, the source4 forked client tools are left unchanged:
 - smbclient4
 - nmblookup4

Finally, the heimdal binaries are left as install=False as
they are either part of the build system or end-user tools
that we just don't want to install.  These are however tested.

The motivation is commit like c34ec003b7
and da87fa998a, which are both totally
correct but are not needed if the selftest is not run on MacOS.

There are likely other platforms or build environments where building
our test binaries is more pain than valuable, see for example also
https://lists.samba.org/archive/samba/2019-November/227137.html

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>

Autobuild-User(master): Isaac Boukris <iboukris@samba.org>
Autobuild-Date(master): Fri Nov 22 11:48:59 UTC 2019 on sn-devel-184
2019-11-22 11:48:59 +00:00
..
dns_lookup.c Fix tests when building with selftest but without developer 2019-01-25 21:57:57 +01:00
dns_lookup.h libcli/dns: Add dns_res_rec_get_sockaddr 2019-01-15 07:53:22 +01:00
dns_lookuptest.c libcli/dns: Add dns_lookup 2019-01-15 07:53:21 +01:00
dns.c libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds. 2019-01-22 23:37:16 +01:00
dns.h libcli-dns: Remove obsolete dns_host_file subsystem. 2014-12-18 09:09:38 +01:00
libdns.h dnscli: Make a few functions static 2018-01-06 00:07:17 +01:00
resolvconf.c lib: Initialize variables in parse_resolvconf_fp 2019-04-09 18:29:14 +00:00
resolvconf.h libcli/dns: Add resolv.conf parsing 2019-01-15 07:53:21 +01:00
resolvconftest.c libcli/dns: Add resolv.conf parsing 2019-01-15 07:53:21 +01:00
wscript_build build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00