blob: 5f7047865e2eae40b3cf73bb2403c0fab26c8649 [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-->
Jiyong Park49d695e2018-02-01 22:49:17 +090016<configuration description="Config for CTS System 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" />
19 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
20 <option name="run-command" value="mkdir -p /data/local/tmp/signature-test" />
21 <option name="teardown-command" value="rm -rf /data/local/tmp/signature-test" />
22 </target_preparer>
23 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
Paul Duffince31c052018-01-11 20:55:18 +000024 <option name="push" value="current.api->/data/local/tmp/signature-test/current.api" />
Paul Duffin5b111792017-07-10 14:56:04 +010025 <option name="push" value="android-test-mock-current.api->/data/local/tmp/signature-test/android-test-mock-current.api" />
Paul Duffin5b111792017-07-10 14:56:04 +010026 <option name="push" value="android-test-runner-current.api->/data/local/tmp/signature-test/android-test-runner-current.api" />
Jiyong Park49d695e2018-02-01 22:49:17 +090027 <!-- This zip file contains all versions of system APIs that the platform is supposed to implement -->
28 <option name="push" value="system-all.api.zip->/data/local/tmp/signature-test/system-all.api.zip" />
Paul Duffin20802de2017-07-04 15:12:05 +010029 </target_preparer>
30 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
31 <option name="cleanup-apks" value="true" />
Jiyong Park49d695e2018-02-01 22:49:17 +090032 <option name="test-file-name" value="CtsSystemApiSignatureTestCases.apk" />
Paul Duffin20802de2017-07-04 15:12:05 +010033 </target_preparer>
34 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
Jiyong Park116378c2018-02-22 10:44:26 +090035 <option name="package" value="android.signature.cts.api.system" />
Paul Duffin16df1552017-07-05 10:13:16 +010036 <option name="runner" value="repackaged.android.test.InstrumentationTestRunner" />
Paul Duffince31c052018-01-11 20:55:18 +000037 <option name="class" value="android.signature.cts.api.SignatureTest" />
38 <option name="instrumentation-arg" key="base-api-files" value="current.api" />
Jiyong Park49d695e2018-02-01 22:49:17 +090039 <option name="instrumentation-arg" key="expected-api-files" value="system-all.api.zip" />
Paul Duffind67771b2017-11-06 17:28:10 +000040 <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 +010041 <option name="runtime-hint" value="30s" />
42 </test>
43</configuration>