]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/direct_request_test.py
5 t
= BoostBuild
.Tester(use_test_config
=False)
7 # First check some startup.
9 t
.write("jamroot.jam", "")
10 t
.write("jamfile.jam", """\
34 int __declspec(dllexport) force_implib_creation;
38 t
.run_build_system(["define=MACROS"])
39 t
.expect_addition("bin/$toolset/debug/"
40 * (BoostBuild
.List("a.obj b.obj b.dll a.exe")))
43 # When building a debug version, the 'define' still applies.
45 t
.run_build_system(["debug", "define=MACROS"])
46 t
.expect_addition("bin/$toolset/debug/"
47 * (BoostBuild
.List("a.obj b.obj b.dll a.exe")))
50 # When building a release version, the 'define' still applies.
51 t
.write("jamfile.jam", """\
52 exe a : a.cpp b : <variant>debug ;
56 t
.run_build_system(["release", "define=MACROS"])
59 # Regression test: direct build request was not working when there was more
60 # than one level of 'build-project'.
62 t
.write("jamroot.jam", "")
63 t
.write("jamfile.jam", "build-project a ;")
64 t
.write("a/jamfile.jam", "build-project b ;")
65 t
.write("a/b/jamfile.jam", "")
66 t
.run_build_system(["release"])