1#!/usr/local/bin/python3.8 2 3# Copyright 2012 Steven Watanabe 4# Distributed under the Boost Software License, Version 1.0. 5# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 6 7import BoostBuild 8import os 9 10t = BoostBuild.Tester(pass_toolset=0) 11 12t.write("link-target", "") 13os.symlink("link-target", "link") 14 15t.write("file.jam", """ 16ECHO [ READLINK link ] ; 17EXIT [ READLINK link-target ] : 0 ; 18""") 19 20t.run_build_system(["-ffile.jam"], stdout="""link-target 21 22""") 23 24t.cleanup() 25