summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-05-06 11:09:16 +1200
committerGary Lockyer <gary@samba.org>2019-05-06 05:46:11 +0000
commit305617a14d2a77d34785168ca2c5feb6f862a818 (patch)
tree1f4d04c343714a431a06b6f9b78e2aaff415fd7d /lib/talloc
parent6cc68c1ccf7683543e2735844210627d39556e34 (diff)
downloadsamba-305617a14d2a77d34785168ca2c5feb6f862a818.tar.gz
talloc: Follow pattern of ldb and tdb to ensure "make test" depends on a build
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/talloc/wscript b/lib/talloc/wscript
index e4020692d60..eda62d19086 100644
--- a/lib/talloc/wscript
+++ b/lib/talloc/wscript
@@ -154,7 +154,7 @@ def build(bld):
install=False)
-def test(ctx):
+def testonly(ctx):
'''run talloc testsuite'''
import samba_utils
@@ -176,6 +176,12 @@ def test(ctx):
print("python testsuite returned %d" % pyret)
sys.exit(ret or magic_ret or pyret)
+# WAF doesn't build the unit tests for this, maybe because they don't link with talloc?
+# This forces it
+def test(ctx):
+ Options.commands.append('build')
+ Options.commands.append('testonly')
+
def dist():
'''makes a tarball for distribution'''
samba_dist.dist()