1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
| #
| # Copyright (C) 2016 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.
| #
|
| from vts.testcases.kernel.linux_kselftest import test_case
|
| class ConfigKeys(object):
| TEST_TYPE = "test_type"
|
| class ExitCode(object):
| """Exit codes for test binaries and test scripts."""
| KSFT_PASS = 0
| KSFT_FAIL = 1
| KSFT_XPASS = 2
| KSFT_XFAIL = 3
| KSFT_SKIP = 4
|
| # Directory on the target where the tests are copied.
| KSFT_DIR = "/data/local/tmp/linux-kselftest"
|
| # Presubmit, stable, and staging lists are always mutually exclusive.
| KSFT_CASES_PRESUBMIT = map(lambda x: test_case.LinuxKselftestTestcase(*(x)), [
| ])
|
| KSFT_CASES_STABLE = map(lambda x: test_case.LinuxKselftestTestcase(*(x)), [
| ("breakpoints", "breakpoint_test_arm64", ["arm"], [64]),
| ("capabilities", "test_execve", ["arm", "x86"], [32, 64]),
| ("futex/functional", "run.sh", ["arm", "x86"], [32, 64]),
| ("kcmp", "kcmp_test", ["arm", "x86"], [32, 64]),
| ("net", "psock_tpacket", ["arm", "x86"], [64]),
| ("net", "reuseaddr_conflict", ["arm", "x86"], [32, 64]),
| ("net", "socket", ["arm", "x86"], [32, 64]),
| ("ptrace", "peeksiginfo", ["arm", "x86"], [64]),
| ("rtc", "rtctest", ["arm", "x86"], [32, 64]),
| ("seccomp", "seccomp_bpf", ["arm", "x86"], [32, 64]),
| ("size", "get_size", ["arm", "x86"], [32, 64]),
| ("splice", "default_file_splice_read.sh", ["arm", "x86"], [32, 64]),
| ("timers", "inconsistency-check", ["arm", "x86"], [32, 64]),
| ("timers", "nanosleep", ["arm", "x86"], [32, 64]),
| ("timers", "nsleep-lat", ["arm", "x86"], [32, 64]),
| ("timers", "posix_timers", ["arm", "x86"], [32, 64]),
| ("timers", "raw_skew", ["arm", "x86"], [32, 64]),
| ("timers", "set-tai", ["arm", "x86"], [32, 64]),
| ("timers", "set-timer-lat", ["arm", "x86"], [32, 64]),
| ("timers", "threadtest", ["arm", "x86"], [32, 64]),
| ("timers", "valid-adjtimex", ["arm", "x86"], [32, 64]),
| ("vDSO", "kselftest_vdso_test", ["arm", "x86"], [64]),
| ("x86", "single_step_syscall", ["x86"], [32, 64]),
| ("x86", "sysret_ss_attrs", ["x86"], [32]),
| ("x86", "syscall_nt", ["x86"], [32, 64]),
| ("x86", "ptrace_syscall", ["x86"], [32, 64]),
| ("x86", "test_mremap_vdso", ["x86"], [32, 64]),
| ("x86", "check_initial_reg_state", ["x86"], [32, 64]),
| ("x86", "ldt_gdt", ["x86"], [32, 64]),
| ("x86", "syscall_arg_fault", ["x86"], [32]),
| ("x86", "test_syscall_vdso", ["x86"], [32]),
| ("x86", "unwind_vdso", ["x86"], [32]),
| ("x86", "test_FCMOV", ["x86"], [32]),
| ("x86", "test_FCOMI", ["x86"], [32]),
| ("x86", "test_FISTTP", ["x86"], [32]),
| ("x86", "vdso_restorer", ["x86"], [32]),
| ])
|
| KSFT_CASES_STAGING = map(lambda x: test_case.LinuxKselftestTestcase(*(x)), [
| # b/79702574
| # ("efivarfs", "efivarfs.sh", ["arm", "x86"], [32, 64]),
| # TODO(trong): enable pstore test.
| # ("pstore/pstore_tests", ["arm", "x86"], [32, 64]),
| # b/69687141
| # ("exec", "execveat.sh", ["arm", "x86"], [32, 64]),
| # b/69667484
| # ("vm", "run_vmtests", ["arm", "x86"], [32, 64]),
| ])
|
|