diff options
| author | Paul Duffin <paulduffin@google.com> | 2021-08-10 16:14:16 +0100 |
|---|---|---|
| committer | Paul Duffin <paulduffin@google.com> | 2021-10-05 15:27:42 +0100 |
| commit | 191be3a186a0face85909b92b28e3dc8a27940be (patch) | |
| tree | 6842811bfc3f15132fd1e73203b6acfd949af34a /apex/apex_test.go | |
| parent | 6e06f911a573c61b6dd529fdbc1d9fafe4bfa50a (diff) | |
Retry: Separate hidden API flags needed in sdk snapshots for S and T
Previous change that was reverted: https://r.android.com/1835222
An additional test was added that revealed a bug in the previous change
which has been fixed here.
Previously, the behavior of the stub_flags and all_flags properties
was different between S and T. In S they contained paths for the
complete set of stub flags and all the encoded flags. However, in T
they contained filtered sets of flags which if used in S would prevent
build checks from detecting possible inconsistencies. Also, a new
signature_patterns property was added in T that is not supported in S.
This change creates separate properties/files for T and reverts the
behavior of the properties/files that were added in S back to how they
behaved in S. The new properties are called filtered_stub_flags and
filtered_flags.
The S and T properties are tagged with the appropriate
supported_build_releases tag to ensure that they are only output when
specifically targeted.
Bug: 197842263
Test: m nothing
Change-Id: I1ce0a3d6623dabf73e32af1a7457b9b444fc3b7c
Diffstat (limited to 'apex/apex_test.go')
| -rw-r--r-- | apex/apex_test.go | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index 420489e68..5eb7acfb0 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -5058,8 +5058,9 @@ func TestBootDexJarsFromSourcesAndPrebuilts(t *testing.T) { annotation_flags: "my-bootclasspath-fragment/annotation-flags.csv", metadata: "my-bootclasspath-fragment/metadata.csv", index: "my-bootclasspath-fragment/index.csv", - stub_flags: "my-bootclasspath-fragment/stub-flags.csv", - all_flags: "my-bootclasspath-fragment/all-flags.csv", + signature_patterns: "my-bootclasspath-fragment/signature-patterns.csv", + filtered_stub_flags: "my-bootclasspath-fragment/filtered-stub-flags.csv", + filtered_flags: "my-bootclasspath-fragment/filtered-flags.csv", }, } @@ -5109,8 +5110,9 @@ func TestBootDexJarsFromSourcesAndPrebuilts(t *testing.T) { annotation_flags: "my-bootclasspath-fragment/annotation-flags.csv", metadata: "my-bootclasspath-fragment/metadata.csv", index: "my-bootclasspath-fragment/index.csv", - stub_flags: "my-bootclasspath-fragment/stub-flags.csv", - all_flags: "my-bootclasspath-fragment/all-flags.csv", + signature_patterns: "my-bootclasspath-fragment/signature-patterns.csv", + filtered_stub_flags: "my-bootclasspath-fragment/filtered-stub-flags.csv", + filtered_flags: "my-bootclasspath-fragment/filtered-flags.csv", }, } @@ -5238,8 +5240,9 @@ func TestBootDexJarsFromSourcesAndPrebuilts(t *testing.T) { annotation_flags: "my-bootclasspath-fragment/annotation-flags.csv", metadata: "my-bootclasspath-fragment/metadata.csv", index: "my-bootclasspath-fragment/index.csv", - stub_flags: "my-bootclasspath-fragment/stub-flags.csv", - all_flags: "my-bootclasspath-fragment/all-flags.csv", + signature_patterns: "my-bootclasspath-fragment/signature-patterns.csv", + filtered_stub_flags: "my-bootclasspath-fragment/filtered-stub-flags.csv", + filtered_flags: "my-bootclasspath-fragment/filtered-flags.csv", }, } @@ -5324,8 +5327,9 @@ func TestBootDexJarsFromSourcesAndPrebuilts(t *testing.T) { annotation_flags: "my-bootclasspath-fragment/annotation-flags.csv", metadata: "my-bootclasspath-fragment/metadata.csv", index: "my-bootclasspath-fragment/index.csv", - stub_flags: "my-bootclasspath-fragment/stub-flags.csv", - all_flags: "my-bootclasspath-fragment/all-flags.csv", + signature_patterns: "my-bootclasspath-fragment/signature-patterns.csv", + filtered_stub_flags: "my-bootclasspath-fragment/filtered-stub-flags.csv", + filtered_flags: "my-bootclasspath-fragment/filtered-flags.csv", }, } @@ -5408,8 +5412,9 @@ func TestBootDexJarsFromSourcesAndPrebuilts(t *testing.T) { annotation_flags: "my-bootclasspath-fragment/annotation-flags.csv", metadata: "my-bootclasspath-fragment/metadata.csv", index: "my-bootclasspath-fragment/index.csv", - stub_flags: "my-bootclasspath-fragment/stub-flags.csv", - all_flags: "my-bootclasspath-fragment/all-flags.csv", + signature_patterns: "my-bootclasspath-fragment/signature-patterns.csv", + filtered_stub_flags: "my-bootclasspath-fragment/filtered-stub-flags.csv", + filtered_flags: "my-bootclasspath-fragment/filtered-flags.csv", }, } @@ -7441,8 +7446,9 @@ func TestDexpreoptAccessDexFilesFromPrebuiltApex(t *testing.T) { annotation_flags: "my-bootclasspath-fragment/annotation-flags.csv", metadata: "my-bootclasspath-fragment/metadata.csv", index: "my-bootclasspath-fragment/index.csv", - stub_flags: "my-bootclasspath-fragment/stub-flags.csv", - all_flags: "my-bootclasspath-fragment/all-flags.csv", + signature_patterns: "my-bootclasspath-fragment/signature-patterns.csv", + filtered_stub_flags: "my-bootclasspath-fragment/filtered-stub-flags.csv", + filtered_flags: "my-bootclasspath-fragment/filtered-flags.csv", }, } |
