3 # Copyright 2011 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)
11 t = BoostBuild.Tester(pass_toolset=0)
13 t.write("file.jam", """
16 EXIT file: "@(o$(name) .txt:E= test -D$(contents))" : 0 ;
19 t.run_build_system("-ffile.jam")
20 t.expect_output_line("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", """
30 echo file: "@(o$(name) .txt:E= test -D$(contents))"
37 t.run_build_system("-ffile.jam -d2")
38 t.expect_output_line('echo file: "on1 on2 .txt"');
39 t.expect_addition("on1 on2 .txt")
40 t.expect_content("on1 on2 .txt", " test -DM1 -DM2", True)
44 t.write("file.jam", """
47 file = "@($(STDOUT):E= test -D$(contents)\n)" ;
56 t.run_build_system("-ffile.jam -d1")
57 t.expect_output_line(" test -DM1 -DM2")
61 t.write("file.jam", """
65 @($(STDOUT):E= test -D$(contents)\n)
72 t.run_build_system("-ffile.jam -d1")
73 t.expect_output_line(" test -DM1 -DM2")