blob: 59b7bd6fa4a51a5a0fdbf63132d691d635deed9c [file] [log] [blame]
Paul Duffin20802de2017-07-04 15:12:05 +01001<?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 Duffincfdcd792017-07-14 15:45:11 +010016<configuration description="Config for CTS Current API Signature test cases">
jdesprez503a3db2017-12-16 04:19:31 -080017 <option name="test-suite-tag" value="cts" />
Paul Duffin20802de2017-07-04 15:12:05 +010018 <option name="config-descriptor:metadata" key="component" value="systems" />
jdespreza55627c2017-08-02 15:48:46 -070019 <option name="not-shardable" value="true" />
Paul Duffin20802de2017-07-04 15:12:05 +010020 <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 Duffin5b111792017-07-10 14:56:04 +010027 <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 Duffin20802de2017-07-04 15:12:05 +010033 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
34 <option name="cleanup-apks" value="true" />
Paul Duffin5b111792017-07-10 14:56:04 +010035 <option name="test-file-name" value="CtsCurrentApiSignatureTestCases.apk" />
Paul Duffin20802de2017-07-04 15:12:05 +010036 </target_preparer>
37 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
Paul Duffin5b111792017-07-10 14:56:04 +010038 <option name="package" value="android.signature.cts.api.current" />
Paul Duffin16df1552017-07-05 10:13:16 +010039 <option name="runner" value="repackaged.android.test.InstrumentationTestRunner" />
Paul Duffince31c052018-01-11 20:55:18 +000040 <option name="class" value="android.signature.cts.api.SignatureTest" />
Paul Duffin1b184572017-07-05 13:03:23 +010041 <option name="instrumentation-arg" key="expected-api-files" value="current.api" />
Paul Duffind67771b2017-11-06 17:28:10 +000042 <option name="instrumentation-arg" key="unexpected-api-files" value="android-test-mock-current.api,android-test-runner-current.api" />
Paul Duffin20802de2017-07-04 15:12:05 +010043 <option name="runtime-hint" value="30s" />
44 </test>
45</configuration>