From: Andrew Bartlett Date: Sun, 5 May 2019 23:09:16 +0000 (+1200) Subject: talloc: Follow pattern of ldb and tdb to ensure "make test" depends on a build X-Git-Tag: tdb-1.4.1~207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=305617a14d2a77d34785168ca2c5feb6f862a818;p=thirdparty%2Fsamba.git talloc: Follow pattern of ldb and tdb to ensure "make test" depends on a build Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- 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()