Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/unit_test.py @ 32

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