Mathieu Chartier | feca77f | 2019-08-29 15:26:58 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2019 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="Config for BootImageProfileTest"> |
| 17 | <!-- do not use DeviceSetup#set-property because it reboots the device b/136200738. |
| 18 | furthermore the changes in /data/local.prop don't actually seem to get picked up. |
| 19 | --> |
| 20 | <target_preparer |
| 21 | class="com.android.tradefed.targetprep.DeviceSetup"> |
| 22 | <!-- we need this magic flag, otherwise it always reboots and breaks the selinux --> |
| 23 | <option name="force-skip-system-props" value="true" /> |
| 24 | |
Mathieu Chartier | 9a1c86d | 2019-10-03 09:38:49 -0700 | [diff] [blame^] | 25 | <option name="run-command" value="device_config put runtime_native_boot profilesystemserver true" /> |
| 26 | <option name="run-command" value="device_config put runtime_native_boot profilebootclasspath true" /> |
Mathieu Chartier | feca77f | 2019-08-29 15:26:58 -0700 | [diff] [blame] | 27 | |
| 28 | <!-- Profiling does not pick up the above changes we restart the shell --> |
| 29 | <option name="run-command" value="stop" /> |
| 30 | <option name="run-command" value="start" /> |
| 31 | |
| 32 | <!-- give it some time to restart the shell; otherwise the first unit test might fail --> |
| 33 | <option name="run-command" value="sleep 2" /> |
| 34 | </target_preparer> |
| 35 | |
| 36 | <test class="com.android.tradefed.testtype.HostTest" > |
| 37 | <option name="class" value="com.android.bootimageprofile.BootImageProfileTest" /> |
| 38 | </test> |
| 39 | </configuration> |