mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Run duplicate symbol check as just another test, rather than as part of "waf test".
This allows it to be scheduled independently as part of a parallel test run, and reduces the overhead of "waf test". Change-Id: I780fd2c4dd711ed27df73f56de98e7f1ffd53aaf Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=10875
This commit is contained in:
parent
d9458aa2d9
commit
c7b6897b80
12
buildtools/wafsamba/test_duplicate_symbol.sh
Executable file
12
buildtools/wafsamba/test_duplicate_symbol.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Run the waf duplicate symbol check, wrapped in subunit.
|
||||
|
||||
. lib/subunit/shell/share/subunit.sh
|
||||
|
||||
subunit_start_test duplicate_symbols
|
||||
|
||||
if ./buildtools/bin/waf build --dup-symbol-check; then
|
||||
subunit_pass_test duplicate_symbols
|
||||
else
|
||||
echo | subunit_fail_test duplicate_symbols
|
||||
fi
|
@ -92,3 +92,4 @@ planpythontestsuite("none", "samba.tests.upgradeprovision")
|
||||
planpythontestsuite("none", "samba.tests.xattr")
|
||||
planpythontestsuite("none", "samba.tests.ntacls")
|
||||
planpythontestsuite("none", "samba.tests.policy")
|
||||
plantestsuite("wafsamba.duplicate_symbols", "none", [os.path.join(srcdir(), "buildtools/wafsamba/test_duplicate_symbol.sh")])
|
||||
|
@ -243,8 +243,5 @@ def cmd_test(opt):
|
||||
# if running all tests, then force a symbol check
|
||||
env = LOAD_ENVIRONMENT()
|
||||
CHECK_MAKEFLAGS(env)
|
||||
if not Options.options.TESTS and not Options.options.TESTENV:
|
||||
Options.options.DUP_SYMBOLCHECK = True
|
||||
|
||||
Scripting.commands.append('build')
|
||||
Scripting.commands.append('testonly')
|
||||
|
Loading…
Reference in New Issue
Block a user