Commit Graph

24 Commits

Author SHA1 Message Date
Roberto Gil Del Sol
034c223cb1 Remove satayev from OWNERS am: fcbd0ba75f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2495876

Change-Id: I8bb8c20a7dca45a998a284284d023302f6503309
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 17:27:50 +00:00
Roberto Gil Del Sol
fcbd0ba75f Remove satayev from OWNERS
Bug: 274075231
Change-Id: I1ebb623d740916a2919f2e96b446745896aeb983
2023-03-17 11:05:38 +00:00
jahinimtiaz
7edd550183 Install ConformanceFrameworkTests in mts am: 6e048b02e2
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2427194

Change-Id: I77453f91366591b84bda46f3f61c4e25ba074327
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 19:13:32 +00:00
jahinimtiaz
6e048b02e2 Install ConformanceFrameworkTests in mts
sdkextensions_conformance_framework_tests is installed in mts, which runs
ConformanceFrameworkTests.jar. Since ConformanceFrameworkTests.jar is
not installed in mts, it causes errors in mts. Failing test
v2/android-test-harness-team/mts/mts_unit_tests.

Bug: 261855411
Test: atest sdkextensions_conformance_framework_tests in
tm-mainline-prod branch

Change-Id: I7e6cfb840f328728cce6be2bc64fcd398a5d6784
2023-02-08 20:06:54 +00:00
Xin Li
d2e3e30c70 Merge AOSP trunk
Bug: 262638121
Merged-In: I4127e843cf1caf460a1c6b949a97ef3418ff895c
Change-Id: Ic6c35a46bb462f904e8e2802853715cc57c92729
2023-01-12 16:10:13 -08:00
Spandan Das
6cd1f901bb Enforce min_sdk_version for mts dependencies
These 3 apps are used in a mts host test. Enforcing min_sdk_verion helps
ensure backwards compatibility with older devices.

Test: TH
Bug: 156476221
Change-Id: Ic374f43c67ed96885559a105cf5f356b57d3e5f0
2023-01-06 01:39:43 +00:00
Andrei Onea
9f4e40c814 Create base conformance framework test
Test: atest sdkextensions_conformance_framework_tests
Bug: 254647310

Change-Id: I2eb5da132bc7d66909f641b2e1c479f69aa22ae0
2022-12-20 12:02:03 +00:00
Andrei Onea
816b8b6b99 Add fetch code for classpath jars
Fetch all *CLASSPATH jars and dump their data into .pb files in the temp
directory shared between the target preparer and the testcases.

Test: atest ClasspathFetcherTest
Bug: 254647172
Change-Id: I008001975ba5febbec5fec20a908b1dcc02308f6
2022-11-24 18:58:41 +00:00
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