1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2022 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 17<configuration description="Config for authfs tests"> 18 <!-- Need root to start virtualizationservice --> 19 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> 20 21 <!-- Still need to define SELinux policy for authfs and fd_server properly. --> 22 <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer"/> 23 24 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 25 <option name="throw-if-cmd-fail" value="true" /> 26 <!-- Prepare test directories. --> 27 <option name="run-command" value="mkdir -p /data/local/tmp/authfs/mnt" /> 28 <option name="teardown-command" value="rm -rf /data/local/tmp/authfs" /> 29 </target_preparer> 30 31 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 32 <option name="cleanup" value="true" /> 33 <option name="abort-on-push-failure" value="true" /> 34 35 <!-- Test executable --> 36 <option name="push-file" key="open_then_run" value="/data/local/tmp/open_then_run" /> 37 38 <!-- Test data files --> 39 <option name="push-file" key="cert.der" value="/data/local/tmp/authfs/cert.der" /> 40 <option name="push-file" key="input.4m" value="/data/local/tmp/authfs/input.4m" /> 41 <option name="push-file" key="input.4m.fsv_meta" 42 value="/data/local/tmp/authfs/input.4m.fsv_meta" /> 43 </target_preparer> 44 45 <target_preparer class="com.android.microdroid.test.preparer.DisableMicrodroidDebugPolicyPreparer" /> 46 47 <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" > 48 <option name="jar" value="AuthFsBenchmarks.jar" /> 49 </test> 50</configuration> 51