1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli/smb
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
..
read_smb.c libcli/smb: use tevent_req_received(req) in read_smb_recv() 2015-06-12 17:08:18 +02:00
read_smb.h
smb1cli_close.c libcli/smb: add smb1cli_close* 2014-01-07 08:37:39 +01:00
smb1cli_create.c libcli/smb: move {smb,trans2}_bytes_push_{str,bytes}() to common code 2016-11-15 11:00:26 +01:00
smb1cli_echo.c libcli: Fix a segfault calling smbXcli_req_set_pending() on NULL. 2014-09-23 04:23:05 +02:00
smb1cli_read.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb1cli_readx* 2015-12-01 00:38:23 +01:00
smb1cli_session.c libcli/smb: clang: Fix 'value stored to 'p' is never read' 2019-07-11 04:08:13 +00:00
smb1cli_trans.c libcli smb smb1cli_trans: fix ubsan warning 2019-10-16 18:00:31 +00:00
smb1cli_write.c libcli/smb: add smb1cli_writex* 2014-01-07 08:37:39 +01:00
smb2_constants.h libcli:smb: Define SMB2_AES_128_CCM_NONCE_SIZE 2019-08-21 09:57:31 +00:00
smb2_create_blob.c libcl/smb: clang: Fix 'Value stored to 'next_offset' is never read' 2019-07-11 04:08:13 +00:00
smb2_create_blob.h s3: client - rename 'struct smb2_create_returns' to 'struct smb_create_returns' so we can use this in SMB1 create returns as well. 2014-05-09 23:10:07 +02:00
smb2_create_ctx.h vfs_fruit: Add Time Machine support 2017-10-04 10:06:15 +02:00
smb2_lease.c Revert "libcli/smb: mask off SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET for version 1" 2014-11-27 16:45:05 +01:00
smb2_lease.h libcli/smb: Add smb2_lease_equal() which compares client_guids and keys. 2014-11-07 22:41:47 +01:00
smb2_lock.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb2_negotiate_context.c libcli/smb: clang: Fix Value stored to 'next_offset' is never read 2019-07-24 21:33:20 +00:00
smb2_negotiate_context.h libcli: Pass buf/len to smb2_negotiate_context_add 2019-02-25 21:07:22 +01:00
smb2_signing.c libcli:smb: Do not use gnutls_aead_cipher_encryptv2() with GnuTLS 3.6.10 2019-11-04 12:47:30 +00:00
smb2_signing.h libcli:smb: Use smb2_signing_key in smb2_signing_encrypt_pdu() 2019-08-27 04:44:41 +00:00
smb2cli_close.c libcli/smb: pass max_dyn_len to smb2cli_req_send() 2013-08-15 09:07:06 +02:00
smb2cli_create.c s3: libsmb: Correctly align create contexts in a create call. 2016-08-22 19:10:22 +02:00
smb2cli_echo.c libcli/smb: pass max_dyn_len to smb2cli_req_send() 2013-08-15 09:07:06 +02:00
smb2cli_flush.c libcli/smb: pass max_dyn_len to smb2cli_req_send() 2013-08-15 09:07:06 +02:00
smb2cli_ioctl.c libcli/smb: make sure we have a body size of 0x31 before dereferencing an ioctl response 2015-12-01 00:38:23 +01:00
smb2cli_notify.c libcli: Make smb2cli_notify_send cancellable 2018-11-21 16:53:41 +01:00
smb2cli_query_directory.c libcli/smb: outbuf length is a IVAL ie a uint32_t 2017-01-31 04:34:29 +01:00
smb2cli_query_info.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb2cli_query_info* 2015-12-01 00:38:23 +01:00
smb2cli_read.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb2cli_read* 2015-12-01 00:38:23 +01:00
smb2cli_session.c libcli/smb: implement SMB 3.10 session setup 2014-10-07 22:47:04 +02:00
smb2cli_set_info.c libcli/smb: pass max_dyn_len to smb2cli_req_send() 2013-08-15 09:07:06 +02:00
smb2cli_tcon.c libcli/smb: pass tcon flags to the server for SMB 3.10 2014-10-07 22:47:04 +02:00
smb2cli_write.c libcli/smb: pass max_dyn_len to smb2cli_req_send() 2013-08-15 09:07:06 +02:00
smb_common.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb_constants.h lib:util: Move VWV macro to smb_constants.h 2019-05-17 19:33:25 +00:00
smb_seal.c libcli:smb: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
smb_seal.h
smb_signing.c lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
smb_signing.h libcli:smb: Return NTSTATUS for smb_key_derivation() 2019-05-21 00:03:21 +00:00
smb_unix_ext.h libcli/smb: add define SMB_ENCRYPTION_GSSAPI for CIFS encryption type 2016-01-22 07:52:21 +01:00
smb_util.h libcli/smb: add smb_protocol_types_string() 2017-06-22 13:07:40 +02:00
smbXcli_base.c libcli:smb: Prefer AES-GCM over AES-CCM with GnuTLS 2019-08-27 04:44:41 +00:00
smbXcli_base.h libcli/smb: s/smbXcli_session_copy/smbXcli_session_shallow_copy 2019-06-12 12:42:26 +00:00
test_smb1cli_session.c Fix uClibc build on 64bit platforms by including stdint.h 2018-08-24 17:22:09 +02:00
tstream_smbXcli_np.c tstream: Fix CID 1167981 Unchecked return value 2018-04-16 19:09:56 +02:00
tstream_smbXcli_np.h libcli/smb: make TSTREAM_SMBXCLI_NP_MAX_BUF_SIZE public 2014-03-25 00:45:28 +01:00
util.c libcli/smb: add smb_protocol_types_string() 2017-06-22 13:07:40 +02:00
wscript build: Do not build selftest binaries for builds without --enable-selftest 2019-11-22 11:48:59 +00:00