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:
760 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright 2003, 2004 Vladimir Prus |
---|
4 | # Distributed under the Boost Software License, Version 1.0. |
---|
5 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
6 | |
---|
7 | # Test the unit_test rule |
---|
8 | from BoostBuild import Tester, List |
---|
9 | |
---|
10 | t = Tester() |
---|
11 | |
---|
12 | # Create the needed files |
---|
13 | t.write("project-root.jam", """ |
---|
14 | using testing ; |
---|
15 | """) |
---|
16 | t.write("Jamfile", """ |
---|
17 | lib helper : helper.cpp ; |
---|
18 | unit-test test : test.cpp : <library>helper ; |
---|
19 | """) |
---|
20 | t.write("test.cpp", """ |
---|
21 | void helper(); |
---|
22 | int main() |
---|
23 | { |
---|
24 | helper(); |
---|
25 | return 0; |
---|
26 | } |
---|
27 | """) |
---|
28 | |
---|
29 | t.write("helper.cpp", """ |
---|
30 | void |
---|
31 | #if defined(_WIN32) |
---|
32 | __declspec(dllexport) |
---|
33 | #endif |
---|
34 | helper() {} |
---|
35 | """) |
---|
36 | |
---|
37 | t.run_build_system("link=static") |
---|
38 | t.expect_addition("bin/$toolset/debug/link-static/test.passed") |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.