]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:selftest: add --socket-wrapper[-keep]-pcap options to "waf test"
authorStefan Metzmacher <metze@samba.org>
Sat, 8 May 2010 11:55:25 +0000 (13:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 May 2010 10:20:26 +0000 (12:20 +0200)
metze

source4/selftest/wscript

index 50c0f52c171f8143e97fa3021c03487d62e29051..5e42e6fb67c15e2d66cb1e04a05f69602fd0d4c9 100644 (file)
@@ -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'