Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/unit_test.py @ 12

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