]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/builtin_echo.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / test / builtin_echo.py
1 #!/usr/bin/python
2
3 # Copyright 2012 Steven Watanabe
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
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")