From 8a5c01a04925e6dad11260fbccdcc94f3a354a37 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 Mar 2010 18:03:55 +1100 Subject: build: waf test now depends on build --- source4/selftest/wscript | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'source4/selftest') 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') -- cgit