]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/core_parallel_multifile_actions_2.py
3 # Copyright 2008 Jurko Gospodnetic, Vladimir Prus
4 # Copyright 2011 Steven Watanabe
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 # Added to guard against a bug causing targets to be used before they
9 # themselves have finished building. This used to happen for targets built by a
10 # multi-file action that got triggered by another target, except when the
11 # target triggering the action was the first one in the list of targets
12 # produced by that action.
15 # When target A and target B were declared as created by a single action with
16 # A being the first one listed, and target B triggered running that action
17 # then, while the action was still running, target A was already reporting as
18 # being built causing other targets depending on target A to be built
23 t
= BoostBuild
.Tester(pass_toolset
=0)
25 t
.write("sleep.bat", """\
26 ::@timeout /T %1 /NOBREAK >nul
27 @ping 127.0.0.1 -n 2 -w 1000 >nul
28 @ping 127.0.0.1 -n %1 -w 1000 >nul
32 t
.write("file.jam", """\
35 SLEEP = @call sleep.bat ;
55 install installed_dll : dll ;
56 DEPENDS installed_dll : dll ;
58 DEPENDS all : lib installed_dll ;
61 t
.run_build_system(["-ffile.jam", "-j2"], stdout
="""\
63 ...updating 3 targets...
68 ...updated 3 targets...