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:
628 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Test the 'symlink' rule |
---|
4 | |
---|
5 | from BoostBuild import Tester, List |
---|
6 | import os |
---|
7 | t = Tester() |
---|
8 | |
---|
9 | if os.name != 'posix': |
---|
10 | print "The symlink tests can be run on posix only" |
---|
11 | sys.exit(1) |
---|
12 | |
---|
13 | t.write("project-root.jam", "import gcc ;") |
---|
14 | t.write("Jamfile", """ |
---|
15 | exe hello : hello.cpp ; |
---|
16 | symlink hello_release : hello/<variant>release ; |
---|
17 | symlink hello_debug : hello/<variant>debug ; |
---|
18 | symlink links/hello_release : hello/<variant>release ; |
---|
19 | """) |
---|
20 | t.write("hello.cpp", """ |
---|
21 | int main() |
---|
22 | { |
---|
23 | return 0; |
---|
24 | } |
---|
25 | """) |
---|
26 | |
---|
27 | t.run_build_system() |
---|
28 | t.expect_addition(List('hello_debug.exe hello_release.exe links/hello_release.exe')) |
---|
29 | |
---|
30 | |
---|
31 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.