Last change
on this file since 12 was
12,
checked in by landauf, 18 years ago
|
added boost
|
-
Property svn:executable set to
*
|
File size:
958 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and |
---|
4 | # distribute this software is granted provided this copyright notice appears in |
---|
5 | # all copies. This software is provided "as is" without express or implied |
---|
6 | # warranty, and with no claim as to its suitability for any purpose. |
---|
7 | |
---|
8 | # This file is template for Boost.Build tests. It creates a simple |
---|
9 | # project that builds one exe from one source, and checks that the exe |
---|
10 | # is really created. |
---|
11 | from BoostBuild import Tester, List |
---|
12 | |
---|
13 | t = Tester() |
---|
14 | |
---|
15 | t.write("project-root.jam", "") |
---|
16 | t.write("Jamfile", """ |
---|
17 | |
---|
18 | exe hello : hello.cpp ; |
---|
19 | exe hello2 : hello.cpp ; |
---|
20 | |
---|
21 | explicit hello2 ; |
---|
22 | """) |
---|
23 | t.write("hello.cpp", """ |
---|
24 | int main() |
---|
25 | { |
---|
26 | return 0; |
---|
27 | } |
---|
28 | |
---|
29 | """) |
---|
30 | |
---|
31 | t.run_build_system() |
---|
32 | t.ignore("*.tds") |
---|
33 | t.expect_addition(List("bin/$toolset/debug/hello") * [".exe", ".obj"]) |
---|
34 | t.expect_nothing_more() |
---|
35 | |
---|
36 | t.run_build_system("hello2") |
---|
37 | t.expect_addition("bin/$toolset/debug/hello2.exe") |
---|
38 | |
---|
39 | |
---|
40 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.