Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

  • Property svn:executable set to *
File size: 860 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 that V2 does not fail gracelessy when any target is skipped.
9from BoostBuild import Tester, List
10
11# Create a temporary working directory
12t = Tester()
13t.write("a.cpp", """
14int main() {}
15""")
16
17t.write("b.cpp", """
18int main() {}
19""")
20
21t.write("c.cpp", """
22int main() {}
23""")
24
25t.write("Jamfile", """
26import feature : feature ;
27
28feature foo : 1 2 : link-incompatible ;
29
30exe a : a.cpp : <foo>1 ;
31exe b : b.cpp : <foo>2 ;
32exe c : c.cpp ;
33""")
34
35t.write("project-root.jam", """
36""")
37
38t.run_build_system("foo=1")
39
40t.cleanup()
41
Note: See TracBrowser for help on using the repository browser.