Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/skipping.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: 731 bytes
Line 
1#!/usr/bin/python
2
3# Copyright 2003 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 that V2 does not fail gracelessy when any target is skipped.
8from BoostBuild import Tester, List
9
10# Create a temporary working directory
11t = Tester()
12t.write("a.cpp", """
13int main() {}
14""")
15
16t.write("b.cpp", """
17int main() {}
18""")
19
20t.write("c.cpp", """
21int main() {}
22""")
23
24t.write("Jamfile", """
25import feature : feature ;
26
27feature foo : 1 2 : link-incompatible ;
28
29exe a : a.cpp : <foo>1 ;
30exe b : b.cpp : <foo>2 ;
31exe c : c.cpp ;
32""")
33
34t.write("project-root.jam", """
35""")
36
37t.run_build_system("foo=1")
38
39t.cleanup()
40
Note: See TracBrowser for help on using the repository browser.