Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/symlink.py @ 12

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