Skip to content

Commit 90b213c

Browse files
Merge "Update PackageSignatureTest and ApexSignatureVerificationTest" into udc-dev am: 433a370
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/25202036 Change-Id: Iec58094ac11d93fb6907bbfc7086151b68f1d73b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents 1b5ce82 + 433a370 commit 90b213c

119 files changed

Lines changed: 316 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

hostsidetests/appsecurity/Android.bp

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,40 @@ filegroup {
167167
name: "CtsHostsideTestsAppSecurityUtil",
168168
srcs: ["src/android/appsecurity/cts/Utils.java"],
169169
}
170+
171+
// The ApexSignatureVerificationTest is split into a separate java_test_host
172+
// to make it possible to run this test as part of GTS as well.
173+
// See b/301094654
174+
java_test_host {
175+
name: "GtsApexSignatureVerificationTest",
176+
defaults: ["cts_defaults"],
177+
178+
srcs: [
179+
"src/android/appsecurity/cts/ApexSignatureVerificationTest.java",
180+
],
181+
libs: [
182+
"cts-tradefed",
183+
"tradefed",
184+
"compatibility-host-util",
185+
"truth-prebuilt",
186+
"hamcrest-library",
187+
],
188+
189+
static_libs: [
190+
"CompatChangeGatingTestBase",
191+
"CtsPkgInstallerConstants",
192+
"cts-host-utils",
193+
"cts-statsd-atom-host-test-utils",
194+
"sts-host-util",
195+
],
196+
197+
java_resource_dirs: ["res"],
198+
199+
// tag this module as a cts test artifact
200+
test_suites: [
201+
"general-tests",
202+
"gts",
203+
],
204+
per_testcase_directory: true,
205+
test_config: "AndroidTest_ApexSignatureVerificationTest.xml",
206+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2023 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<configuration description="Config for the GtsApexSignatureVerificationTest">
17+
<option name="test-suite-tag" value="gts" />
18+
<option name="config-descriptor:metadata" key="component" value="packagemanager" />
19+
<option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
20+
<option name="config-descriptor:metadata" key="parameter" value="multi_abi" />
21+
<option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
22+
<target_preparer class="android.appsecurity.cts.AppSecurityPreparer" />
23+
<!-- disable DeprecatedAbi warning -->
24+
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
25+
<option name="run-command" value="setprop debug.wm.disable_deprecated_abi_dialog 1" />
26+
</target_preparer>
27+
<test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
28+
<option name="jar" value="GtsApexSignatureVerificationTest.jar" />
29+
</test>
30+
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)