Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77646 - trunk/tools/build/v2/test
From: steven_at_[hidden]
Date: 2012-03-30 10:04:45


Author: steven_watanabe
Date: 2012-03-30 10:04:44 EDT (Fri, 30 Mar 2012)
New Revision: 77646
URL: http://svn.boost.org/trac/boost/changeset/77646

Log:
Test for ECHO.
Added:
   trunk/tools/build/v2/test/builtin_echo.py (contents, props changed)
Text files modified:
   trunk/tools/build/v2/test/test_all.py | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Added: trunk/tools/build/v2/test/builtin_echo.py
==============================================================================
--- (empty file)
+++ trunk/tools/build/v2/test/builtin_echo.py 2012-03-30 10:04:44 EDT (Fri, 30 Mar 2012)
@@ -0,0 +1,30 @@
+#!/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")

Modified: trunk/tools/build/v2/test/test_all.py
==============================================================================
--- trunk/tools/build/v2/test/test_all.py (original)
+++ trunk/tools/build/v2/test/test_all.py 2012-03-30 10:04:44 EDT (Fri, 30 Mar 2012)
@@ -130,6 +130,7 @@
           "build_dir",
           "build_file",
           "build_no",
+ "builtin_echo",
           "builtin_exit",
           "c_file",
           "chain",


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk