]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/usr/bin/python |
2 | ||
3 | # Copyright 2012 Steven Watanabe | |
4 | # Distributed under the Boost Software License, Version 1.0. | |
1e59de90 | 5 | # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) |
7c673cae FG |
6 | |
7 | # This tests the ECHO rule. | |
8 | ||
9 | import BoostBuild | |
10 | ||
11 | def test_echo(name): | |
12 | t = BoostBuild.Tester(["-ffile.jam"], pass_toolset=0) | |
13 | ||
14 | t.write("file.jam", """\ | |
15 | %s ; | |
16 | UPDATE ; | |
17 | """ % name) | |
18 | t.run_build_system(stdout="\n") | |
19 | ||
20 | t.write("file.jam", """\ | |
21 | %s a message ; | |
22 | UPDATE ; | |
23 | """ % name) | |
24 | t.run_build_system(stdout="a message\n") | |
25 | ||
26 | t.cleanup() | |
27 | ||
28 | test_echo("ECHO") | |
29 | test_echo("Echo") | |
30 | test_echo("echo") |