Last change
on this file since 32 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
991 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2004. 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 | # Tests that on gcc, we correctly report problem when static runtime |
---|
9 | # is requested when building DLL. |
---|
10 | from BoostBuild import Tester, List |
---|
11 | import string |
---|
12 | |
---|
13 | t = Tester() |
---|
14 | |
---|
15 | # Create the needed files |
---|
16 | t.write("project-root.jam", "") |
---|
17 | t.write("Jamfile", """ |
---|
18 | lib hello : hello.cpp ; |
---|
19 | """) |
---|
20 | t.write("hello.cpp", """ |
---|
21 | int main() |
---|
22 | { |
---|
23 | return 0; |
---|
24 | } |
---|
25 | """) |
---|
26 | |
---|
27 | t.run_build_system("runtime-link=static", status=1) |
---|
28 | t.fail_test(string.find(t.stdout(), |
---|
29 | "on gcc, DLL can't be build with <runtime-link>static") == -1) |
---|
30 | |
---|
31 | t.run_build_system("link=static runtime-link=static") |
---|
32 | t.expect_addition("bin/$toolset/debug/link-static/runtime-link-static/hello.lib") |
---|
33 | |
---|
34 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.