Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/loop.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: 762 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
8from BoostBuild import Tester, List
9from string import find
10
11t = Tester()
12
13
14t.write("project-root.jam", "")
15t.write("Jamfile", """
16
17lib main : main.cpp l ;
18lib l : l.cpp main ;
19""")
20
21t.write("main.cpp", "")
22t.write("l.cpp", "")
23
24t.run_build_system("--no-error-backtrace", status=1)
25t.fail_test(find(t.stdout(), "error: Recursion in main target references") == -1)
26t.fail_test(find(t.stdout(), "./main ./l ./main") == -1)
27
28t.cleanup()
Note: See TracBrowser for help on using the repository browser.