mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
* new/build-request.jam (from-command-line): New rule.
* new/build-system.jam: Get build request from the command line,
expand it and pass to 'generate' rules.
* new/targets.jam: Use targets's properties when computing path.
* test/project_test3.py: Test the above changes.
[SVN r14283]
43 lines
978 B
Python
43 lines
978 B
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/debug/a.obj")
|
|
t.expect_content("bin/debug/a.obj",
|
|
"""debug
|
|
a.cpp
|
|
""")
|
|
|
|
t.expect_addition("bin/debug/a.exe")
|
|
t.expect_content("bin/debug/a.exe",
|
|
"""debug
|
|
bin/debug/a.obj
|
|
""")
|
|
|
|
t.touch("a.cpp")
|
|
t.run_build_system()
|
|
t.expect_touch(["bin/debug/a.obj", "bin/debug/a.exe"])
|
|
|
|
|
|
t.run_build_system(extra_args="release optimization=off,on")
|
|
t.expect_addition(["bin/release/a.exe", "bin/release/a.obj",
|
|
"bin/release/optimization-off/a.exe",
|
|
"bin/release/optimization-off/a.obj"])
|