1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2025 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 vts_treble_vintf_trusted_hal_test"> 17 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.CommandSuccessModuleController"> 18 <!--Skip the test when trusty VM is not enabled. --> 19 <option name="run-command" 20 value="(getprop trusty.security_vm.enabled | grep 1) || (getprop trusty.widevine_vm.enabled | grep 1)" /> 21 </object> 22 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> 23 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> 24 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 25 <option name="cleanup" value="true" /> 26 <option name="push-file" key="trusty-ut-ctrl.system" value="/data/local/tmp/trusty_test_vm/trusty-ut-ctrl" /> 27 <option name="push-file" key="trusty-vm-launcher.sh" value="/data/local/tmp/trusty_test_vm/trusty-vm-launcher.sh" /> 28 <option name="push-file" key="trusty-wait-ready.sh" value="/data/local/tmp/trusty_test_vm/trusty-wait-ready.sh" /> 29 <option name="push-file" key="trusty-test_vm-config.json" value="/data/local/tmp/trusty_test_vm/trusty-test_vm-config.json" /> 30 <option name="push-file" key="trusty_test_vm.elf" value="/data/local/tmp/trusty_test_vm/trusty_test_vm.elf" /> 31 <option name="push" value="vts_treble_vintf_trusted_hal_test->/data/local/tmp/vts_treble_vintf_trusted_hal_test" /> 32 </target_preparer> 33 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 34 <option name="push" value="android.frameworks.txt->/data/local/tmp/frameworks/hardware/interfaces/current.txt"/> 35 <option name="push" value="android.hardware.txt->/data/local/tmp/hardware/interfaces/current.txt"/> 36 <option name="push" value="android.system.txt->/data/local/tmp/system/hardware/interfaces/current.txt"/> 37 </target_preparer> 38 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 39 <option name="throw-if-cmd-fail" value="true" /> 40 <!--Note: the first run-command shall not expect the background command to have started --> 41 <option name="run-bg-command" value="sh /data/local/tmp/trusty_test_vm/trusty-vm-launcher.sh" /> 42 <option name="run-command" value="sh /data/local/tmp/trusty_test_vm/trusty-wait-ready.sh" /> 43 <option name="run-command" value="start storageproxyd_test_vm_os" /> 44 <option name="teardown-command" value="stop storageproxyd_test_vm_os" /> 45 <option name="teardown-command" value="killall storageproxyd_test_vm_os || true" /> 46 </target_preparer> 47 <test class="com.android.tradefed.testtype.GTest" > 48 <option name="native-test-device-path" value="/data/local/tmp" /> 49 <option name="module-name" value="vts_treble_vintf_trusted_hal_test" /> 50 </test> 51</configuration> 52