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/$toolset/debug/foo.bar")
32 t.fail_test(string.find(t.read("bin/$toolset/debug/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 # Make sure that incidental property does not cause second creation of
41 exe a : dir//hello1.cpp ;
42 exe b : dir//hello1.cpp/<hardcode-dll-paths>true ;
45 t.write("dir/jamfile.jam", """
47 make hello1.cpp : hello.cpp : common.copy ;
50 t.write("dir/hello.cpp", """
54 # Show only action names.
55 t.run_build_system("-d1 -n")
56 t.fail_test(t.stdout().count("copy") != 1)