core_d12.py

来自「Boost provides free peer-reviewed portab」· Python 代码 · 共 36 行

PY
36
字号
#!/usr/bin/python# Copyright 2002, 2003 Vladimir Prus# Distributed under the Boost Software License, Version 1.0.# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)# This tests correct handling of "-d1" and "-d2" options.import BoostBuildt = BoostBuild.Tester(pass_toolset=0)t.write("file.jam", """actions a { }actions quietly b { }ALWAYS all ;a all ;b all ;""")t.run_build_system("-ffile.jam -d0", stdout="")t.run_build_system("-ffile.jam -d1", stdout="""...found 1 target......updating 1 target...a all...updated 1 target...""")t.run_build_system("-ffile.jam -d2")t.fail_test(t.stdout().find("a all") == -1)t.fail_test(t.stdout().find("b all") == -1)t.cleanup()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?