Support filename and sub_dir attributes in sh_binary
Test: test by building system/timezone/apex:com.android.tzdata Change-Id: I08114910fccbdacf6750e237d3e80ba37fde7651
This commit is contained in:
@@ -62,11 +62,15 @@ func TestShBinarySimple(t *testing.T) {
|
||||
blueprint: `sh_binary {
|
||||
name: "foo",
|
||||
src: "foo.sh",
|
||||
filename: "foo.exe",
|
||||
sub_dir: "sub",
|
||||
bazel_module: { bp2build_available: true },
|
||||
}`,
|
||||
expectedBazelTargets: []string{
|
||||
makeBazelTarget("sh_binary", "foo", attrNameToString{
|
||||
"srcs": `["foo.sh"]`,
|
||||
"srcs": `["foo.sh"]`,
|
||||
"filename": `"foo.exe"`,
|
||||
"sub_dir": `"sub"`,
|
||||
})},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user