mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-waf: added simple 'waf test' support for tdb, talloc and ldb
This commit is contained in:
parent
7d34210772
commit
fe060c8f50
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user