1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2024 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="Runs Linux Terminal test"> 17 <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" /> 18 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> 19 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 20 21 <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup"> 22 <option name="test-file-name" value="TerminalAppTests.apk" /> 23 </target_preparer> 24 25 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> 26 <option name="force-root" value="true"/> 27 </target_preparer> 28 29 <!-- Download the VM image and push it to the device --> 30 <target_preparer class="com.android.tradefed.targetprep.RunHostScriptTargetPreparer"> 31 <option name="script-file" value="TerminalAppTests-downloader.sh" /> 32 </target_preparer> 33 34 <!-- Push the helper script to the device --> 35 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 36 <option name="push" value="TerminalAppTests-helper.sh->/data/local/tmp/helper.sh"/> 37 <option name="post-push" value="chmod 755 /data/local/tmp/helper.sh"/> 38 <option name="cleanup" value="true"/> 39 </target_preparer> 40 41 <!-- Run the helper script to enable/disable the Terminal app before and after the test run --> 42 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 43 <option name="run-command" value="/data/local/tmp/helper.sh setup"/> 44 <option name="teardown-command" value="/data/local/tmp/helper.sh teardown"/> 45 </target_preparer> 46 47 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 48 <option name="package" value="com.android.virtualization.terminal.test"/> 49 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/> 50 </test> 51</configuration> 52