Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/symlink.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: 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
10from BoostBuild import Tester, List
11import os
12t = Tester()
13
14if os.name != 'posix':
15    print "The symlink tests can be run on posix only"
16    sys.exit(1)
17
18t.write("project-root.jam", "import gcc ;")
19t.write("Jamfile", """
20exe hello : hello.cpp ;
21symlink hello_release : hello/<variant>release ;
22symlink hello_debug : hello/<variant>debug ;
23symlink links/hello_release : hello/<variant>release ;
24""")
25t.write("hello.cpp", """
26int main()
27{
28    return 0;
29}
30""")
31
32t.run_build_system()
33t.expect_addition(List('hello_debug.exe hello_release.exe links/hello_release.exe'))
34
35
36t.cleanup()
Note: See TracBrowser for help on using the repository browser.