summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-05-08 13:55:25 +0200
committerStefan Metzmacher <metze@samba.org>2010-05-10 12:20:26 +0200
commit47f74c89c99f6620e9029e87516aceb28f991ed0 (patch)
tree09cb0e9f6fa5be1c9bac71e8fcb68b52ddaf12bc /source4/selftest/wscript
parentf754942862f0405454834154154c4b3b737ba53a (diff)
downloadsamba-47f74c89c99f6620e9029e87516aceb28f991ed0.tar.gz
samba-47f74c89c99f6620e9029e87516aceb28f991ed0.tar.bz2
samba-47f74c89c99f6620e9029e87516aceb28f991ed0.zip
s4:selftest: add --socket-wrapper[-keep]-pcap options to "waf test"
metze
Diffstat (limited to 'source4/selftest/wscript')
-rw-r--r--source4/selftest/wscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index 50c0f52c17..5e42e6fb67 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -50,6 +50,12 @@ def set_options(opt):
gr.add_option('--gdbtest',
help=("run the testsuite within a gdb xterm window"),
action="store_true", dest='GDBTEST', default=False)
+ gr.add_option('--socket-wrapper-pcap',
+ help=("create a pcap file for each failing test"),
+ action="store_true", dest='SOCKET_WRAPPER_PCAP', default=False)
+ gr.add_option('--socket-wrapper-keep-pcap',
+ help=("create a pcap file for all individual test"),
+ action="store_true", dest='SOCKET_WRAPPER_KEEP_PCAP', default=False)
def configure(conf):
conf.env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX
@@ -80,6 +86,10 @@ def cmd_testonly(opt):
env.OPTIONS += ' --load-list=%s' % Options.options.LOAD_LIST
if Options.options.TESTENV:
env.OPTIONS += ' --testenv'
+ if Options.options.SOCKET_WRAPPER_PCAP:
+ env.OPTIONS += ' --socket-wrapper-pcap'
+ if Options.options.SOCKET_WRAPPER_KEEP_PCAP:
+ env.OPTIONS += ' --socket-wrapper-keep-pcap'
if os.environ.get('RUN_FROM_BUILD_FARM') is not None:
env.FILTER_OPTIONS = '${FILTER_XFAIL} --strip-passed-output'