summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-09 14:46:09 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-10 03:04:06 +0100
commite6974b0ff0100bb292d57e58ae11bc2e6b0d4053 (patch)
treefd706e73123eb34c6a3050b9bfb3b9eac6422f6a /source4/selftest
parent34adc745efa242b7e4167b581d6770560e759e40 (diff)
downloadsamba-e6974b0ff0100bb292d57e58ae11bc2e6b0d4053.tar.gz
samba-e6974b0ff0100bb292d57e58ae11bc2e6b0d4053.tar.bz2
samba-e6974b0ff0100bb292d57e58ae11bc2e6b0d4053.zip
selftest: add --list option.
Diffstat (limited to 'source4/selftest')
-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: