mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Bugfix. Keep the same suffix when staging files.
[SVN r19324]
This commit is contained in:
@@ -88,6 +88,7 @@ rule stage-target-class ( name-and-dir : project : sources * : requirements * :
|
||||
i2 = [ new file-target $(n:D=) : [ $(i).type ]
|
||||
: $(self.project) ] ;
|
||||
local a = [ new action $(i2) : $(i) : common.copy ] ;
|
||||
$(i2).suffix [ $(i).suffix ] ;
|
||||
$(i2).action $(a) ;
|
||||
}
|
||||
|
||||
|
||||
29
test/suffix.py
Normal file
29
test/suffix.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
# Regression test: when staging V2 used to change suffixes on targets
|
||||
# corresponding to real files.
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
|
||||
t = Tester()
|
||||
|
||||
t.write("Jamfile", """
|
||||
import type : register ;
|
||||
register A : a1 a2 a3 ;
|
||||
|
||||
stage a : a.a3 ;
|
||||
""")
|
||||
|
||||
t.write("project-root.jam", "")
|
||||
t.write("a.a3", "")
|
||||
|
||||
t.run_build_system()
|
||||
t.expect_addition("a/a.a3");
|
||||
|
||||
t.cleanup()
|
||||
|
||||
@@ -103,6 +103,7 @@ tests = [ "project_test1",
|
||||
"loop",
|
||||
"conditionals3",
|
||||
"tag",
|
||||
"suffix",
|
||||
]
|
||||
|
||||
if os.name == 'posix':
|
||||
|
||||
29
v2/test/suffix.py
Normal file
29
v2/test/suffix.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
# Regression test: when staging V2 used to change suffixes on targets
|
||||
# corresponding to real files.
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
|
||||
t = Tester()
|
||||
|
||||
t.write("Jamfile", """
|
||||
import type : register ;
|
||||
register A : a1 a2 a3 ;
|
||||
|
||||
stage a : a.a3 ;
|
||||
""")
|
||||
|
||||
t.write("project-root.jam", "")
|
||||
t.write("a.a3", "")
|
||||
|
||||
t.run_build_system()
|
||||
t.expect_addition("a/a.a3");
|
||||
|
||||
t.cleanup()
|
||||
|
||||
@@ -103,6 +103,7 @@ tests = [ "project_test1",
|
||||
"loop",
|
||||
"conditionals3",
|
||||
"tag",
|
||||
"suffix",
|
||||
]
|
||||
|
||||
if os.name == 'posix':
|
||||
|
||||
@@ -88,6 +88,7 @@ rule stage-target-class ( name-and-dir : project : sources * : requirements * :
|
||||
i2 = [ new file-target $(n:D=) : [ $(i).type ]
|
||||
: $(self.project) ] ;
|
||||
local a = [ new action $(i2) : $(i) : common.copy ] ;
|
||||
$(i2).suffix [ $(i).suffix ] ;
|
||||
$(i2).action $(a) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user