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:
883 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 | # Test the unit_test rule |
---|
9 | from BoostBuild import Tester, List |
---|
10 | |
---|
11 | t = Tester() |
---|
12 | |
---|
13 | # Create the needed files |
---|
14 | t.write("project-root.jam", """ |
---|
15 | using testing ; |
---|
16 | """) |
---|
17 | t.write("Jamfile", """ |
---|
18 | lib helper : helper.cpp ; |
---|
19 | unit-test test : test.cpp : <library>helper ; |
---|
20 | """) |
---|
21 | t.write("test.cpp", """ |
---|
22 | void helper(); |
---|
23 | int main() |
---|
24 | { |
---|
25 | helper(); |
---|
26 | return 0; |
---|
27 | } |
---|
28 | """) |
---|
29 | |
---|
30 | t.write("helper.cpp", """ |
---|
31 | void |
---|
32 | #if defined(_WIN32) |
---|
33 | __declspec(dllexport) |
---|
34 | #endif |
---|
35 | helper() {} |
---|
36 | """) |
---|
37 | |
---|
38 | t.run_build_system("link=static") |
---|
39 | t.expect_addition("bin/$toolset/debug/link-static/test.passed") |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.