]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/builtin_echo.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / builtin_echo.py
CommitLineData
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
9import BoostBuild
10
11def test_echo(name):
12 t = BoostBuild.Tester(["-ffile.jam"], pass_toolset=0)
13
14 t.write("file.jam", """\
15%s ;
16UPDATE ;
17""" % name)
18 t.run_build_system(stdout="\n")
19
20 t.write("file.jam", """\
21%s a message ;
22UPDATE ;
23""" % name)
24 t.run_build_system(stdout="a message\n")
25
26 t.cleanup()
27
28test_echo("ECHO")
29test_echo("Echo")
30test_echo("echo")