[go: nahoru, domu]

blob: 41109b43ab822fee860bfb4d4fa242d88520616e [file] [log] [blame]
Yan Wang188e6372020-01-21 10:13:45 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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
17<configuration description="Runs iorap-functional-tests.">
18 <option name="test-suite-tag" value="apct" />
19 <option name="test-suite-tag" value="apct-instrumentation" />
20 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
21 <option name="cleanup-apks" value="true" />
22 <option name="test-file-name" value="iorap-functional-tests.apk" />
23 </target_preparer>
24
25 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
26
27 <target_preparer
28 class="com.android.tradefed.targetprep.DeviceSetup">
29
30 <!-- iorapd does not pick up the above changes until we restart it -->
31 <option name="run-command" value="stop iorapd" />
32
33 <!-- Clean up the existing iorap database. -->
34 <option name="run-command" value="rm -r /data/misc/iorapd/*" />
35 <option name="run-command" value="sleep 1" />
36
37 <option name="run-command" value="start iorapd" />
38
39 <!-- give it some time to restart the service; otherwise the first unit test might fail -->
40 <option name="run-command" value="sleep 1" />
41 </target_preparer>
42
43 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
44 <option name="package" value="com.google.android.startop.iorap.tests" />
45 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
46 </test>
47
48 <!-- using DeviceSetup again does not work. we simply leave the device in a semi-bad
49 state. there is no way to clean this up as far as I know.
50 -->
51
52</configuration>
53