| <?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. |
| --> |
| <!DOCTYPE configuration [ |
| <!ENTITY ktest_dir "/data/local/tmp/{MODULE}"> |
| ]> |
| <configuration description="Runs vts_linux_kselftest."> |
| <option name="test-suite-tag" value="vts" /> |
| <option name="config-descriptor:metadata" key="component" value="kselftests" /> |
| |
| <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> |
| <target_preparer class="com.android.tradefed.targetprep.StopServicesSetup" /> |
| |
| <object type="module_controller" class="com.android.tradefed.testtype.suite.module.KernelTestModuleController" > |
| <option name="arch" value="riscv64"/> |
| </object> |
| |
| <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| <option name="cleanup" value="true" /> |
| <option name="push-file" key="{MODULE}" value="&ktest_dir;" /> |
| <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"' /> |
| </target_preparer> |
| |
| <test class="com.android.tradefed.testtype.binary.KernelTargetTest" > |
| <option name="exit-code-skip" value="4" /> |
| <option name="skip-binary-check" value="true" /> |
| <option name="test-command-line" key="capabilities_test_execve_riscv_64" value="cd &ktest_dir;/*/.; ./test_execve" /> |
| <option name="test-command-line" key="futex_functional_run.sh_riscv_64" value="cd &ktest_dir;/*/.; USE_COLOR=0 ./run.sh" /> |
| <option name="min-kernel-version" key="futex_functional_run.sh_riscv_64" value="5.1" /> |
| <option name="test-command-line" key="kcmp_kcmp_test_riscv_64" value="cd &ktest_dir;/*/.; ./kcmp_test" /> |
| <option name="test-command-line" key="net_psock_tpacket_riscv_64" value="cd &ktest_dir;/*/.; ./psock_tpacket" /> |
| <option name="test-command-line" key="net_reuseaddr_conflict_riscv_64" value="cd &ktest_dir;/*/.; ./reuseaddr_conflict" /> |
| <option name="test-command-line" key="net_socket_riscv_64" value="cd &ktest_dir;/*/.; ./socket" /> |
| <option name="test-command-line" key="ptrace_peeksiginfo_riscv_64" value="cd &ktest_dir;/*/.; ./peeksiginfo" /> |
| <option name="test-command-line" key="rtc_rtctest_riscv_64" value="cd &ktest_dir;/*/.; ./rtctest" /> |
| <option name="test-command-line" key="seccomp_seccomp_bpf_riscv_64" value="cd &ktest_dir;/*/.; ./seccomp_bpf" /> |
| <option name="test-command-line" key="size_get_size_riscv_64" value="cd &ktest_dir;/*/.; ./get_size" /> |
| <option name="test-command-line" key="splice_default_file_splice_read.sh_riscv_64" value="cd &ktest_dir;/*/.; ./default_file_splice_read.sh" /> |
| <option name="test-command-line" key="timers_inconsistency-check_riscv_64" value="cd &ktest_dir;/*/.; ./inconsistency-check" /> |
| <option name="test-command-line" key="timers_nanosleep_riscv_64" value="cd &ktest_dir;/*/.; ./nanosleep" /> |
| <option name="test-command-line" key="timers_nsleep-lat_riscv_64" value="cd &ktest_dir;/*/.; ./nsleep-lat" /> |
| <option name="test-command-line" key="timers_posix_timers_riscv_64" value="cd &ktest_dir;/*/.; ./posix_timers" /> |
| <option name="test-command-line" key="timers_raw_skew_riscv_64" value="cd &ktest_dir;/*/.; ./raw_skew" /> |
| <option name="test-command-line" key="timers_set-tai_riscv_64" value="cd &ktest_dir;/*/.; ./set-tai" /> |
| <option name="test-command-line" key="timers_set-timer-lat_riscv_64" value="cd &ktest_dir;/*/.; ./set-timer-lat" /> |
| <option name="test-command-line" key="timers_threadtest_riscv_64" value="cd &ktest_dir;/*/.; ./threadtest" /> |
| <option name="test-command-line" key="timers_valid-adjtimex_riscv_64" value="cd &ktest_dir;/*/.; ./valid-adjtimex" /> |
| <option name="test-command-line" key="vDSO_kselftest_vdso_test_riscv_64" value="cd &ktest_dir;/*/.; ./kselftest_vdso_test" /> |
| </test> |
| </configuration> |
| |