]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/usr/bin/python |
2 | ||
3 | # Copyright (C) Vladimir Prus 2005. | |
4 | # Distributed under the Boost Software License, Version 1.0. (See | |
5 | # accompanying file LICENSE_1_0.txt or copy at | |
6 | # http://www.boost.org/LICENSE_1_0.txt) | |
7 | ||
8 | import BoostBuild | |
9 | ||
10 | t = BoostBuild.Tester(use_test_config=False) | |
11 | ||
12 | t.write("jamroot.jam", "using some_tool ;") | |
13 | t.write("some_tool.jam", """\ | |
14 | import project ; | |
15 | project.initialize $(__name__) ; | |
16 | rule init ( ) { } | |
17 | """) | |
18 | ||
19 | t.write("some_tool.py", """\ | |
20 | from b2.manager import get_manager | |
21 | get_manager().projects().initialize(__name__) | |
22 | def init(): | |
23 | pass | |
24 | """) | |
25 | ||
26 | t.write("sub/a.cpp", "int main() {}\n") | |
27 | t.write("sub/jamfile.jam", "exe a : a.cpp ;") | |
28 | ||
29 | t.run_build_system(subdir="sub") | |
b32b8144 | 30 | t.expect_addition("sub/bin/$toolset/debug*/a.exe") |
7c673cae FG |
31 | |
32 | t.cleanup() |