1#!/usr/local/bin/python3.8 2 3# Copyright 2002, 2003 Vladimir Prus 4# Distributed under the Boost Software License, Version 1.0. 5# (See accompanying file LICENSE_1_0.txt or copy at 6# http://www.boost.org/LICENSE_1_0.txt) 7 8# This tests correct handling of "-d1" and "-d2" options. 9 10import BoostBuild 11 12t = BoostBuild.Tester(["-ffile.jam"], pass_toolset=0) 13 14t.write("file.jam", """\ 15actions a { } 16actions quietly b { } 17ALWAYS all ; 18a all ; 19b all ; 20""") 21 22t.run_build_system(["-d0"], stdout="") 23 24t.run_build_system(["-d1"]) 25t.expect_output_lines("a all") 26t.expect_output_lines("b all", False) 27 28t.run_build_system(["-d2"]) 29t.expect_output_lines("a all") 30t.expect_output_lines("b all") 31 32t.cleanup() 33