1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/libcli
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
..
auth build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
cldap libcli/cldap: clang: Fix 'Dereference of null pointer' 2019-07-16 22:52:24 +00:00
dns build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
drsuapi build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
echo s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. 2017-05-05 15:52:11 +02:00
http s4:lib/http: move to the toplevel 2019-08-07 12:54:40 +00:00
ldap typo: mplementation => implementation 2016-05-06 05:03:16 +02:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth tstream_npa: Set local server name in auth requests 2019-10-18 16:07:35 +00:00
nbt build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
netlogon libcls/netlogon: clang: Fix 'initialization value is never read' 2019-07-16 22:52:24 +00:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync libcli:auth: Return NTSTATUS for netlogon_creds_arcfour_crypt() 2019-06-27 12:54:23 +00:00
security pysecurity: use unsigned int, not int to approximate uint32_t 2019-07-22 22:20:26 +00:00
smb build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
smbreadline libcli:smbreadline: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
util lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00