1#!/usr/local/bin/python3.8
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
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")
31