1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib
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
..
addns lib/addns: clang: Fix 'Assigned value is garbage or undefined' 2019-07-24 21:33:21 +00:00
afs lib: Use dom_sid_str_buf 2018-12-11 00:40:30 +01:00
async_req build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
audit_logging build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
compression lib:compression: Fix undefined behavior in lzxpress 2018-11-22 22:13:27 +01:00
crypto Spelling fixes s/ ot / to / 2019-09-01 22:21:27 +00:00
dbwrap dbwrap_tdb: Avoid a use of talloc_stackframe() 2019-11-06 20:36:34 +00:00
fuzzing lib/fuzzing: Add oss-fuzz info to README.md 2019-11-21 00:45:33 +00:00
krb5_wrap lib:krb5_wrap: Do not create a temporary file for MEMORY keytabs 2019-10-12 16:18:39 +00:00
ldb ldb: Extend the ldb_dn_explode test matrix 2019-08-27 04:44:41 +00:00
ldb-samba pyldb: fork pyldb_Ldb_AsLdbContext macro to reflect unsafeness 2019-07-10 04:32:13 +00:00
mscat lib:mscat: Add missing return check for error in dumpsmcat 2019-05-24 06:07:08 +00:00
param Detect when command line max protocol < min protocol 2019-11-12 17:52:28 +00:00
printer_driver lib:printer_driver: Retrieve Class value 2019-01-28 15:44:18 +01:00
pthreadpool build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
replace build: Only link against libcrypt where needed 2019-11-13 08:42:30 +00:00
smbconf waf: add library dependency for sendfile on Solaris 2019-02-17 13:33:15 +01:00
socket lib:socket: If returning early, set ifaces 2018-10-28 00:35:34 +02:00
talloc talloc: Release talloc 2.3.1 2019-11-18 10:11:41 +00:00
tdb tdb: Release tdb 1.4.3 2019-11-18 10:11:41 +00:00
tdb_wrap tdb_wrap: Use a struct initializer 2015-07-23 14:39:18 +02:00
tdr lib: Fix 1354521 Unchecked return value 2016-03-01 21:49:44 +01:00
tevent tevent: Release tevent 0.10.2 2019-11-18 11:44:08 +00:00
texpect build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
torture lib/torture: protect torture_assert[_goto]() with a do { } while(0) block 2019-09-10 17:38:40 +00:00
tsocket Spelling fixes s/implentation/implementation/ 2019-09-01 22:21:28 +00:00
util build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00
README various: Remove references to about to be deleted thirdparty/dnspython 2018-12-11 20:07:18 +01:00
wscript_build Remove 'external' python module support code - use the third_party directory instead. 2015-03-06 04:41:48 +01:00

compression - Various compression algorithms (MSZIP, lzxpress)
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions 
          not provided by the host platform.
subunit - Utilities and bindings for working with the Subunit test result 
          reporting protocol.
talloc - Hierarchical pool based memory allocator 
tdb - Simple but fast key/value database library, supporting multiple writers
torture - Simple unit testing helper library