default Build all default targets (like calling scons with no arguments)
examples Build all examples
all_tests Build and run unit tests for all modules
+test_changes Build tests only for files with local changes (queries svn or git)
all_docs Build documentation for all modules
all Build everything
install_all Install SENF into $$PREFIX
SConscript("HowTos/SConscript")
SConscript("doclib/SConscript")
if env['sparse_tests']:
- SparseTestHack.build(env, 'test_changes' in COMMAND_LINE_TARGETS)
+ verbose = 'test_changes' in COMMAND_LINE_TARGETS
+ SparseTestHack.build(env, verbose, verbose)
###########################################################################
# Define build targets
# This needs to be called after all build targets have been set
# up. This is important since the list of object targets needs to be
# complete.
-def build(env, accept_unknown_tests=False):
+def build(env, accept_unknown_tests=False, verbose=False):
env = env.Clone(LIBS = [ '$EXTRA_LIBS' ])
if env.has_key("only_tests"):
only_tests = {}
env.RealBoostUnitTest(target, objects, **kw)
+ if verbose and only_tests and not env.GetOption('no_progress'):
+ SCons.Util.display("scons: building tests: " + ", ".join("`%s'" % str(k)
+ for k,v in only_tests.iteritems()
+ if v))
if not accept_unknown_tests:
only_tests = [ k for k,v in only_tests.iteritems() if not v ]
if only_tests: