1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/nsswitch
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
..
krb5_plugin krb5_plugin: Fix developer build with newer heimdal system library 2019-11-13 17:49:38 +00:00
libwbclient nsswitch/libwbclient: clang: Fix Value stored to 'wbc_status' is never read 2019-07-11 04:08:13 +00:00
tests selftest: Test ID_TYPE_BOTH with idmap_rid module 2019-09-27 16:07:40 +00:00
nsstest.c nsswitch: cppcheck: Fix memleakOnRealloc errors 2019-06-04 22:13:07 +00:00
nsstest.h nsswitch: Fix checking for config.h #define in nsstest.h 2018-12-16 21:04:10 +01:00
pam_winbind.c nsswitch: add logging to wbc_auth_error_to_pam_error() for non auth errors 2019-09-24 18:30:37 +00:00
pam_winbind.h nsswitch: Add try_authtok option to pam_winbind 2018-10-02 14:12:13 +02:00
stress-nss-libwbclient.c nsswitch: Fix CID 1441070 Error handling issues (CHECKED_RETURN) 2018-11-09 22:42:27 +01:00
wb_common.c wbclient: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
wb_reqtrans.c
wb_reqtrans.h
wbinfo.c nsswitch: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
winbind_client.h wbclient: Add wbcSetClientProcessName() 2018-11-12 09:50:25 +01:00
winbind_nss_aix.c winbind_nss_aix: add incomplete attr_flag initializations 2018-12-22 03:11:14 +01:00
winbind_nss_config.h Remove special socket_wrapper code. 2014-04-17 14:56:06 +02:00
winbind_nss_freebsd.c nsswitch: maintain prototypes for the linux based functions only once 2018-04-03 16:41:09 +02:00
winbind_nss_hpux.h
winbind_nss_linux.c nsswitch/winbind_nss_linux.c use WBFLAG_FROM_NSS 2018-12-22 03:11:14 +01:00
winbind_nss_linux.h nsswitch: add some const to _nss_winbind_initgroups_dyn() prototype 2018-04-03 16:41:09 +02:00
winbind_nss_netbsd.c winbind_nss_netbsd: use WBFLAG_FROM_NSS 2018-12-22 03:11:14 +01:00
winbind_nss_netbsd.h
winbind_nss_solaris.c winbind_nss_solaris: use WBFLAG_FROM_NSS 2018-12-22 03:11:14 +01:00
winbind_nss_solaris.h nsswitch: maintain prototypes for the linux based functions only once 2018-04-03 16:41:09 +02:00
winbind_nss.h nsswitch: Fix checking for config.h #define in winbind_nss.h 2018-12-16 21:04:10 +01:00
winbind_struct_protocol.h winbind introduce WBFLAG_FROM_NSS 2018-12-22 03:11:14 +01:00
wins_freebsd.c nss_wins: add module for FreeBSD 2015-09-11 00:34:30 +02:00
wins.c wins: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
wscript_build build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
wscript_configure nss/waf: check for secmethod_table.method_{attrlist,version} for aix >= 5.2 2018-12-22 06:22:22 +01:00