summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest/wscript')
-rw-r--r--source4/selftest/wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index e1d07d5093..b0ad3d4091 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -45,6 +45,9 @@ def set_options(opt):
gr.add_option('--valgrind-server',
help=("use valgrind on the server in the tests (opens an xterm)"),
action="store_true", dest='VALGRIND_SERVER', default=False)
+ gr.add_option('--gdbtest',
+ help=("run the testsuite within a gdb xterm window"),
+ action="store_true", dest='GDBTEST', default=False)
def cmd_testonly(opt):
@@ -87,7 +90,10 @@ def cmd_testonly(opt):
os.environ['VALGRIND'] += ' --log-file=%s' % Options.options.VALGRINDLOG
if Options.options.VALGRIND_SERVER:
- os.environ['SAMBA_VALGRIND'] = 'xterm -n server -e ../selftest/valgrind_run A=B '
+ os.environ['SAMBA_VALGRIND'] = 'xterm -n server -e ../selftest/valgrind_run DUMMY=X'
+
+ if Options.options.GDBTEST:
+ os.environ['SAMBA_VALGRIND'] = 'xterm -n server -e ../selftest/gdb_run DUMMY=X'
env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX