1<?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 19 <!-- This test requires root to write against block device. --> 20 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 21 22 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> 23 <!-- Disable package verifier prevents it holding the target APK's fd that prevents cache 24 eviction. --> 25 <option name="set-global-setting" key="verifier_verify_adb_installs" value="0" /> 26 <option name="restore-settings" value="true" /> 27 28 <!-- Skip in order to prevent reboot that confuses the test flow. --> 29 <option name="force-skip-system-props" value="true" /> 30 </target_preparer> 31 32 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 33 <option name="cleanup" value="true" /> 34 <option name="push" value="ApkVerityTestCert.der->/data/local/tmp/ApkVerityTestCert.der" /> 35 </target_preparer> 36 37 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 38 <!-- The build system produces both 32 and 64 bit variants with bitness suffix. Let 39 FilePusher find the filename with bitness and push to a remote name without bitness. 40 --> 41 <option name="append-bitness" value="true" /> 42 <option name="cleanup" value="true" /> 43 <option name="push" value="block_device_writer->/data/local/tmp/block_device_writer" /> 44 </target_preparer> 45 46 <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" > 47 <option name="jar" value="ApkVerityTest.jar" /> 48 </test> 49</configuration> 50