Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / v2 / test / core_action_status.py
1 #!/usr/bin/python
2
3 # Copyright 2007 Rene Rivera.
4 # Copyright 2011 Steven Watanabe
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) 
7
8 import BoostBuild
9
10 t = BoostBuild.Tester(pass_toolset=0)
11
12 t.write("file.jam", """
13     actions quietly .a. { $(ACTION) }
14
15     rule .a.
16     {
17         DEPENDS $(<) : $(>) ;
18     }
19
20     NOTFILE subtest ;
21     .a. subtest_a : subtest ;
22     DEPENDS all : subtest_a ;
23 """)
24
25 t.run_build_system("-ffile.jam -sACTION=invalid", status=1)
26
27 t.cleanup()