1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

tdb: Do not build test binaries if it's not a standalone build

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Mar 31 01:56:02 CEST 2015 on sn-devel-104
This commit is contained in:
Amitay Isaacs 2014-08-15 11:36:40 +10:00 committed by Jeremy Allison
parent 9bcd27df5d
commit 48e90ba062

View File

@ -165,17 +165,18 @@ def build(bld):
'tools/tdbtool.c',
'tdb', manpages='man/tdbtool.8')
# FIXME: This hardcoded list is stupid, stupid, stupid.
bld.SAMBA_SUBSYSTEM('tdb-test-helpers',
'test/external-agent.c test/lock-tracking.c test/logging.c',
tdb_deps,
includes='include')
if bld.env.standalone_tdb:
# FIXME: This hardcoded list is stupid, stupid, stupid.
bld.SAMBA_SUBSYSTEM('tdb-test-helpers',
'test/external-agent.c test/lock-tracking.c test/logging.c',
tdb_deps,
includes='include')
for t in tdb1_unit_tests:
b = "tdb1-" + t
s = "test/" + t + ".c"
bld.SAMBA_BINARY(b, s, 'replace tdb-test-helpers',
includes='include', install=False)
for t in tdb1_unit_tests:
b = "tdb1-" + t
s = "test/" + t + ".c"
bld.SAMBA_BINARY(b, s, 'replace tdb-test-helpers',
includes='include', install=False)
if not bld.CONFIG_SET('USING_SYSTEM_PYTDB'):
bld.SAMBA_PYTHON('pytdb',