3 # Copyright 2003 Vladimir Prus
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)
7 # This tests the "existing" and "updated" modifiers on actions.
12 t = BoostBuild.Tester(pass_toolset=0)
19 actions existing make-a
23 make-a a : a-1 a-2 a-3 ;
24 DEPENDS a : a-1 a-2 a-3 ;
34 t.write("file.jam", code)
37 t.run_build_system("-ffile.jam")
38 t.fail_test(string.strip(t.read("list")) != "a-1")
41 code = string.replace(code, "existing", "updated")
42 t.write("file.jam", code)
43 t.run_build_system("-ffile.jam")
44 t.fail_test(string.strip(t.read("list")) != "a-3")
46 code = string.replace(code, "updated", "existing updated")
47 t.write("file.jam", code)
48 t.run_build_system("-ffile.jam")
49 t.fail_test(string.strip(t.read("list")) != "a-1 a-3")