mirror of
https://github.com/boostorg/build.git
synced 2026-02-01 20:32:17 +00:00
* test/core_typecheck.py: New test * test/core_d12.py: Don't pass toolset name to bjam. * test/test_all.py: Run core tests. [SVN r18390]
37 lines
554 B
Python
37 lines
554 B
Python
#!/usr/bin/python
|
|
|
|
# This tests correct handling of "-d1" and "-d2" options.
|
|
|
|
import BoostBuild
|
|
|
|
t = 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()
|