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="arm"/> 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_arm_32" value="cd &ktest_dir;/*/.; ./binderfs_test" /> 39 <option name="test-command-line" key="capabilities_test_execve_arm_32" value="cd &ktest_dir;/*/.; ./test_execve" /> 40 <option name="test-command-line" key="futex_functional_run.sh_arm_32" value="cd &ktest_dir;/*/.; USE_COLOR=0 ./run.sh" /> 41 <option name="min-kernel-version" key="futex_functional_run.sh_arm_32" value="5.1" /> 42 <option name="test-command-line" key="kcmp_kcmp_test_arm_32" value="cd &ktest_dir;/*/.; ./kcmp_test" /> 43 <option name="test-command-line" key="net_reuseaddr_conflict_arm_32" value="cd &ktest_dir;/*/.; ./reuseaddr_conflict" /> 44 <option name="test-command-line" key="net_socket_arm_32" value="cd &ktest_dir;/*/.; ./socket" /> 45 <option name="test-command-line" key="rtc_rtctest_arm_32" value="cd &ktest_dir;/*/.; ./rtctest" /> 46 <option name="test-command-line" key="seccomp_seccomp_bpf_arm_32" value="cd &ktest_dir;/*/.; ./seccomp_bpf" /> 47 <option name="test-command-line" key="size_get_size_arm_32" value="cd &ktest_dir;/*/.; ./get_size" /> 48 <option name="test-command-line" key="splice_default_file_splice_read.sh_arm_32" value="cd &ktest_dir;/*/.; ./default_file_splice_read.sh" /> 49 <option name="test-command-line" key="timers_inconsistency-check_arm_32" value="cd &ktest_dir;/*/.; ./inconsistency-check" /> 50 <option name="test-command-line" key="timers_nanosleep_arm_32" value="cd &ktest_dir;/*/.; ./nanosleep" /> 51 <option name="test-command-line" key="timers_nsleep-lat_arm_32" value="cd &ktest_dir;/*/.; ./nsleep-lat" /> 52 <option name="test-command-line" key="timers_posix_timers_arm_32" value="cd &ktest_dir;/*/.; ./posix_timers" /> 53 <option name="test-command-line" key="timers_raw_skew_arm_32" value="cd &ktest_dir;/*/.; ./raw_skew" /> 54 <option name="test-command-line" key="timers_set-tai_arm_32" value="cd &ktest_dir;/*/.; ./set-tai" /> 55 <option name="test-command-line" key="timers_set-timer-lat_arm_32" value="cd &ktest_dir;/*/.; ./set-timer-lat" /> 56 <option name="test-command-line" key="timers_threadtest_arm_32" value="cd &ktest_dir;/*/.; ./threadtest" /> 57 <option name="test-command-line" key="timers_valid-adjtimex_arm_32" value="cd &ktest_dir;/*/.; ./valid-adjtimex" /> 58 <option name="test-command-line" key="vm_mremap_dontunmap_arm_32" value="cd &ktest_dir;/*/.; ./mremap_dontunmap" /> 59 <option name="test-command-line" key="vm_userfaultfd_anon_arm_32" value="cd &ktest_dir;/*/.; ./userfaultfd anon 32 99" /> 60 <option name="test-command-line" key="vm_userfaultfd_shmem_arm_32" value="cd &ktest_dir;/*/.; ./userfaultfd shmem 32 99" /> 61 </test> 62</configuration> 63 64