Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64553 - in trunk/tools/build/v2: test tools
From: ghost_at_[hidden]
Date: 2010-08-02 16:24:51


Author: vladimir_prus
Date: 2010-08-02 16:24:50 EDT (Mon, 02 Aug 2010)
New Revision: 64553
URL: http://svn.boost.org/trac/boost/changeset/64553

Log:
Fix test/suffix.py

Text files modified:
   trunk/tools/build/v2/test/suffix.py | 17 +++++++++++++++++
   trunk/tools/build/v2/tools/common.py | 4 ++--
   2 files changed, 19 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/test/suffix.py
==============================================================================
--- trunk/tools/build/v2/test/suffix.py (original)
+++ trunk/tools/build/v2/test/suffix.py 2010-08-02 16:24:50 EDT (Mon, 02 Aug 2010)
@@ -47,6 +47,23 @@
 }
 """)
 
+t.write("suffixes.py", """
+import b2.build.type as type
+import b2.build.generators as generators
+import b2.tools.common as common
+
+from b2.manager import get_manager
+
+type.register("First", ["first"])
+type.register("Second", [""], "First")
+
+generators.register_standard("suffixes.second", ["CPP"], ["Second"])
+
+get_manager().engine().register_action("suffixes.second",
+ "%s $(<)" % common.file_creation_command())
+
+""")
+
 t.write("jamroot.jam", """
 import suffixes ;
 """)

Modified: trunk/tools/build/v2/tools/common.py
==============================================================================
--- trunk/tools/build/v2/tools/common.py (original)
+++ trunk/tools/build/v2/tools/common.py 2010-08-02 16:24:50 EDT (Mon, 02 Aug 2010)
@@ -513,9 +513,9 @@
         already exists is unspecified.
     """
     if os_name() == 'NT':
- return ["echo. > "]
+ return "echo. > "
     else:
- return ["touch "]
+ return "touch "
 
 #FIXME: global variable
 __mkdir_set = set()


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