1*4e4b8e58SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?> 2*4e4b8e58SAndroid Build Coastguard Worker<!-- Copyright (C) 2023 The Android Open Source Project 3*4e4b8e58SAndroid Build Coastguard Worker 4*4e4b8e58SAndroid Build Coastguard Worker Licensed under the Apache License, Version 2.0 (the "License"); 5*4e4b8e58SAndroid Build Coastguard Worker you may not use this file except in compliance with the License. 6*4e4b8e58SAndroid Build Coastguard Worker You may obtain a copy of the License at 7*4e4b8e58SAndroid Build Coastguard Worker 8*4e4b8e58SAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 9*4e4b8e58SAndroid Build Coastguard Worker 10*4e4b8e58SAndroid Build Coastguard Worker Unless required by applicable law or agreed to in writing, software 11*4e4b8e58SAndroid Build Coastguard Worker distributed under the License is distributed on an "AS IS" BASIS, 12*4e4b8e58SAndroid Build Coastguard Worker WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*4e4b8e58SAndroid Build Coastguard Worker See the License for the specific language governing permissions and 14*4e4b8e58SAndroid Build Coastguard Worker limitations under the License. 15*4e4b8e58SAndroid Build Coastguard Worker--> 16*4e4b8e58SAndroid Build Coastguard Worker<configuration description="Config for MTS Libcore Bouncy Castle test cases"> 17*4e4b8e58SAndroid Build Coastguard Worker <option name="config-descriptor:metadata" key="component" value="libcore" /> 18*4e4b8e58SAndroid Build Coastguard Worker <option name="config-descriptor:metadata" key="parameter" value="multi_abi" /> 19*4e4b8e58SAndroid Build Coastguard Worker <!-- Test is eligible to run on Android Multiuser users other than SYSTEM. 20*4e4b8e58SAndroid Build Coastguard Worker See source.android.com/devices/tech/admin/multi-user#user_types --> 21*4e4b8e58SAndroid Build Coastguard Worker <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 22*4e4b8e58SAndroid Build Coastguard Worker <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" /> 23*4e4b8e58SAndroid Build Coastguard Worker <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.art.apex" /> 24*4e4b8e58SAndroid Build Coastguard Worker <option name="config-descriptor:metadata" key="mainline-param" value="com.android.art.apex" /> 25*4e4b8e58SAndroid Build Coastguard Worker <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 26*4e4b8e58SAndroid Build Coastguard Worker <!-- This MTS test module requires wifi, ensure wifi is on --> 27*4e4b8e58SAndroid Build Coastguard Worker <option name="run-command" value="settings put global wifi_on 1" /> 28*4e4b8e58SAndroid Build Coastguard Worker <option name="run-command" value="svc wifi enable" /> 29*4e4b8e58SAndroid Build Coastguard Worker </target_preparer> 30*4e4b8e58SAndroid Build Coastguard Worker <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 31*4e4b8e58SAndroid Build Coastguard Worker <option name="cleanup-apks" value="true" /> 32*4e4b8e58SAndroid Build Coastguard Worker <!-- this has just the instrumentation which acts as the tests we want to run --> 33*4e4b8e58SAndroid Build Coastguard Worker <option name="test-file-name" value="MtsLibcoreBouncyCastleTestCases.apk" /> 34*4e4b8e58SAndroid Build Coastguard Worker </target_preparer> 35*4e4b8e58SAndroid Build Coastguard Worker <test class="com.android.compatibility.testtype.LibcoreTest" > 36*4e4b8e58SAndroid Build Coastguard Worker <option name="package" value="android.libcore.mts.bouncycastle" /> 37*4e4b8e58SAndroid Build Coastguard Worker <option name="instrumentation-arg" key="filter" 38*4e4b8e58SAndroid Build Coastguard Worker value="com.android.cts.core.runner.ExpectationBasedFilter" /> 39*4e4b8e58SAndroid Build Coastguard Worker <option name="core-expectation" value="/knownfailures.txt" /> 40*4e4b8e58SAndroid Build Coastguard Worker <option name="runtime-hint" value="15m"/> 41*4e4b8e58SAndroid Build Coastguard Worker <!-- 20x default timeout of 600sec --> 42*4e4b8e58SAndroid Build Coastguard Worker <option name="shell-timeout" value="12000000"/> 43*4e4b8e58SAndroid Build Coastguard Worker <option name="hidden-api-checks" value="false"/> 44*4e4b8e58SAndroid Build Coastguard Worker </test> 45*4e4b8e58SAndroid Build Coastguard Worker 46*4e4b8e58SAndroid Build Coastguard Worker <object type="module_controller" class="com.android.tradefed.testtype.suite.module.TestFailureModuleController"> 47*4e4b8e58SAndroid Build Coastguard Worker <option name="screenshot-on-failure" value="false" /> 48*4e4b8e58SAndroid Build Coastguard Worker </object> 49*4e4b8e58SAndroid Build Coastguard Worker 50*4e4b8e58SAndroid Build Coastguard Worker <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if 51*4e4b8e58SAndroid Build Coastguard Worker one of the Mainline modules below is present on the device used for testing. --> 52*4e4b8e58SAndroid Build Coastguard Worker <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> 53*4e4b8e58SAndroid Build Coastguard Worker <!-- ART Mainline Module (internal version). --> 54*4e4b8e58SAndroid Build Coastguard Worker <option name="mainline-module-package-name" value="com.google.android.art" /> 55*4e4b8e58SAndroid Build Coastguard Worker <!-- ART Mainline Module (external (AOSP) version). --> 56*4e4b8e58SAndroid Build Coastguard Worker <option name="mainline-module-package-name" value="com.android.art" /> 57*4e4b8e58SAndroid Build Coastguard Worker </object> 58*4e4b8e58SAndroid Build Coastguard Worker 59*4e4b8e58SAndroid Build Coastguard Worker <!-- Only run tests if the device under test is SDK version 31 (Android 12) or above. --> 60*4e4b8e58SAndroid Build Coastguard Worker <object type="module_controller" class="com.android.tradefed.testtype.suite.module.Sdk31ModuleController" /> 61*4e4b8e58SAndroid Build Coastguard Worker</configuration> 62