Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/dependency_property.py @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.1 KB
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# Regression test: virtual targets with different dependency properties
9# were considered different by 'virtual-target.register', but the code
10# which determined target paths ignored dependency properties --- so both
11# targets used to be placed to the same location.
12
13from BoostBuild import Tester, List
14from string import find
15
16
17t = Tester()
18
19t.write("project-root.jam", "")
20t.write("Jamfile", """
21lib foo : foo.cpp ;
22exe hello : hello.cpp ;
23exe hello2 : hello.cpp : <library>foo ;
24""")
25t.write("hello.cpp", """
26int main()
27{
28    return 0;
29}
30
31""")
32t.write("foo.cpp", """
33#ifdef _WIN32
34__declspec(dllexport)
35#endif
36void foo() {}
37""")
38
39t.run_build_system("--no-error-backtrace", status=1)
40t.fail_test(find(t.stdout(), "Duplicate name of actual target") == -1)
41
42t.cleanup()
Note: See TracBrowser for help on using the repository browser.