summaryrefslogtreecommitdiff
path: root/selftest/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-11-09 13:08:37 +1100
committerAndrew Tridgell <tridge@samba.org>2011-11-10 14:24:21 +1100
commita04eac7aa2f5f9388cf92a8a79e0bd6938f8fd22 (patch)
tree983b65942739252e418c50db4c182e5f589cc5e4 /selftest/wscript
parent58457e6cd23fc2661c464a2ab5b136ee6611b242 (diff)
downloadsamba-a04eac7aa2f5f9388cf92a8a79e0bd6938f8fd22.tar.gz
samba-a04eac7aa2f5f9388cf92a8a79e0bd6938f8fd22.tar.bz2
samba-a04eac7aa2f5f9388cf92a8a79e0bd6938f8fd22.zip
build: only run symbol checking if running all tests
this makes it much faster to run 1 test Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'selftest/wscript')
-rw-r--r--selftest/wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/selftest/wscript b/selftest/wscript
index 4d3d8f2841..b469709a8a 100644
--- a/selftest/wscript
+++ b/selftest/wscript
@@ -205,5 +205,12 @@ def cmd_testonly(opt):
# main test entry point
def cmd_test(opt):
'''Run the test suite (see test options below)'''
+
+ # if running all tests, then force a symbol check
+ env = LOAD_ENVIRONMENT()
+ CHECK_MAKEFLAGS(env)
+ if not Options.options.TESTS:
+ Options.options.DUP_SYMBOLCHECK = True
+
Scripting.commands.append('build')
Scripting.commands.append('testonly')