]>
Commit | Line | Data |
---|---|---|
92f5a8d4 TL |
1 | #!/usr/bin/python |
2 | ||
3 | # Copyright 2018 Rene Rivera | |
4 | # Distributed under the Boost Software License, Version 1.0. | |
1e59de90 TL |
5 | # (See accompanying file LICENSE.txt or copy at |
6 | # https://www.bfgroup.xyz/b2/LICENSE.txt) | |
92f5a8d4 TL |
7 | |
8 | import BoostBuild | |
9 | import os | |
10 | ||
11 | t = BoostBuild.Tester(translate_suffixes=0) | |
12 | ||
13 | t.set_tree("rootless/test1") | |
14 | t.run_build_system(status=1) | |
15 | t.expect_output_lines("error: no Jamfile in current directory*") | |
16 | ||
17 | t.set_tree("rootless/test1") | |
18 | t.run_build_system(subdir="sub_root") | |
19 | t.expect_addition("sub_root/bin/a.txt") | |
20 | ||
21 | t.set_tree("rootless/test1") | |
22 | t.run_build_system(subdir="sub_root", extra_args=["--build-dir=../bin"]) | |
23 | t.expect_output_lines("warning: the --build-dir option will be ignored") | |
24 | ||
25 | t.set_tree("rootless/test2") | |
26 | t.run_build_system(subdir="sub_root", extra_args=["--build-dir=../bin"]) | |
27 | t.expect_addition("bin/foo/a.txt") | |
28 | ||
29 | t.set_tree("rootless/test3") | |
30 | t.run_build_system() | |
31 | ||
32 | t.set_tree("rootless/test3") | |
33 | t.run_build_system(subdir="sub/inner") | |
34 | t.expect_addition("bins/sub/inner/a.txt") | |
35 | ||
36 | t.cleanup() |