s4-waf: added simple 'waf test' support for tdb, talloc and ldb
authorAndrew Tridgell <tridge@samba.org>
Sun, 4 Apr 2010 12:11:30 +0000 (22:11 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:26 +0000 (20:27 +1000)
lib/talloc/wscript
lib/tdb/wscript
lib/tevent/wscript
source4/lib/ldb/wscript

index e24314b7d1636d777f8133d645a34ab192c30a29..fadb4590ccb2867740897cd479041628295a3204 100644 (file)
@@ -61,7 +61,8 @@ def build(bld):
         bld.PKG_CONFIG_FILES('talloc.pc', vnum=VERSION)
 
 
         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)
index aff395f7fcce4c94867f7d77f7ddda6d260c26c3..90fa191bf83fcf6708961560ca31a4aee1896c08 100644 (file)
@@ -70,3 +70,9 @@ def build(bld):
                      enabled=s4_build,
                      realname='tdb.so')
 
                      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)
index d9634f452ad46f52bb7b1bdf60ba3ad114718ac5..9f7e25d241ee30ee8796abb34f25a541ceab2294 100644 (file)
@@ -53,3 +53,8 @@ def build(bld):
                           deps='replace talloc',
                           enabled= not bld.CONFIG_SET('USING_SYSTEM_TEVENT'),
                           vnum=VERSION)
                           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")
+
index da83b7c26f875b151419db1598315b0c0634fd59..971c6688f30747648bc9a980688f7b7d70853997 100644 (file)
@@ -174,3 +174,9 @@ def build(bld):
                          deps='ldb',
                          realname='ldb.so')
 
                          deps='ldb',
                          realname='ldb.so')
 
+
+def test(ctx):
+    '''run ldb testsuite'''
+    import Utils
+    cmd = 'tests/test-tdb.sh'
+    os.system(cmd)