Paul Duffin | 20802de | 2017-07-04 15:12:05 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 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 | --> |
Paul Duffin | cfdcd79 | 2017-07-14 15:45:11 +0100 | [diff] [blame] | 16 | <configuration description="Config for CTS Current API Signature test cases"> |
jdesprez | 503a3db | 2017-12-16 04:19:31 -0800 | [diff] [blame] | 17 | <option name="test-suite-tag" value="cts" /> |
Paul Duffin | 20802de | 2017-07-04 15:12:05 +0100 | [diff] [blame] | 18 | <option name="config-descriptor:metadata" key="component" value="systems" /> |
jdesprez | a55627c | 2017-08-02 15:48:46 -0700 | [diff] [blame] | 19 | <option name="not-shardable" value="true" /> |
Paul Duffin | 20802de | 2017-07-04 15:12:05 +0100 | [diff] [blame] | 20 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 21 | <option name="run-command" value="mkdir -p /data/local/tmp/signature-test" /> |
| 22 | <option name="teardown-command" value="rm -rf /data/local/tmp/signature-test" /> |
| 23 | </target_preparer> |
| 24 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 25 | <option name="push" value="current.api->/data/local/tmp/signature-test/current.api" /> |
| 26 | </target_preparer> |
Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 27 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 28 | <option name="push" value="android-test-mock-current.api->/data/local/tmp/signature-test/android-test-mock-current.api" /> |
| 29 | </target_preparer> |
| 30 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 31 | <option name="push" value="android-test-runner-current.api->/data/local/tmp/signature-test/android-test-runner-current.api" /> |
| 32 | </target_preparer> |
Paul Duffin | 20802de | 2017-07-04 15:12:05 +0100 | [diff] [blame] | 33 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 34 | <option name="cleanup-apks" value="true" /> |
Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 35 | <option name="test-file-name" value="CtsCurrentApiSignatureTestCases.apk" /> |
Paul Duffin | 20802de | 2017-07-04 15:12:05 +0100 | [diff] [blame] | 36 | </target_preparer> |
| 37 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 38 | <option name="package" value="android.signature.cts.api.current" /> |
Paul Duffin | 16df155 | 2017-07-05 10:13:16 +0100 | [diff] [blame] | 39 | <option name="runner" value="repackaged.android.test.InstrumentationTestRunner" /> |
Paul Duffin | ce31c05 | 2018-01-11 20:55:18 +0000 | [diff] [blame] | 40 | <option name="class" value="android.signature.cts.api.SignatureTest" /> |
Paul Duffin | 1b18457 | 2017-07-05 13:03:23 +0100 | [diff] [blame] | 41 | <option name="instrumentation-arg" key="expected-api-files" value="current.api" /> |
Paul Duffin | d67771b | 2017-11-06 17:28:10 +0000 | [diff] [blame] | 42 | <option name="instrumentation-arg" key="unexpected-api-files" value="android-test-mock-current.api,android-test-runner-current.api" /> |
Paul Duffin | 20802de | 2017-07-04 15:12:05 +0100 | [diff] [blame] | 43 | <option name="runtime-hint" value="30s" /> |
| 44 | </test> |
| 45 | </configuration> |