]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/make_rule.py
3 # Copyright 2003 Dave Abrahams
4 # Copyright 2003, 2006 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 'make' rule.
13 t
= BoostBuild
.Tester(pass_toolset
=1)
15 t
.write("jamroot.jam", """\
17 feature.feature test_feature : : free ;
20 toolset.flags creator STRING : <test_feature> ;
27 make foo.bar : : creator : <test_feature>12345678 ;
31 t
.expect_addition("bin/foo.bar")
32 t
.fail_test(string
.find(t
.read("bin/foo.bar"), "12345678") == -1)
35 # Regression test. Make sure that if a main target is requested two times, and
36 # build requests differ only in incidental properties, the main target is
37 # created only once. The bug was discovered by Kirill Lapshin.
38 t
.write("jamroot.jam", """\
39 exe a : dir//hello1.cpp ;
40 exe b : dir//hello1.cpp/<hardcode-dll-paths>true ;
43 t
.write("dir/jamfile.jam", """\
45 make hello1.cpp : hello.cpp : common.copy ;
48 t
.write("dir/hello.cpp", "int main() {}\n")
50 # Show only action names.
51 t
.run_build_system(["-d1", "-n"])
52 t
.fail_test(t
.stdout().count("copy") != 1)