summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-09 20:44:09 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-09 20:44:25 +1000
commita591b8497d53aaa45c316c722e58d94f77420955 (patch)
tree82c1481519a869948791edd66d1c7858c4d98022 /source4/selftest
parent0b8a3a4036f3dfc59a39ae4b6364f93a66a40415 (diff)
downloadsamba-a591b8497d53aaa45c316c722e58d94f77420955.tar.gz
samba-a591b8497d53aaa45c316c722e58d94f77420955.tar.bz2
samba-a591b8497d53aaa45c316c722e58d94f77420955.zip
s4-waf: added --gdbtest option for waf test
Diffstat (limited to 'source4/selftest')
-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