blob: 4949d22c57216c6f80d9f45282cbea9e8707ea3b [file] [log] [blame]
Inseob Kim5d5476b2022-06-27 13:22:09 +09001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 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="Runs sample instrumentation test.">
17 <option name="config-descriptor:metadata" key="component" value="security" />
18 <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
19 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
20 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
21 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
22 <option name="test-file-name" value="MicrodroidBenchmarkApp.apk" />
23 </target_preparer>
Frederick Mayle3e421e72022-09-28 20:57:55 +000024 <!-- Need root to access /proc/$pid/smaps when measuring memory usage. -->
25 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
26 <option name="force-root" value="true" />
27 </target_preparer>
Inseob Kim5d5476b2022-06-27 13:22:09 +090028 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
29 <option
30 name="run-command"
31 value="pm grant com.android.microdroid.benchmark android.permission.MANAGE_VIRTUAL_MACHINE" />
32 </target_preparer>
33 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
34 <option name="package" value="com.android.microdroid.benchmark" />
35 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
36 <option name="shell-timeout" value="300000" />
37 <option name="test-timeout" value="300000" />
38 </test>
39</configuration>