Inseob Kim | 5d5476b | 2022-06-27 13:22:09 +0900 | [diff] [blame] | 1 | <?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 | --> |
Alan Stokes | 7bc146c | 2022-10-20 17:10:32 +0100 | [diff] [blame] | 16 | <configuration description="Runs Microdroid benchmarks."> |
Inseob Kim | 5d5476b | 2022-06-27 13:22:09 +0900 | [diff] [blame] | 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 Mayle | 3e421e7 | 2022-09-28 20:57:55 +0000 | [diff] [blame] | 24 | <!-- 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 Kim | 0f0cf51 | 2023-03-24 15:16:26 +0900 | [diff] [blame] | 28 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 29 | <option name="push" value="perf-setup.sh->/data/local/tmp/perf-setup.sh" /> |
| 30 | <option name="post-push" value="chmod 755 /data/local/tmp/perf-setup.sh;/data/local/tmp/perf-setup.sh" /> |
| 31 | <option name="cleanup" value="true" /> |
| 32 | </target_preparer> |
Nikita Ioffe | bea3a6e | 2023-09-12 14:27:16 +0100 | [diff] [blame] | 33 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 34 | <option name="run-command" value="mkdir -p /data/local/tmp/microdroid-bench" /> |
| 35 | <option name="teardown-command" value="rm -rf /data/local/tmp/microdroid-bench" /> |
| 36 | </target_preparer> |
| 37 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 38 | <option name="cleanup" value="true" /> |
| 39 | <option name="push" value="test_microdroid_vendor_image.img->/data/local/tmp/microdroid-bench/microdroid_vendor_image.img" /> |
| 40 | </target_preparer> |
Jaewan Kim | 15819f5 | 2023-03-29 16:19:56 +0900 | [diff] [blame] | 41 | <target_preparer class="com.android.microdroid.test.preparer.DisableMicrodroidDebugPolicyPreparer" /> |
Inseob Kim | 5d5476b | 2022-06-27 13:22:09 +0900 | [diff] [blame] | 42 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 43 | <option name="package" value="com.android.microdroid.benchmark" /> |
| 44 | <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> |
| 45 | <option name="shell-timeout" value="300000" /> |
| 46 | <option name="test-timeout" value="300000" /> |
| 47 | </test> |
| 48 | </configuration> |