1<!-- Copyright (C) 2024 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15<configuration description="Runs PTS-bot tests in MTS"> 16 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 17 <option name="test-file-name" value="PandoraServer.apk" /> 18 <option name="install-arg" value="-r" /> 19 <option name="install-arg" value="-g" /> 20 </target_preparer> 21 22 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> 23 <option name="force-root" value="true"/> 24 </target_preparer> 25 26 <target_preparer class="com.android.tradefed.targetprep.RunHostCommandTargetPreparer"> 27 <option name="host-background-command" value="adb -s $SERIAL shell am instrument --no-hidden-api-checks -w com.android.pandora/.Main" /> 28 </target_preparer> 29 30 <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer"> 31 <!-- TODO(b/267785204): Import python dependencies --> 32 <option name="dep-module" value="grpcio" /> 33 <option name="dep-module" value="protobuf==3.20.1" /> 34 <option name="dep-module" value="scipy" /> 35 </target_preparer> 36 37 <test class="com.android.tradefed.testtype.pandora.PtsBotTest" > 38 <!-- Creates a randomized temp dir for pts-bot binaries and avoid 39 conflicts when running multiple pts-bot on the same machine --> 40 <option name="create-bin-temp-dir" value="true"/> 41 <!-- mmi2grpc is contained inside pts-bot-mts folder --> 42 <option name="mmi2grpc" value="pts-bot-mts" /> 43 <option name="tests-config-file" value="pts_bot_tests_config.json" /> 44 <option name="max-flaky-tests" value="3" /> 45 <option name="max-retries-per-test" value="3" /> 46 <option name="physical" value="false" /> 47 <option name="profile" value="A2DP/SNK" /> 48 <option name="profile" value="A2DP/SRC" /> 49 <option name="profile" value="AVCTP" /> 50 <option name="profile" value="AVDTP/SNK" /> 51 <option name="profile" value="AVDTP/SRC" /> 52 <option name="profile" value="AVRCP" /> 53 <option name="profile" value="BNEP" /> 54 <option name="profile" value="GAP" /> 55 <option name="profile" value="GATT" /> 56 <option name="profile" value="HFP/AG" /> 57 <option name="profile" value="HFP/HF" /> 58 <option name="profile" value="HID/HOS" /> 59 <option name="profile" value="HOGP" /> 60 <option name="profile" value="L2CAP/CMC" /> 61 <option name="profile" value="L2CAP/COS" /> 62 <option name="profile" value="L2CAP/EXF" /> 63 <option name="profile" value="L2CAP/LE" /> 64 <option name="profile" value="MAP" /> 65 <option name="profile" value="OPP" /> 66 <!-- TODO(b/272303629): Reenable --> 67 <!--option name="profile" value="PAN" /--> 68 <option name="profile" value="PBAP/PSE" /> 69 <option name="profile" value="RFCOMM" /> 70 <option name="profile" value="SDP" /> 71 <option name="profile" value="SM" /> 72 </test> 73 74 <object type="module_controller" 75 class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> 76 <option name="mainline-module-package-name" value="com.android.btservices" /> 77 <option name="mainline-module-package-name" value="com.google.android.btservices" /> 78 </object> 79</configuration> 80