]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/builtin_exit.py
3 # Copyright 2012 Steven Watanabe
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
7 # This tests the EXIT rule.
12 t
= BoostBuild
.Tester(["-ffile.jam"], pass_toolset
=0)
14 t
.write("file.jam", "%s ;" % name
)
15 t
.run_build_system(status
=1, stdout
="\n")
18 t
.write("file.jam", "%s : 0 ;" % name
)
19 t
.run_build_system(stdout
="\n")
22 t
.write("file.jam", "%s : 1 ;" % name
)
23 t
.run_build_system(status
=1, stdout
="\n")
26 t
.write("file.jam", "%s : 2 ;" % name
)
27 t
.run_build_system(status
=2, stdout
="\n")
30 t
.write("file.jam", "%s a message ;" % name
)
31 t
.run_build_system(status
=1, stdout
="a message\n")
34 t
.write("file.jam", "%s a message : 0 ;" % name
)
35 t
.run_build_system(stdout
="a message\n")