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"> 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.RunCommandTargetPreparer"> 31 <option name="run-command" value="setprop persist.bluetooth.btsnooplogmode full" /> 32 <option name="run-command" value="setprop persist.bluetooth.btsnoopsize 0xfffffffffffffff" /> 33 </target_preparer> 34 35 <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer"> 36 <option name="dep-module" value="grpcio" /> 37 <option name="dep-module" value="protobuf==3.20.1" /> 38 39 <!-- Re-enable when A2DP audio streaming tests are active, disabling to speed up atest runtime 40 (installation takes roughly 30s each time, never cached) --> 41 <!-- <option name="dep-module" value="scipy" /> --> 42 </target_preparer> 43 44 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> 45 <option name="set-property" key="persist.log.tag.bluetooth" value="VERBOSE"/> 46 <option name="restore-properties" value="true"/> 47 </target_preparer> 48 49 <test class="com.android.tradefed.testtype.pandora.PtsBotTest" > 50 <!-- Creates a randomized temp dir for pts-bot binaries and avoid 51 conflicts when running multiple pts-bot on the same machine --> 52 <!-- <option name="create-bin-temp-dir" value="true"/> --> 53 <!-- mmi2grpc is contained inside pts-bot folder --> 54 <option name="mmi2grpc" value="pts-bot" /> 55 <option name="tests-config-file" value="pts_bot_tests_config.json" /> 56 <option name="max-flaky-tests" value="0" /> 57 <option name="max-retries-per-test" value="0" /> 58 <option name="physical" value="false" /> 59 <option name="profile" value="A2DP/SNK" /> 60 <option name="profile" value="A2DP/SRC" /> 61 <option name="profile" value="AVCTP" /> 62 <option name="profile" value="AVDTP/SNK" /> 63 <option name="profile" value="AVDTP/SRC" /> 64 <option name="profile" value="AVRCP" /> 65 <option name="profile" value="BNEP" /> 66 <option name="profile" value="GAP" /> 67 <option name="profile" value="GATT" /> 68 <option name="profile" value="HFP/AG" /> 69 <option name="profile" value="HFP/HF" /> 70 <option name="profile" value="HID/HOS" /> 71 <option name="profile" value="HOGP" /> 72 <option name="profile" value="L2CAP/CMC" /> 73 <option name="profile" value="L2CAP/COS" /> 74 <option name="profile" value="L2CAP/EXF" /> 75 <option name="profile" value="L2CAP/LE" /> 76 <option name="profile" value="MAP" /> 77 <option name="profile" value="OPP" /> 78 <option name="profile" value="PAN" /> 79 <option name="profile" value="PBAP/PSE" /> 80 <option name="profile" value="RFCOMM" /> 81 <option name="profile" value="SDP" /> 82 <option name="profile" value="SM" /> 83 <option name="profile" value="VCP" /> 84 </test> 85</configuration> 86