Alice Wang | 4e082c3 | 2023-07-11 07:41:50 +0000 | [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 | |
| 17 | <configuration description="Config for rialto_test"> |
| 18 | <!-- |
| 19 | We need root privilege to bypass selinux because shell cannot create socket. |
| 20 | Otherwise, we hit the following errors: |
| 21 | |
| 22 | avc: denied { create } for scontext=u:r:shell:s0 tcontext=u:r:shell:s0 |
| 23 | tclass=vsock_socket permissive=0 |
| 24 | --> |
| 25 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> |
| 26 | |
| 27 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 28 | <option name="push-file" key="rialto_test" value="/data/local/tmp/rialto_test" /> |
| 29 | </target_preparer> |
| 30 | |
| 31 | <test class="com.android.tradefed.testtype.rust.RustBinaryTest" > |
| 32 | <option name="test-device-path" value="/data/local/tmp" /> |
| 33 | <option name="module-name" value="rialto_test" /> |
| 34 | </test> |
| 35 | </configuration> |