blob: 8204c933fdf05326fda5f0d785801e2aa0b09c7e [file] [log] [blame]
Lalit Magantia88807d2018-03-05 18:21:38 +00001<?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-->
16<!-- The Android.mk file that defines these target lives in /external/perfetto/cts -->
17<configuration description="Config for CTS Perfetto test cases">
18 <option name="config-descriptor:metadata" key="component" value="metrics" />
19 <option name="test-suite-tag" value="cts" />
20 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
21 <option name="cleanup-apks" value="true" />
22 <option name="test-file-name" value="CtsPerfettoProducerApp.apk" />
23 </target_preparer>
24 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
25 <option name="cleanup" value="true" />
26 <option name="push" value="CtsPerfettoTestCases->/data/local/tmp/CtsPerfettoTestCases" />
Lalit Magantie81a4da2018-03-07 11:53:38 +000027 <option name="append-bitness" value="true" />
Lalit Magantia88807d2018-03-05 18:21:38 +000028 </target_preparer>
29 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
Lalit Magantifc3158a2018-03-08 13:20:03 +000030 <option name="run-command" value="setprop persist.traced.enable 1" />
Lalit Maganti5761f752018-03-08 22:22:41 +000031 <option name="run-command" value="am start -n android.perfetto.producer/.ProducerActivity" />
Lalit Magantia88807d2018-03-05 18:21:38 +000032 </target_preparer>
33 <test class="com.android.tradefed.testtype.GTest" >
34 <option name="native-test-device-path" value="/data/local/tmp" />
35 <option name="module-name" value="CtsPerfettoTestCases" />
36 <option name="runtime-hint" value="0m5s" />
37 <!-- test-timeout unit is ms, value = 10 seconds -->
38 <option name="native-test-timeout" value="10000" />
39 </test>
40</configuration>