1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

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>
This commit is contained in:
Andrew Tridgell 2011-11-09 13:08:37 +11:00
parent 58457e6cd2
commit a04eac7aa2
2 changed files with 11 additions and 4 deletions

View File

@ -13,20 +13,20 @@ uninstall:
$(WAF) uninstall $(WAF) uninstall
test: test:
$(WAF) test --dup-symbol-check $(TEST_OPTIONS) $(WAF) test $(TEST_OPTIONS)
help: help:
@echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
$(WAF) --help $(WAF) --help
subunit-test: subunit-test:
$(WAF) test --dup-symbol-check --filtered-subunit $(TEST_OPTIONS) $(WAF) test --filtered-subunit $(TEST_OPTIONS)
testenv: testenv:
$(WAF) test --dup-symbol-check --testenv $(TEST_OPTIONS) $(WAF) test --testenv $(TEST_OPTIONS)
quicktest: quicktest:
$(WAF) test --dup-symbol-check --quick $(TEST_OPTIONS) $(WAF) test --quick $(TEST_OPTIONS)
dist: dist:
touch .tmplock touch .tmplock

View File

@ -205,5 +205,12 @@ def cmd_testonly(opt):
# main test entry point # main test entry point
def cmd_test(opt): def cmd_test(opt):
'''Run the test suite (see test options below)''' '''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('build')
Scripting.commands.append('testonly') Scripting.commands.append('testonly')