From fe060c8f50de23c4f3503a32c3237bb80bd68331 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Apr 2010 22:11:30 +1000 Subject: [PATCH] s4-waf: added simple 'waf test' support for tdb, talloc and ldb --- lib/talloc/wscript | 9 +++++---- lib/tdb/wscript | 6 ++++++ lib/tevent/wscript | 5 +++++ source4/lib/ldb/wscript | 6 ++++++ 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/lib/talloc/wscript b/lib/talloc/wscript index e24314b7d16..fadb4590ccb 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -61,7 +61,8 @@ def build(bld): bld.PKG_CONFIG_FILES('talloc.pc', vnum=VERSION) -def dist(): - '''makes a tarball for distribution''' - samba_dist.dist() - +def test(ctx): + '''run talloc testsuite''' + import Utils + cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite') + os.system(cmd) diff --git a/lib/tdb/wscript b/lib/tdb/wscript index aff395f7fcc..90fa191bf83 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -70,3 +70,9 @@ def build(bld): enabled=s4_build, realname='tdb.so') + +def test(ctx): + '''run tdb testsuite''' + import Utils + cmd = os.path.join(Utils.g_module.blddir, 'tdbtorture') + os.system(cmd) diff --git a/lib/tevent/wscript b/lib/tevent/wscript index d9634f452ad..9f7e25d241e 100644 --- a/lib/tevent/wscript +++ b/lib/tevent/wscript @@ -53,3 +53,8 @@ def build(bld): deps='replace talloc', enabled= not bld.CONFIG_SET('USING_SYSTEM_TEVENT'), vnum=VERSION) + +def test(ctx): + '''test tevent''' + print("The tevent testsuite is part of smbtorture in samba4") + diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index da83b7c26f8..971c6688f30 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -174,3 +174,9 @@ def build(bld): deps='ldb', realname='ldb.so') + +def test(ctx): + '''run ldb testsuite''' + import Utils + cmd = 'tests/test-tdb.sh' + os.system(cmd) -- 2.34.1