blob: 4487cefb4f9cfd5ff0990dcfad3f32978b5118f9 [file] [log] [blame]
Victor Hsiehe82b9fb2019-02-06 09:56:58 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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="APK fs-verity integration/regression test">
17 <option name="test-suite-tag" value="apct" />
18
Victor Hsiehec6dc4a2023-03-15 08:36:40 -070019 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.ShippingApiLevelModuleController">
20 <!-- fs-verity is required since R/30 -->
21 <option name="vsr-min-api-level" value="30" />
22 </object>
23
Victor Hsiehe82b9fb2019-02-06 09:56:58 -080024 <!-- This test requires root to write against block device. -->
25 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" />
26
27 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
28 <!-- Disable package verifier prevents it holding the target APK's fd that prevents cache
29 eviction. -->
Victor Hsieh660c5ee2019-12-20 09:43:23 -080030 <option name="set-global-setting" key="verifier_verify_adb_installs" value="0" />
Victor Hsiehe82b9fb2019-02-06 09:56:58 -080031 <option name="restore-settings" value="true" />
32
33 <!-- Skip in order to prevent reboot that confuses the test flow. -->
34 <option name="force-skip-system-props" value="true" />
35 </target_preparer>
36
37 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
38 <option name="cleanup" value="true" />
Victor Hsiehe82b9fb2019-02-06 09:56:58 -080039 <option name="push" value="ApkVerityTestCert.der->/data/local/tmp/ApkVerityTestCert.der" />
40 </target_preparer>
41
Victor Hsieh3b6c7012022-06-23 09:52:54 -070042 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
43 <!-- The build system produces both 32 and 64 bit variants with bitness suffix. Let
44 FilePusher find the filename with bitness and push to a remote name without bitness.
45 -->
46 <option name="append-bitness" value="true" />
47 <option name="cleanup" value="true" />
48 <option name="push" value="block_device_writer->/data/local/tmp/block_device_writer" />
49 </target_preparer>
50
Florian Mayer27c8be42022-05-11 21:04:28 +000051 <!-- Skip on HWASan. TODO(b/232288278): Re-enable -->
52 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.SkipHWASanModuleController" />
Victor Hsiehe82b9fb2019-02-06 09:56:58 -080053 <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
Victor Hsiehc84d1022019-12-10 16:07:44 -080054 <option name="jar" value="ApkVerityTest.jar" />
Victor Hsiehe82b9fb2019-02-06 09:56:58 -080055 </test>
56</configuration>