]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/usr/bin/python |
2 | ||
3 | # Copyright 2007 Rene Rivera. | |
4 | # Copyright 2011 Steven Watanabe | |
5 | # Distributed under the Boost Software License, Version 1.0. | |
1e59de90 | 6 | # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) |
7c673cae FG |
7 | |
8 | import BoostBuild | |
9 | ||
11fdf7f2 | 10 | t = BoostBuild.Tester(pass_toolset=0) |
7c673cae FG |
11 | |
12 | t.write("file.jam", """\ | |
13 | actions .a. | |
14 | { | |
15 | echo [$(<:B)] 0 | |
16 | echo [$(<:B)] 1 | |
17 | echo [$(<:B)] 2 | |
18 | } | |
19 | ||
20 | rule .a. | |
21 | { | |
22 | DEPENDS $(<) : $(>) ; | |
23 | } | |
24 | ||
25 | NOTFILE subtest ; | |
26 | .a. subtest_a : subtest ; | |
27 | .a. subtest_b : subtest ; | |
28 | DEPENDS all : subtest_a subtest_b ; | |
29 | """) | |
30 | ||
31 | t.run_build_system(["-ffile.jam", "-d2"], stdout="""\ | |
32 | ...found 4 targets... | |
33 | ...updating 2 targets... | |
34 | .a. subtest_a | |
35 | ||
36 | echo [subtest_a] 0 | |
37 | echo [subtest_a] 1 | |
38 | echo [subtest_a] 2 | |
39 | ||
40 | [subtest_a] 0 | |
41 | [subtest_a] 1 | |
42 | [subtest_a] 2 | |
43 | .a. subtest_b | |
44 | ||
45 | echo [subtest_b] 0 | |
46 | echo [subtest_b] 1 | |
47 | echo [subtest_b] 2 | |
48 | ||
49 | [subtest_b] 0 | |
50 | [subtest_b] 1 | |
51 | [subtest_b] 2 | |
52 | ...updated 2 targets... | |
53 | """) | |
54 | ||
55 | t.cleanup() |