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