summaryrefslogtreecommitdiff
path: root/apex/bootclasspath_fragment_test.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-09-06 00:49:31 +0000
committer Spandan Das <spandandas@google.com> 2024-09-06 05:10:29 +0000
commit1679192d7d1a71633823d92bd7480e2f553e556b (patch)
tree53d3f651899a1acf17e47f37881cd35cb7b47388 /apex/bootclasspath_fragment_test.go
parentc540beef74e30cf30a4a1cc3f250b2ddbe45ad42 (diff)
Skip `contents` validation of source bootclasspath fragments
... if prebuilts are selected. This is a special case of b/361771739 where a apex starts contributing a jar to the BCP. `disableSourceApexVariant` uses `PrebuiltSelectionInfoProvider` and this gets populated via the following dep chain ``` source --> prebuilt --> all_apex_contributions ``` This runs into issues if a prebuilt bootclasspath_fragment does not exist. This CL creates a dependency edge between the source module and all_apex_contributions singleton module so that `PrebuiltSelectionInfoProvider` is available for `disableSourceApexVariant` Bug: 361771739 Test: lunch cf_x86_64-next-userdebug Test: m nothing with ag/28851886 Change-Id: I92d88199a27579d3c9879d40fd354653370efcce
Diffstat (limited to 'apex/bootclasspath_fragment_test.go')
-rw-r--r--apex/bootclasspath_fragment_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/bootclasspath_fragment_test.go b/apex/bootclasspath_fragment_test.go
index 25131eec6..fd2f3c5d1 100644
--- a/apex/bootclasspath_fragment_test.go
+++ b/apex/bootclasspath_fragment_test.go
@@ -833,6 +833,7 @@ func TestBootclasspathFragment_HiddenAPIList(t *testing.T) {
`)
java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_apex10000", []string{
+ "all_apex_contributions",
"art-bootclasspath-fragment",
"bar",
"dex2oatd",
@@ -1003,6 +1004,7 @@ func TestBootclasspathFragment_AndroidNonUpdatable_FromSource(t *testing.T) {
`)
java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_apex10000", []string{
+ "all_apex_contributions",
"android-non-updatable.stubs",
"android-non-updatable.stubs.module_lib",
"android-non-updatable.stubs.system",
@@ -1174,6 +1176,7 @@ func TestBootclasspathFragment_AndroidNonUpdatable_FromText(t *testing.T) {
`)
java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_apex10000", []string{
+ "all_apex_contributions",
"android-non-updatable.stubs",
"android-non-updatable.stubs.system",
"android-non-updatable.stubs.test",
@@ -1326,6 +1329,7 @@ func TestBootclasspathFragment_AndroidNonUpdatable_AlwaysUsePrebuiltSdks(t *test
`)
java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_apex10000", []string{
+ "all_apex_contributions",
"art-bootclasspath-fragment",
"bar",
"dex2oatd",