2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00
Files
build/test/core_d12.py
Vladimir Prus 296276a550 Fix rule echoing.
* jam_src/make1.c (make1c): Output don't output nonqueit when neither
     DEBUG_MAKE nor DEBUG_MAKEQ is set.

   * test/code_d1d2.py: New test.


[SVN r16231]
2002-11-14 07:11:16 +00:00

36 lines
528 B
Python

#!/usr/bin/python
# This tests correct handling of "-d1" and "-d2" options.
import BoostBuild
t = BoostBuild.Tester()
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)