summaryrefslogtreecommitdiff
path: root/source4/selftest/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest/wscript')
-rw-r--r--source4/selftest/wscript16
1 files changed, 10 insertions, 6 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index 06ccc565d2..e6628fd0a4 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -3,12 +3,7 @@
import Scripting, os, Options, Utils, Environment, optparse
-########################################################################
-# main test entry point
-def cmd_test(opt):
- '''Run the quick test suite'''
- print "Starting quick test"
- Scripting.commands += ['build']
+def cmd_testonly(opt):
env = Environment.Environment()
env.TESTS = Options.options.TESTS
@@ -23,8 +18,17 @@ def cmd_test(opt):
print "test: running %s" % cmd
ret = os.system(cmd)
+########################################################################
+# main test entry point
+def cmd_test(opt):
+ '''Run the quick test suite'''
+ print "Starting quick test"
+ Scripting.commands.append('build')
+ Scripting.commands.append('testonly')
+
def set_options(opt):
opt.ADD_COMMAND('test', cmd_test)
+ opt.ADD_COMMAND('testonly', cmd_testonly)
gr = opt.add_option_group('test options')