]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/core_at_file.py
3 # Copyright 2011 Steven Watanabe
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
11 t
= BoostBuild
.Tester(["-ffile.jam"], pass_toolset
=0)
13 t
.write("file.jam", """\
16 EXIT file: "@(o$(name) .txt:E= test -D$(contents))" : 0 ;
20 t
.expect_output_lines("file: on1 on2 .txt");
21 t
.expect_addition("on1 on2 .txt")
22 t
.expect_content("on1 on2 .txt", " test -DM1 -DM2", True)
26 t
.write("file.jam", """\
29 actions run { echo file: "@(o$(name) .txt:E= test -D$(contents))" }
33 t
.run_build_system(["-d2"])
34 t
.expect_output_lines(' echo file: "on1 on2 .txt" ');
35 t
.expect_addition("on1 on2 .txt")
36 t
.expect_content("on1 on2 .txt", " test -DM1 -DM2", True)
40 t
.write("file.jam", """\
43 file = "@($(STDOUT):E= test -D$(contents)\n)" ;
44 actions run { $(file) }
48 t
.run_build_system(["-d1"])
49 t
.expect_output_lines(" test -DM1 -DM2")
53 t
.write("file.jam", """\
56 actions run { @($(STDOUT):E= test -D$(contents)\n) }
60 t
.run_build_system(["-d1"])
61 t
.expect_output_lines(" test -DM1 -DM2")