]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/core_d12.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / core_d12.py
1 #!/usr/bin/python
2
3 # Copyright 2002, 2003 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE.txt or copy at
6 # https://www.bfgroup.xyz/b2/LICENSE.txt)
7
8 # This tests correct handling of "-d1" and "-d2" options.
9
10 import BoostBuild
11
12 t = BoostBuild.Tester(["-ffile.jam"], pass_toolset=0)
13
14 t.write("file.jam", """\
15 actions a { }
16 actions quietly b { }
17 ALWAYS all ;
18 a all ;
19 b all ;
20 """)
21
22 t.run_build_system(["-d0"], stdout="")
23
24 t.run_build_system(["-d1"])
25 t.expect_output_lines("a all")
26 t.expect_output_lines("b all", False)
27
28 t.run_build_system(["-d2"])
29 t.expect_output_lines("a all")
30 t.expect_output_lines("b all")
31
32 t.cleanup()