mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
build: waf test now depends on build
This commit is contained in:
parent
05bda767c5
commit
8a5c01a049
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user