blob: 7137323a2a4daac6ca077056a17428204dcb6ba1 [file] [log] [blame]
Peng Xu1bd2c9b2016-08-31 13:26:19 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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 Sensor test cases">
jdesprez503a3db2017-12-16 04:19:31 -080017 <option name="test-suite-tag" value="cts" />
Guang Zhuc40b6fd2017-06-02 17:17:14 -070018 <option name="config-descriptor:metadata" key="component" value="location" />
Peng Xu1bd2c9b2016-08-31 13:26:19 -070019 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.LocationCheck" />
jdesprezfd6d41d2017-04-11 15:43:44 -070020 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
Peng Xu1bd2c9b2016-08-31 13:26:19 -070021 <option name="cleanup-apks" value="true" />
22 <option name="test-file-name" value="CtsSensorTestCases.apk" />
23 </target_preparer>
24 <!-- Put SensorService in restricted mode so that only CTS tests will be able to get access to
25 sensors -->
26 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
27 <option name="run-command" value="dumpsys sensorservice restrict .cts." />
28 <option name="teardown-command" value="dumpsys sensorservice enable" />
29 </target_preparer>
30 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
31 <option name="package" value="android.hardware.sensor.cts" />
32 <option name="runtime-hint" value="47m28s" />
33 <!-- test-timeout unit is ms, value = 60 min -->
34 <option name="test-timeout" value="3600000" />
35 </test>
36
37</configuration>