Mathew Inwood | f585217 | 2018-03-01 13:12:20 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2018 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 CTS Hidden API Signature test cases"> |
| 17 | <option name="test-suite-tag" value="cts" /> |
| 18 | <option name="config-descriptor:metadata" key="component" value="systems" /> |
| 19 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 20 | <!-- Enable the killswitch before running the test, then disable it afterwards. The test |
| 21 | is intended to verify the behaviour when the killswitch is enabled. --> |
| 22 | <option name="run-command" value="settings put global hidden_api_blacklist_exemptions \*" /> |
| 23 | <option name="teardown-command" value="settings delete global hidden_api_blacklist_exemptions" /> |
| 24 | </target_preparer> |
| 25 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 26 | <option name="cleanup-apks" value="true" /> |
David Brazdil | ffdbfcc | 2018-05-09 15:18:32 +0100 | [diff] [blame] | 27 | <option name="test-file-name" value="CtsHiddenApiKillswitchWildcardTestCases.apk" /> |
Mathew Inwood | f585217 | 2018-03-01 13:12:20 +0000 | [diff] [blame] | 28 | </target_preparer> |
| 29 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
David Brazdil | ffdbfcc | 2018-05-09 15:18:32 +0100 | [diff] [blame] | 30 | <option name="package" value="android.signature.cts.api.killswitch_wildcard" /> |
Mathew Inwood | f585217 | 2018-03-01 13:12:20 +0000 | [diff] [blame] | 31 | <option name="runner" value="repackaged.android.test.InstrumentationTestRunner" /> |
David Brazdil | ffdbfcc | 2018-05-09 15:18:32 +0100 | [diff] [blame] | 32 | <option name="class" value="android.signature.cts.api.WildcardKillswitchTest" /> |
David Brazdil | 4952e91 | 2018-04-04 11:00:51 +0100 | [diff] [blame] | 33 | <option name="runtime-hint" value="60s" /> |
Mathew Inwood | f585217 | 2018-03-01 13:12:20 +0000 | [diff] [blame] | 34 | </test> |
Julien Desprez | 56fdb65 | 2018-05-25 14:59:38 -0700 | [diff] [blame] | 35 | |
| 36 | <!-- Controller that will skip the module if a native bridge situation is detected --> |
| 37 | <!-- For example: module wants to run arm32 and device is x86 --> |
| 38 | <object type="module_controller" class="com.android.tradefed.testtype.suite.module.NativeBridgeModuleController" /> |
Mathew Inwood | f585217 | 2018-03-01 13:12:20 +0000 | [diff] [blame] | 39 | </configuration> |