| ThiƩbaud Weksteen | f6a88407 | 2023-03-24 10:46:30 +1100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2023 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 EnforcePermission Perf Tests"> |
| 17 | |
| 18 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> |
| 19 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 20 | <option name="push-file" key="perfetto.textproto" value="/data/misc/perfetto-traces/trace_config.textproto" /> |
| 21 | </target_preparer> |
| 22 | <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup"> |
| 23 | <option name="test-file-name" value="EnforcePermissionTestHelper.apk"/> |
| 24 | <option name="test-file-name" value="EnforcePermissionPerfTests.apk"/> |
| 25 | <option name="cleanup-apks" value="true" /> |
| 26 | </target_preparer> |
| 27 | |
| 28 | <option name="isolated-storage" value="false" /> |
| 29 | |
| 30 | <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> |
| 31 | <option name="pull-pattern-keys" value="perfetto_file_path" /> |
| 32 | <option name="collect-on-run-ended-only" value="false" /> |
| 33 | </metrics_collector> |
| 34 | |
| 35 | <option name="test-tag" value="EnforcePermissionTests"/> |
| 36 | <test class="com.android.tradefed.testtype.AndroidJUnitTest"> |
| 37 | <option name="package" value="android.tests.enforcepermission.tests"/> |
| 38 | <option name="device-listeners" value="android.device.collectors.PerfettoListener" /> |
| 39 | <!-- PerfettoListener related arguments --> |
| 40 | <option name="instrumentation-arg" key="perfetto_config_text_proto" value="true" /> |
| 41 | <option name="instrumentation-arg" key="perfetto_config_file" value="trace_config.textproto" /> |
| 42 | </test> |
| 43 | </configuration> |