| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright 2024 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <configuration description="Accessor demo test"> |
| <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" /> |
| <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> |
| <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> |
| |
| <!-- Install APEX begins --> |
| <!-- Step 0: adb reboot, so PushFilePreparer can remount system if needed --> |
| <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> |
| <option name="force-root" value="true"/> |
| </target_preparer> |
| <!-- Step 1: Push for the very first install. --> |
| <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| <option name="abort-on-push-failure" value="true" /> |
| <!-- Disclaimer: 'remount-system' remounts all partitions (adb remount), |
| but do so after checking the verity of /system partition. |
| This works for now, but may misbehave in the future. --> |
| <option name="remount-system" value="true" /> |
| <option name="push-file" key="com.android.virt.accessor_demo.apex" value="/system_ext/apex/com.android.virt.accessor_demo.apex" /> |
| </target_preparer> |
| <!-- Step 2: Reboot for pushed APEX to be installed. --> |
| <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" /> |
| |
| <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> |
| <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| <option name="abort-on-push-failure" value="true" /> |
| <option name="push-file" key="vm_accessor_test" value="/data/local/tmp/vm_accessor_test" /> |
| </target_preparer> |
| |
| <!-- TODO(b/346763236): Remove this --> |
| <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer" /> |
| |
| <test class="com.android.tradefed.testtype.rust.RustBinaryTest" > |
| <option name="test-device-path" value="/data/local/tmp" /> |
| <option name="module-name" value="vm_accessor_test" /> |
| </test> |
| </configuration> |