Commit Graph

16 Commits

Author SHA1 Message Date
Treehugger Robot
327282c239 Merge "Create basic reentrant ClasspathFetcher targetprep" am: b222ec0e1c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2263421

Change-Id: I9e4f086a688e7d2676319bc966a9ac1118d2cd2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 18:57:29 +00:00
Andrei Onea
7cede5aa6a Create basic reentrant ClasspathFetcher targetprep
This will take over the responsibilities of StrictJavaPackagesTest's
setup code, and by fetching and processing all classpath data, as
defined in go/stricter-java-packages-test .

Test: atest ClasspathFetcherTest
Bug: 254647172
Change-Id: I93d2651994f7602d60ae91ca2401b83ae8c57baf
2022-11-03 15:53:26 +00:00
Kimberly Kreider
84973a5ea0 Update mts tag to the mts-mainline-infra tag.
Bug: 235322441
Test: built locally and verified contents.
Change-Id: Ia1a8f0f1dc8bcba2142e36f6236f5940fc2c8cb9
Ignore-AOSP-First: file is not part of AOSP
(cherry picked from commit dce28636ce)
2022-07-06 20:47:42 +00:00
Pedro Loureiro
d1b3eb0942 Add apk in apex tests for max and target sdk version
Test: atest ApkInApexTest

Bug: 208239394

Ignore-AOSP-First: feature not in AOSP yet
Change-Id: I570ebf57a6d71815944da6a5c94acf19131d2faf
2022-05-10 14:24:33 +00:00
Pedro Loureiro
7f67659b2b Merge "Add TEST_MAPPING to modules tests" into tm-mainline-prod 2022-05-10 10:08:06 +00:00
Pedro Loureiro
f09951323d Add TEST_MAPPING to modules tests
Test: N/A

Ignore-AOSP-First: work not in AOSP yet

Change-Id: If800162d2398e2a95c88d700898589a30da9328b
2022-05-09 16:27:37 +00:00
Pedro Loureiro
03253cb9ad Add ApkInApexTest to MTS
Test: m mts && mts-tradefed run mts-core-tests-list-eng-only

or

Test: m mts && mts-tradefed run mts -m ApkInApexTest -t
com.android.modules.apkinapex.ApkInApexTest

Ignore-AOSP-First: work not in AOSP yet

Bug: 208239394
Change-Id: I500e0c385bfac0fb44f4f2f00ff51245925fa108
2022-05-09 16:26:56 +00:00
Pedro Loureiro
dc0f07a271 Create e2e test for apk-in-apex with a future minSdkVersion
Apk in apex should not be installed.

Test: atest ApkInApexTest

Test: (test the test:) manually change AndroidManifest.xml of the app and set
the min sdk version to 30. Repeat the test and the test should fail (because
with min sdk version 30, the app should be installable).

Bug: 208239394

Ignore-AOSP-First: feature not in AOSP yet

Change-Id: I7caa31fe366b74d74f1d8e9e53d6ddd241a70751
2022-04-27 10:30:15 +00:00
Pedro Loureiro
7545c47c27 Create apk-in-apex test apex
Ignore-AOSP-First: feature not in AOSP yet

Test: follow-up
Bug: 208239394
Change-Id: Idfd267defb7179fb7f8cb0526bc87333783b8011
2022-04-26 15:19:33 +00:00
Pedro Loureiro
12528cbdd2 Add updatable shared lib updatability tests to MTS
Test: m mts && mts-tradefed run mts-core-tests-list-eng-only

or

Test: m mts && mts-tradefed run mts -m UpdatableSharedLibsTest -t
com.android.modules.updatablesharedlibs.UpdatableSharedLibsTest

Ignore-AOSP-First: functionality is not yet on AOSP

Change-Id: Ica667253f785af8f17853982d9a57035c92223af
2022-04-07 14:46:54 +00:00
Cole Faust
1525e8cdea Remove invisible unicode characters
Errorprone is being updated, and adds a check for
these characters.

Bug: 190944875
Test: Presubmits
Ignore-AOSP-First: This file only exists in internal master
Change-Id: I970673a984bb2285ce04704285cd0becfb3d5ce3
2022-02-07 12:45:20 -08:00
Pedro Loureiro
972eb590df Add test for getSystemSharedLibraryNames
This test verifies that PackageManager#getSystemSharedLibraryNames
returns libraries that were introduced via updatable shared libraries in
apexes.

Test: atest UpdatableSharedLibsTest
Bug: 191978330
Ignore-AOSP-First: logic under test is only available in internal master
Change-Id: I8a7bcc1a89cd056a5ecf3e4d519a38ff77addebd
2022-01-07 16:55:46 +00:00
Bob Badour
b239d7a4fd [LSC] Add LOCAL_LICENSE_KINDS to packages/modules/common
Added SPDX-license-identifier-Apache-2.0 to:
  javatests/com/android/modules/updatablesharedlibs/apex/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I4474debdfebd557bb46d8ade13c86ea9f8e7f06f
2021-11-18 16:15:03 -08:00
Pedro Loureiro
e1c68f98db Test that install fails when apk requires missing shared lib
Test: atest UpdatableSharedLibsTest

Bug: 191978330

Ignore-AOSP-First: logic under test is only available in internal master

Change-Id: Ie0181833c8b35d98ab22b00fe36d3273c934559d
2021-11-16 11:31:14 +00:00
Pedro Loureiro
0fc8728994 Write test to verify API is not accessible
Test: atest UpdatableSharedLibsTest

Bug: 191978330

Ignore-AOSP-First: logic under test is only available in internal master
Change-Id: Iebfed4a0f48ccbf17d5d7dae22980a178c54edfe
2021-11-09 10:37:10 +00:00
Pedro Loureiro
fbbd96754d Add e2e tests for updatable shared libs
Just adding the tests now, not making them run yet.

Test: atest UpdatableSharedLibsTest
Bug: 191978330
Ignore-AOSP-First: logic under test is only available in internal master

Change-Id: I48e8b9422c8703cd4cec6552e0dcfd3b82021816
2021-11-05 16:44:18 +00:00