2020-10-15 12:33:20 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2020 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 Virtualization host tests">
|
|
|
|
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- Kernel has KVM enabled. -->
|
|
|
|
<option name="run-command" value="ls /dev/kvm" />
|
|
|
|
<!-- Kernel has vhost-vsock enabled. -->
|
|
|
|
<option name="run-command" value="ls /dev/vhost-vsock" />
|
|
|
|
<!-- CrosVM is installed. -->
|
|
|
|
<option name="run-command" value="which crosvm" />
|
|
|
|
</target_preparer>
|
|
|
|
|
|
|
|
<!-- Push test binaries to the device. -->
|
|
|
|
<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="virt_hostside_tests_kernel-arm64" value="/data/local/tmp/virt-test/arm64/kernel" />
|
|
|
|
<option name="push-file" key="virt_hostside_tests_initramfs-arm64" value="/data/local/tmp/virt-test/arm64/initramfs" />
|
|
|
|
<option name="push-file" key="virt_hostside_tests_kernel-x86_64" value="/data/local/tmp/virt-test/x86_64/kernel" />
|
|
|
|
<option name="push-file" key="virt_hostside_tests_initramfs-x86_64" value="/data/local/tmp/virt-test/x86_64/initramfs" />
|
2020-10-15 12:19:25 +00:00
|
|
|
<option name="push-file" key="virt_hostside_tests_vsock_server" value="/data/local/tmp/virt-test" />
|
2020-10-15 12:33:20 +00:00
|
|
|
</target_preparer>
|
|
|
|
|
|
|
|
<!-- Root currently needed to run CrosVM.
|
|
|
|
TODO: Give sufficient permissions to the adb shell user (b/171240450). -->
|
|
|
|
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
|
|
|
|
|
|
|
|
<test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
|
|
|
|
<option name="jar" value="VirtualizationHostTestCases.jar" />
|
|
|
|
<option name="runtime-hint" value="2m" />
|
|
|
|
</test>
|
|
|
|
</configuration>
|