summaryrefslogtreecommitdiffstats
path: root/source4/selftest
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-15 18:03:55 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:48 +1000
commit8a5c01a04925e6dad11260fbccdcc94f3a354a37 (patch)
tree6670d9f836807ac20d729ac6b468729deb2be33e /source4/selftest
parent05bda767c59107d9fa01d8f7f59adad3d19589fd (diff)
downloadsamba-8a5c01a04925e6dad11260fbccdcc94f3a354a37.tar.gz
samba-8a5c01a04925e6dad11260fbccdcc94f3a354a37.tar.xz
samba-8a5c01a04925e6dad11260fbccdcc94f3a354a37.zip
build: waf test now depends on build
Diffstat (limited to 'source4/selftest')
-rw-r--r--source4/selftest/wscript16
1 files changed, 10 insertions, 6 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index 06ccc565d21..e6628fd0a4e 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')