You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.3 KiB
62 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 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="Config for authfs tests">
|
|
<!-- Since Android does not support user namespace, we need root to access /dev/fuse and also
|
|
to set up the mount. -->
|
|
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
|
|
|
|
<!-- Basic checks that the device has all the prerequisites. -->
|
|
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
|
<option name="throw-if-cmd-fail" value="true" />
|
|
<!-- Make sure kernel has FUSE enabled. -->
|
|
<option name="run-command" value="ls /dev/fuse" />
|
|
<!-- Make sure necessary executables are installed. -->
|
|
<option name="run-command" value="ls /apex/com.android.virt/bin/fd_server" />
|
|
<option name="run-command" value="ls /apex/com.android.virt/bin/authfs" />
|
|
<!-- Prepare test directory. -->
|
|
<option name="run-command" value="mkdir -p /data/local/tmp/authfs/mnt" />
|
|
<option name="teardown-command" value="rm -rf /data/local/tmp/authfs" />
|
|
</target_preparer>
|
|
|
|
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
|
<option name="cleanup" value="true" />
|
|
<option name="abort-on-push-failure" value="true" />
|
|
<option name="push-file" key="cert.der" value="/data/local/tmp/authfs/cert.der" />
|
|
<option name="push-file" key="input.4m" value="/data/local/tmp/authfs/input.4m" />
|
|
<option name="push-file" key="input.4k1" value="/data/local/tmp/authfs/input.4k1" />
|
|
<option name="push-file" key="input.4k" value="/data/local/tmp/authfs/input.4k" />
|
|
<option name="push-file" key="input.4m.fsv_sig"
|
|
value="/data/local/tmp/authfs/input.4m.fsv_sig" />
|
|
<option name="push-file" key="input.4k1.fsv_sig"
|
|
value="/data/local/tmp/authfs/input.4k1.fsv_sig" />
|
|
<option name="push-file" key="input.4k.fsv_sig"
|
|
value="/data/local/tmp/authfs/input.4k.fsv_sig" />
|
|
<option name="push-file" key="input.4m.merkle_dump"
|
|
value="/data/local/tmp/authfs/input.4m.merkle_dump" />
|
|
<option name="push-file" key="input.4m.merkle_dump.bad"
|
|
value="/data/local/tmp/authfs/input.4m.merkle_dump.bad" />
|
|
<option name="push-file" key="input.4k1.merkle_dump"
|
|
value="/data/local/tmp/authfs/input.4k1.merkle_dump" />
|
|
<option name="push-file" key="input.4k.merkle_dump"
|
|
value="/data/local/tmp/authfs/input.4k.merkle_dump" />
|
|
</target_preparer>
|
|
|
|
<test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
|
|
<option name="jar" value="AuthFsHostTest.jar" />
|
|
</test>
|
|
</configuration>
|