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:
838 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright 2003 Dave Abrahams |
---|
4 | # Copyright 2003 Vladimir Prus |
---|
5 | # Distributed under the Boost Software License, Version 1.0. |
---|
6 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | # Test the 'symlink' rule |
---|
9 | |
---|
10 | from BoostBuild import Tester, List |
---|
11 | import os |
---|
12 | t = Tester() |
---|
13 | |
---|
14 | if os.name != 'posix': |
---|
15 | print "The symlink tests can be run on posix only" |
---|
16 | sys.exit(1) |
---|
17 | |
---|
18 | t.write("project-root.jam", "import gcc ;") |
---|
19 | t.write("Jamfile", """ |
---|
20 | exe hello : hello.cpp ; |
---|
21 | symlink hello_release : hello/<variant>release ; |
---|
22 | symlink hello_debug : hello/<variant>debug ; |
---|
23 | symlink links/hello_release : hello/<variant>release ; |
---|
24 | """) |
---|
25 | t.write("hello.cpp", """ |
---|
26 | int main() |
---|
27 | { |
---|
28 | return 0; |
---|
29 | } |
---|
30 | """) |
---|
31 | |
---|
32 | t.run_build_system() |
---|
33 | t.expect_addition(List('hello_debug.exe hello_release.exe links/hello_release.exe')) |
---|
34 | |
---|
35 | |
---|
36 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.