summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-15 08:28:20 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-15 09:34:02 +0200
commit2fd0137a87cdefb5626f5537201af8f93eb0be8b (patch)
treeae793dc9c111a0fa154d5f2b59e2c0f3c474b604 /source4/selftest/wscript
parent0bda3bae4cd68285e106261ffe79a1da1f778861 (diff)
downloadsamba-2fd0137a87cdefb5626f5537201af8f93eb0be8b.tar.gz
samba-2fd0137a87cdefb5626f5537201af8f93eb0be8b.tar.bz2
samba-2fd0137a87cdefb5626f5537201af8f93eb0be8b.zip
s4:selftest/wscript: --enable-selftest and --with-selftest-prefix are configure options
metze
Diffstat (limited to 'source4/selftest/wscript')
-rw-r--r--source4/selftest/wscript18
1 files changed, 10 insertions, 8 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index f273e69e65..50c0f52c17 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -7,20 +7,22 @@ from samba_utils import *
from samba_autoconf import *
def set_options(opt):
+
+ opt.add_option('--enable-selftest',
+ help=("enable options necessary for selftest (default=no)"),
+ action="store_true", dest='enable_selftest', default=False)
+ opt.add_option('--with-selftest-prefix',
+ help=("specify location of selftest directory (default=./st)"),
+ action="store", dest='SELFTEST_PREFIX', default='./st')
+
opt.ADD_COMMAND('test', cmd_test)
opt.ADD_COMMAND('testonly', cmd_testonly)
gr = opt.add_option_group('test options')
- gr.add_option('--enable-selftest',
- help=("enable options necessary for selftest"),
- action="store_true", dest='enable_selftest', default=False)
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('--with-selftest-prefix',
- help=("specify location of selftest directory"),
- action="store", dest='SELFTEST_PREFIX', default='./st')
gr.add_option('--tests',
help=("wildcard pattern of tests to run"),
action="store", dest='TESTS', default='')
@@ -49,6 +51,8 @@ def set_options(opt):
help=("run the testsuite within a gdb xterm window"),
action="store_true", dest='GDBTEST', default=False)
+def configure(conf):
+ conf.env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX
def cmd_testonly(opt):
'''run tests without doing a build first'''
@@ -95,8 +99,6 @@ def cmd_testonly(opt):
if Options.options.GDBTEST:
os.environ['SAMBA_VALGRIND'] = 'xterm -n server -e ../selftest/gdb_run DUMMY=X'
- env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX
-
# this is needed for systems without rpath, or with rpath disabled
ADD_LD_LIBRARY_PATH('bin/shared')