Merge changes If05b0f5f,I8cd1ef21
* changes: Add support for test_suites property on cc_test modules Remove -Wl,--allow-shlib-undefined from arm64
This commit is contained in:
@@ -103,6 +103,7 @@ func init() {
|
|||||||
"LOCAL_AIDL_INCLUDES": "aidl_includes",
|
"LOCAL_AIDL_INCLUDES": "aidl_includes",
|
||||||
"LOCAL_AAPT_FLAGS": "aaptflags",
|
"LOCAL_AAPT_FLAGS": "aaptflags",
|
||||||
"LOCAL_PACKAGE_SPLITS": "package_splits",
|
"LOCAL_PACKAGE_SPLITS": "package_splits",
|
||||||
|
"LOCAL_COMPATIBILITY_SUITE": "test_suites",
|
||||||
})
|
})
|
||||||
addStandardProperties(bpparser.BoolType,
|
addStandardProperties(bpparser.BoolType,
|
||||||
map[string]string{
|
map[string]string{
|
||||||
|
@@ -200,6 +200,14 @@ func (test *testBinary) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkDa
|
|||||||
ret.SubName = "_" + test.binaryDecorator.Properties.Stem
|
ret.SubName = "_" + test.binaryDecorator.Properties.Stem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) error {
|
||||||
|
if len(test.Properties.Test_suites) > 0 {
|
||||||
|
fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITES :=",
|
||||||
|
strings.Join(test.Properties.Test_suites, " "))
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
|
||||||
var testFiles []string
|
var testFiles []string
|
||||||
for _, d := range test.data {
|
for _, d := range test.data {
|
||||||
rel := d.Rel()
|
rel := d.Rel()
|
||||||
|
@@ -66,9 +66,6 @@ var (
|
|||||||
"-fuse-ld=gold",
|
"-fuse-ld=gold",
|
||||||
"-Wl,--icf=safe",
|
"-Wl,--icf=safe",
|
||||||
"-Wl,--no-undefined-version",
|
"-Wl,--no-undefined-version",
|
||||||
|
|
||||||
// Disable transitive dependency library symbol resolving.
|
|
||||||
"-Wl,--allow-shlib-undefined",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
arm64Cppflags = []string{
|
arm64Cppflags = []string{
|
||||||
|
@@ -20,6 +20,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
|
|
||||||
"github.com/google/blueprint"
|
"github.com/google/blueprint"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -41,6 +42,10 @@ type TestBinaryProperties struct {
|
|||||||
// list of files or filegroup modules that provide data that should be installed alongside
|
// list of files or filegroup modules that provide data that should be installed alongside
|
||||||
// the test
|
// the test
|
||||||
Data []string
|
Data []string
|
||||||
|
|
||||||
|
// list of compatibility suites (for example "cts", "vts") that the module should be
|
||||||
|
// installed into.
|
||||||
|
Test_suites []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Reference in New Issue
Block a user