summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest/wscript')
-rw-r--r--source4/selftest/wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index e6b75d10f4..7020779baf 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -24,6 +24,9 @@ def set_options(opt):
gr.add_option('--load-list',
help=("Load a test id list from a text file"),
action="store", dest='LOAD_LIST', default=None)
+ gr.add_option('--list',
+ help=("List available tests"),
+ action="store_true", dest='LIST', default=False)
gr.add_option('--tests',
help=("wildcard pattern of tests to run"),
action="store", dest='TESTS', default='')
@@ -111,7 +114,8 @@ def cmd_testonly(opt):
env.OPTIONS += ' --socket-wrapper-pcap'
if Options.options.SOCKET_WRAPPER_KEEP_PCAP:
env.OPTIONS += ' --socket-wrapper-keep-pcap'
-
+ if Options.options.LIST:
+ env.OPTIONS += ' --list'
if os.environ.get('RUN_FROM_BUILD_FARM') is not None:
env.FILTER_OPTIONS = '${FILTER_XFAIL} --strip-passed-output'
else: