From 8ec24bc1df9afbd8c128e75975038096edfd7906 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Oct 2015 11:28:09 +0200 Subject: [PATCH 1/3] talloc:wscript: let 'make test' imply building BUG: https://bugzilla.samba.org/show_bug.cgi?id=11540 Signed-off-by: Stefan Metzmacher --- lib/talloc/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/talloc/wscript b/lib/talloc/wscript index bbe0cb1..add2738 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -145,7 +145,7 @@ def build(bld): install=False) -def test(ctx): +def testonly(ctx): '''run talloc testsuite''' import Utils, samba_utils cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite') @@ -155,6 +155,11 @@ def test(ctx): print("python testsuite returned %d" % pyret) sys.exit(ret or pyret) +def test(ctx): + import Scripting + Scripting.commands.append('build') + Scripting.commands.append('testonly') + def dist(): '''makes a tarball for distribution''' samba_dist.dist() -- 1.9.1 From f430c209e7417dd7b20d1c00eb79b151fd295a84 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Oct 2015 11:28:09 +0200 Subject: [PATCH 2/3] tevent:wscript: let 'make test' imply building BUG: https://bugzilla.samba.org/show_bug.cgi?id=11540 Signed-off-by: Stefan Metzmacher --- lib/tevent/wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tevent/wscript b/lib/tevent/wscript index 827094c..1b0e5c8 100755 --- a/lib/tevent/wscript +++ b/lib/tevent/wscript @@ -129,13 +129,17 @@ def build(bld): installdir='python') -def test(ctx): +def testonly(ctx): '''test tevent''' print("The tevent testsuite is part of smbtorture in samba4") pyret = samba_utils.RUN_PYTHON_TESTS(['bindings.py']) sys.exit(pyret) +def test(ctx): + import Scripting + Scripting.commands.append('build') + Scripting.commands.append('testonly') def dist(): '''makes a tarball for distribution''' -- 1.9.1 From 462addb1be11dbb98ea065617072352399b5b56e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Oct 2015 11:28:09 +0200 Subject: [PATCH 3/3] ldb:wscript: let 'make test' imply building BUG: https://bugzilla.samba.org/show_bug.cgi?id=11540 Signed-off-by: Stefan Metzmacher --- lib/ldb/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 0996f51..366cc1c 100755 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -274,7 +274,7 @@ def build(bld): private_library=True) -def test(ctx): +def testonly(ctx): '''run ldb testsuite''' import Utils, samba_utils, shutil test_prefix = "%s/st" % (Utils.g_module.blddir) @@ -287,6 +287,11 @@ def test(ctx): # FIXME: Run python testsuite sys.exit(ret) +def test(ctx): + import Scripting + Scripting.commands.append('build') + Scripting.commands.append('testonly') + def dist(): '''makes a tarball for distribution''' samba_dist.dist() -- 1.9.1