diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-11-22 10:06:57 +1300 |
---|---|---|
committer | Isaac Boukris <iboukris@sn-devel-184> | 2019-11-22 11:48:59 +0000 |
commit | 6107c79c90fdff3fe60e0d0ef3efe57b52b21262 (patch) | |
tree | c9c4d42768f075c5e9a3316ad889282c1ae7a2fe /source4/rpc_server | |
parent | f8947538b5e445ab9c1931d1f7826771ee582385 (diff) | |
download | samba-6107c79c90fdff3fe60e0d0ef3efe57b52b21262.tar.gz |
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 c34ec003b7d45aa4196ff93a0ac29694b25e5309
and da87fa998ab71328f30bcdf5b41aee8675aee48a, 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
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/wscript_build | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build index 8d896c1722f..186e6a269e5 100644 --- a/source4/rpc_server/wscript_build +++ b/source4/rpc_server/wscript_build @@ -167,16 +167,15 @@ bld.SAMBA_MODULE('service_dcerpc', deps='dcerpc_server' ) -if bld.CONFIG_GET('ENABLE_SELFTEST'): - bld.SAMBA_BINARY( - 'test_rpc_dns_server_dnsutils', - source='tests/rpc_dns_server_dnsutils_test.c', - deps=''' +bld.SAMBA_BINARY( + 'test_rpc_dns_server_dnsutils', + source='tests/rpc_dns_server_dnsutils_test.c', + deps=''' dnsserver_common dcerpc_server cmocka talloc - ''', - install=False, - enabled=bld.AD_DC_BUILD_IS_ENABLED() - ) + ''', + for_selftest=True, + enabled=bld.AD_DC_BUILD_IS_ENABLED() +) |