Last change
on this file since 12 was
12,
checked in by landauf, 17 years ago
|
added boost
|
-
Property svn:executable set to
*
|
File size:
833 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright Vladimir Prus 2005. |
---|
4 | # Distributed under the Boost Software License, Version 1.0. |
---|
5 | # (See accompanying file LICENSE_1_0.txt |
---|
6 | # or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | # Regression test. When Jamfile contained "using whatever ; " and the |
---|
9 | # 'whatever' module declared a project, then all targets in Jamfile were |
---|
10 | # considered to be declared in the project associated with 'whatever', |
---|
11 | # not with the Jamfile. |
---|
12 | |
---|
13 | from BoostBuild import Tester, List |
---|
14 | |
---|
15 | |
---|
16 | t = Tester() |
---|
17 | # Remove temporary directories |
---|
18 | |
---|
19 | t.write("a.cpp", """ |
---|
20 | int main() { return 0; } |
---|
21 | |
---|
22 | """) |
---|
23 | |
---|
24 | t.write("Jamroot", """ |
---|
25 | using some_tool ; |
---|
26 | exe a : a.cpp ; |
---|
27 | """) |
---|
28 | |
---|
29 | t.write("some_tool.jam", """ |
---|
30 | import project ; |
---|
31 | project.initialize $(__name__) ; |
---|
32 | |
---|
33 | rule init ( ) |
---|
34 | { |
---|
35 | } |
---|
36 | |
---|
37 | """) |
---|
38 | |
---|
39 | t.run_build_system() |
---|
40 | t.expect_addition("bin/$toolset/debug/a.exe") |
---|
41 | |
---|
42 | t.cleanup() |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.