2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-12 12:02:24 +00:00
Files
build/test/builtin_echo.py
Steven Watanabe ee897c8bd3 Test for ECHO.
[SVN r77646]
2012-03-30 14:04:44 +00:00

31 lines
632 B
Python
Executable File

#!/usr/bin/python
# Copyright 2012 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
# This tests the ECHO rule.
import BoostBuild
def test_echo(name):
t = BoostBuild.Tester(pass_toolset=0)
t.write("file.jam", """
%s ;
UPDATE ;
""" % name)
t.run_build_system("-ffile.jam", stdout="\n")
t.write("file.jam", """
%s a message ;
UPDATE ;
""" % name)
t.run_build_system("-ffile.jam", stdout="a message\n")
t.cleanup()
test_echo("ECHO")
test_echo("Echo")
test_echo("echo")