summaryrefslogtreecommitdiff
path: root/lib/ldb/wscript
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-06-08 14:17:12 +0200
committerStefan Metzmacher <metze@samba.org>2015-11-05 18:04:23 +0100
commitc54fc3f2b6479a5c48d801626fb01f68da6894c7 (patch)
tree3569d769e0a7c434c350192c7bc2d741b0ebb715 /lib/ldb/wscript
parent9884a8fa58ffc8ddff0977c069aedda3beb6415f (diff)
downloadsamba-c54fc3f2b6479a5c48d801626fb01f68da6894c7.tar.gz
ldb: Run the Python testsuite
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/ldb/wscript')
-rwxr-xr-xlib/ldb/wscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/ldb/wscript b/lib/ldb/wscript
index 70b84cbe065..8322a56997b 100755
--- a/lib/ldb/wscript
+++ b/lib/ldb/wscript
@@ -284,8 +284,15 @@ def test(ctx):
cmd = 'tests/test-tdb.sh %s' % Utils.g_module.blddir
ret = samba_utils.RUN_COMMAND(cmd)
print("testsuite returned %d" % ret)
- # FIXME: Run python testsuite
- sys.exit(ret)
+
+ tmp_dir = os.path.join(test_prefix, 'tmp')
+ if not os.path.exists(tmp_dir):
+ os.mkdir(tmp_dir)
+ pyret = samba_utils.RUN_PYTHON_TESTS(
+ ['tests/python/api.py'],
+ extra_env={'SELFTEST_PREFIX': test_prefix})
+ print("Python testsuite returned %d" % pyret)
+ sys.exit(ret or pyret)
def dist():
'''makes a tarball for distribution'''