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:
641 bytes
|
Line | |
---|
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 | from BoostBuild import Tester, List |
---|
9 | import string |
---|
10 | |
---|
11 | t = Tester() |
---|
12 | |
---|
13 | t.write("sub/a.cpp", """ |
---|
14 | int main() { return 0; } |
---|
15 | |
---|
16 | """) |
---|
17 | |
---|
18 | t.write("Jamroot", """ |
---|
19 | using some_tool ; |
---|
20 | """) |
---|
21 | |
---|
22 | t.write("some_tool.jam", """ |
---|
23 | import project ; |
---|
24 | project.initialize $(__name__) ; |
---|
25 | |
---|
26 | rule init ( ) |
---|
27 | { |
---|
28 | } |
---|
29 | |
---|
30 | """) |
---|
31 | |
---|
32 | t.write("sub/Jamfile", """ |
---|
33 | exe a : a.cpp ; |
---|
34 | """) |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | t.run_build_system(subdir="sub") |
---|
39 | |
---|
40 | t.expect_addition("sub/bin/$toolset/debug/a.exe") |
---|
41 | |
---|
42 | t.cleanup() |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.