Victor Hsieh | 85b4f73 | 2021-03-09 16:02:14 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2021 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 authfs tests"> |
| 18 | <!-- Since Android does not support user namespace, we need root to access /dev/fuse and also |
| 19 | to set up the mount. --> |
| 20 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> |
| 21 | |
| 22 | <!-- Basic checks that the device has all the prerequisites. --> |
| 23 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 24 | <option name="throw-if-cmd-fail" value="true" /> |
| 25 | <!-- Make sure kernel has FUSE enabled. --> |
| 26 | <option name="run-command" value="ls /dev/fuse" /> |
| 27 | <!-- Make sure necessary executables are installed. --> |
| 28 | <option name="run-command" value="ls /apex/com.android.virt/bin/fd_server" /> |
| 29 | <option name="run-command" value="ls /apex/com.android.virt/bin/authfs" /> |
| 30 | <!-- Prepare test directory. --> |
| 31 | <option name="run-command" value="mkdir -p /data/local/tmp/authfs/mnt" /> |
| 32 | <option name="teardown-command" value="rm -rf /data/local/tmp/authfs" /> |
| 33 | </target_preparer> |
| 34 | |
| 35 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 36 | <option name="cleanup" value="true" /> |
| 37 | <option name="abort-on-push-failure" value="true" /> |
| 38 | <option name="push-file" key="cert.der" value="/data/local/tmp/authfs/cert.der" /> |
| 39 | <option name="push-file" key="input.4m" value="/data/local/tmp/authfs/input.4m" /> |
| 40 | <option name="push-file" key="input.4k1" value="/data/local/tmp/authfs/input.4k1" /> |
| 41 | <option name="push-file" key="input.4k" value="/data/local/tmp/authfs/input.4k" /> |
| 42 | <option name="push-file" key="input.4m.fsv_sig" |
| 43 | value="/data/local/tmp/authfs/input.4m.fsv_sig" /> |
| 44 | <option name="push-file" key="input.4k1.fsv_sig" |
| 45 | value="/data/local/tmp/authfs/input.4k1.fsv_sig" /> |
| 46 | <option name="push-file" key="input.4k.fsv_sig" |
| 47 | value="/data/local/tmp/authfs/input.4k.fsv_sig" /> |
| 48 | <option name="push-file" key="input.4m.merkle_dump" |
| 49 | value="/data/local/tmp/authfs/input.4m.merkle_dump" /> |
| 50 | <option name="push-file" key="input.4m.merkle_dump.bad" |
| 51 | value="/data/local/tmp/authfs/input.4m.merkle_dump.bad" /> |
| 52 | <option name="push-file" key="input.4k1.merkle_dump" |
| 53 | value="/data/local/tmp/authfs/input.4k1.merkle_dump" /> |
| 54 | <option name="push-file" key="input.4k.merkle_dump" |
| 55 | value="/data/local/tmp/authfs/input.4k.merkle_dump" /> |
| 56 | </target_preparer> |
| 57 | |
| 58 | <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" > |
| 59 | <option name="jar" value="AuthFsHostTest.jar" /> |
| 60 | </test> |
| 61 | </configuration> |