1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 The Android Open Source Project 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 http://www.apache.org/licenses/LICENSE-2.0 7 Unless required by applicable law or agreed to in writing, software 8 distributed under the License is distributed on an "AS IS" BASIS, 9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 See the License for the specific language governing permissions and 11 limitations under the License. 12--> 13<!DOCTYPE configuration [ 14<!ENTITY ktest_dir "/data/local/tmp/{MODULE}"> 15]> 16<configuration description="Runs vts_linux_kselftest."> 17 <option name="test-suite-tag" value="vts" /> 18 <option name="config-descriptor:metadata" key="component" value="kselftests" /> 19 20 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 21 <target_preparer class="com.android.tradefed.targetprep.StopServicesSetup" /> 22 23 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.KernelTestModuleController" > 24 <option name="arch" value="x86"/> 25 </object> 26 27 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 28 <option name="cleanup" value="true" /> 29 <option name="push-file" key="{MODULE}" value="&ktest_dir;" /> 30 <option name="post-push" value='chmod -R 755 &ktest_dir;; find &ktest_dir; -type f | xargs grep -l -e "bin/sh" -e "bin/bash" | xargs sed -i -e "s?/bin/echo?echo?" -i -e "s?#!/bin/sh?#!/system/bin/sh?" -i -e "s?#!/bin/bash?#!/system/bin/sh?" || echo "There were no files to process"' /> 31 </target_preparer> 32 33 <test class="com.android.tradefed.testtype.binary.KernelTargetTest" > 34 <option name="exit-code-skip" value="4" /> 35 <option name="skip-binary-check" value="true" /> 36 <option name="abort-if-device-lost" value="true" /> 37 <option name="abort-if-root-lost" value="true" /> 38 <option name="test-command-line" key="binderfs_x86_32" value="cd &ktest_dir;/*/.; ./binderfs_test" /> 39 <option name="test-command-line" key="capabilities_test_execve_x86_32" value="cd &ktest_dir;/*/.; ./test_execve" /> 40 <option name="test-command-line" key="futex_functional_run.sh_x86_32" value="cd &ktest_dir;/*/.; USE_COLOR=0 ./run.sh" /> 41 <option name="min-kernel-version" key="futex_functional_run.sh_x86_32" value="5.1" /> 42 <option name="test-command-line" key="kcmp_kcmp_test_x86_32" value="cd &ktest_dir;/*/.; ./kcmp_test" /> 43 <option name="test-command-line" key="net_reuseaddr_conflict_x86_32" value="cd &ktest_dir;/*/.; ./reuseaddr_conflict" /> 44 <option name="test-command-line" key="net_socket_x86_32" value="cd &ktest_dir;/*/.; ./socket" /> 45 <option name="test-command-line" key="rtc_rtctest_x86_32" value="cd &ktest_dir;/*/.; ./rtctest" /> 46 <option name="test-command-line" key="seccomp_seccomp_bpf_x86_32" value="cd &ktest_dir;/*/.; ./seccomp_bpf" /> 47 <option name="test-command-line" key="size_get_size_x86_32" value="cd &ktest_dir;/*/.; ./get_size" /> 48 <option name="test-command-line" key="splice_default_file_splice_read.sh_x86_32" value="cd &ktest_dir;/*/.; ./default_file_splice_read.sh" /> 49 <option name="test-command-line" key="timers_inconsistency-check_x86_32" value="cd &ktest_dir;/*/.; ./inconsistency-check" /> 50 <option name="test-command-line" key="timers_nanosleep_x86_32" value="cd &ktest_dir;/*/.; ./nanosleep" /> 51 <option name="test-command-line" key="timers_nsleep-lat_x86_32" value="cd &ktest_dir;/*/.; ./nsleep-lat" /> 52 <option name="test-command-line" key="timers_posix_timers_x86_32" value="cd &ktest_dir;/*/.; ./posix_timers" /> 53 <option name="test-command-line" key="timers_raw_skew_x86_32" value="cd &ktest_dir;/*/.; ./raw_skew" /> 54 <option name="test-command-line" key="timers_set-tai_x86_32" value="cd &ktest_dir;/*/.; ./set-tai" /> 55 <option name="test-command-line" key="timers_set-timer-lat_x86_32" value="cd &ktest_dir;/*/.; ./set-timer-lat" /> 56 <option name="test-command-line" key="timers_threadtest_x86_32" value="cd &ktest_dir;/*/.; ./threadtest" /> 57 <option name="test-command-line" key="timers_valid-adjtimex_x86_32" value="cd &ktest_dir;/*/.; ./valid-adjtimex" /> 58 <option name="test-command-line" key="x86_single_step_syscall_x86_32" value="cd &ktest_dir;/*/.; ./single_step_syscall" /> 59 <option name="test-command-line" key="x86_sysret_ss_attrs_x86_32" value="cd &ktest_dir;/*/.; ./sysret_ss_attrs" /> 60 <option name="test-command-line" key="x86_syscall_nt_x86_32" value="cd &ktest_dir;/*/.; ./syscall_nt" /> 61 <option name="test-command-line" key="x86_ptrace_syscall_x86_32" value="cd &ktest_dir;/*/.; ./ptrace_syscall" /> 62 <option name="test-command-line" key="x86_test_mremap_vdso_x86_32" value="cd &ktest_dir;/*/.; ./test_mremap_vdso" /> 63 <option name="test-command-line" key="x86_check_initial_reg_state_x86_32" value="cd &ktest_dir;/*/.; ./check_initial_reg_state" /> 64 <option name="test-command-line" key="x86_ldt_gdt_x86_32" value="cd &ktest_dir;/*/.; ./ldt_gdt" /> 65 <option name="test-command-line" key="x86_syscall_arg_fault_x86_32" value="cd &ktest_dir;/*/.; ./syscall_arg_fault" /> 66 <option name="test-command-line" key="x86_test_syscall_vdso_x86_32" value="cd &ktest_dir;/*/.; ./test_syscall_vdso" /> 67 <option name="test-command-line" key="x86_unwind_vdso_x86_32" value="cd &ktest_dir;/*/.; ./unwind_vdso" /> 68 <option name="test-command-line" key="x86_test_FCMOV_x86_32" value="cd &ktest_dir;/*/.; ./test_FCMOV" /> 69 <option name="test-command-line" key="x86_test_FCOMI_x86_32" value="cd &ktest_dir;/*/.; ./test_FCOMI" /> 70 <option name="test-command-line" key="x86_test_FISTTP_x86_32" value="cd &ktest_dir;/*/.; ./test_FISTTP" /> 71 <option name="test-command-line" key="x86_vdso_restorer_x86_32" value="cd &ktest_dir;/*/.; ./vdso_restorer" /> 72 <option name="test-command-line" key="vm_mremap_dontunmap_x86_32" value="cd &ktest_dir;/*/.; ./mremap_dontunmap" /> 73 <option name="test-command-line" key="vm_userfaultfd_anon_x86_32" value="cd &ktest_dir;/*/.; ./userfaultfd anon 32 99" /> 74 <option name="test-command-line" key="vm_userfaultfd_shmem_x86_32" value="cd &ktest_dir;/*/.; ./userfaultfd shmem 32 99" /> 75 </test> 76</configuration> 77 78