]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/symlink.py
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)
8 # Test the 'symlink' rule.
10 from __future__
import print_function
16 if os
.name
!= 'posix':
17 print("The symlink tests can be run on posix only.")
22 t
= BoostBuild
.Tester(use_test_config
=False)
24 t
.write("jamroot.jam", "import gcc ;")
26 t
.write("jamfile.jam", """
27 exe hello : hello.cpp ;
28 symlink hello_release : hello/<variant>release ;
29 symlink hello_debug : hello/<variant>debug ;
30 symlink links/hello_release : hello/<variant>release ;
33 t
.write("hello.cpp", """
41 'links/hello_release.exe'])