mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 13:22:11 +00:00
* new/build-request.jam (expand-with-defaults): New rule
* new/build-system.jam, new/targets.jam: Use 'expand-with-defaults' instead
of 'expand'.
* new/builtin.jam: Define new feature 'threading'.
* test/project_test3.py: Test that feature defaults are applied.
[SVN r14307]
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
#!/usr/bin/python
|
|
|
|
from BoostBuild import Tester
|
|
import os
|
|
from string import strip
|
|
|
|
t = Tester()
|
|
|
|
# First check some startup
|
|
t.set_tree("project-test3")
|
|
os.remove("project-root.jam")
|
|
t.run_build_system(status=1, stdout=
|
|
"""Failed to find the project root for directory '.'.
|
|
Did not find a project-root.jam file there or in any of its parent directories.
|
|
Please consult the documentation at 'http://www.boost.org'.
|
|
""")
|
|
|
|
|
|
t.set_tree("project-test3")
|
|
t.run_build_system()
|
|
|
|
t.expect_addition("bin/gcc/debug/threading-single/a.obj")
|
|
t.expect_content("bin/gcc/debug/threading-single/a.obj",
|
|
"""gcc/debug/threading-single
|
|
a.cpp
|
|
""")
|
|
|
|
t.expect_addition("bin/gcc/debug/threading-single/a.exe")
|
|
t.expect_content("bin/gcc/debug/threading-single/a.exe",
|
|
"""gcc/debug/threading-single
|
|
bin/gcc/debug/threading-single/a.obj
|
|
""")
|
|
|
|
t.touch("a.cpp")
|
|
t.run_build_system()
|
|
t.expect_touch(["bin/gcc/debug/threading-single/a.obj", "bin/gcc/debug/threading-single/a.exe"])
|
|
|
|
|
|
t.run_build_system(extra_args="release optimization=off,on")
|
|
t.expect_addition([ "bin/gcc/release/threading-single/a.exe",
|
|
"bin/gcc/release/threading-single/a.obj",
|
|
"bin/gcc/release/optimization-off/threading-single/a.exe",
|
|
"bin/gcc/release/optimization-off/threading-single/a.obj"])
|