Do not install vndk lib
VNDK libs are installed as part of VNDK APEX, so we don't need to install them at all. Bug: 170711679 Test: m Change-Id: I62b881d6e65d6b007db1d26ab314c140c60e8a4e
This commit is contained in:
@@ -111,6 +111,7 @@ func testCcError(t *testing.T, pattern string, bp string) {
|
||||
}
|
||||
|
||||
func testCcErrorProductVndk(t *testing.T, pattern string, bp string) {
|
||||
t.Helper()
|
||||
config := TestConfig(buildDir, android.Android, nil, bp, nil)
|
||||
config.TestProductVariables.DeviceVndkVersion = StringPtr("current")
|
||||
config.TestProductVariables.ProductVndkVersion = StringPtr("current")
|
||||
@@ -388,10 +389,12 @@ func TestVndk(t *testing.T) {
|
||||
|
||||
ctx := testCcWithConfig(t, config)
|
||||
|
||||
checkVndkModule(t, ctx, "libvndk", "vndk-VER", false, "", vendorVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_private", "vndk-VER", false, "", vendorVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_sp", "vndk-sp-VER", true, "", vendorVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_sp_private", "vndk-sp-VER", true, "", vendorVariant)
|
||||
// subdir == "" because VNDK libs are not supposed to be installed separately.
|
||||
// They are installed as part of VNDK APEX instead.
|
||||
checkVndkModule(t, ctx, "libvndk", "", false, "", vendorVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_private", "", false, "", vendorVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_sp", "", true, "", vendorVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_sp_private", "", true, "", vendorVariant)
|
||||
|
||||
// Check VNDK snapshot output.
|
||||
|
||||
@@ -2452,8 +2455,8 @@ func TestEnforceProductVndkVersion(t *testing.T) {
|
||||
|
||||
ctx := testCcWithConfig(t, config)
|
||||
|
||||
checkVndkModule(t, ctx, "libvndk", "vndk-VER", false, "", productVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_sp", "vndk-sp-VER", true, "", productVariant)
|
||||
checkVndkModule(t, ctx, "libvndk", "", false, "", productVariant)
|
||||
checkVndkModule(t, ctx, "libvndk_sp", "", true, "", productVariant)
|
||||
}
|
||||
|
||||
func TestEnforceProductVndkVersionErrors(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user