ANDROID: Add specific kselftests in the selftests source code directory.
Bug: 339748167
Change-Id: Ic3b3ba6fa6192fc19070808ce263a957691bcb41
Signed-off-by: Darren Chang <chihsheng@google.com>
diff --git a/tools/testing/selftests/breakpoints/TEST_MAPPING b/tools/testing/selftests/breakpoints/TEST_MAPPING
new file mode 100644
index 0000000..d2110a3b
--- /dev/null
+++ b/tools/testing/selftests/breakpoints/TEST_MAPPING
@@ -0,0 +1,12 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_breakpoints_breakpoint_test"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/capabilities/TEST_MAPPING b/tools/testing/selftests/capabilities/TEST_MAPPING
new file mode 100644
index 0000000..1443760
--- /dev/null
+++ b/tools/testing/selftests/capabilities/TEST_MAPPING
@@ -0,0 +1,12 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_capabilities_test_execve"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/futex/TEST_MAPPING b/tools/testing/selftests/futex/TEST_MAPPING
new file mode 100644
index 0000000..a80b6eb
--- /dev/null
+++ b/tools/testing/selftests/futex/TEST_MAPPING
@@ -0,0 +1,93 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_futex_requeue"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_500k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_5k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_b"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_b_500k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_b_5k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bl"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bl_2G"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bl_500k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bl_5k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bo"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bo_500k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_bo_5k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_l"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_l_2G"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_l_500k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_l_5k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_mismatched_ops"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_o"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_o_500k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_o_5k"
+ },
+ {
+ "include-filter": "kselftest_futex_requeue_pi_signal_restart"
+ },
+ {
+ "include-filter": "kselftest_futex_wait"
+ },
+ {
+ "include-filter": "kselftest_futex_wait_private_mapped_file"
+ },
+ {
+ "include-filter": "kselftest_futex_wait_timeout"
+ },
+ {
+ "include-filter": "kselftest_futex_wait_uninitialized_heap"
+ },
+ {
+ "include-filter": "kselftest_futex_wait_wouldblock"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/kcmp/TEST_MAPPING b/tools/testing/selftests/kcmp/TEST_MAPPING
new file mode 100644
index 0000000..c03778b
--- /dev/null
+++ b/tools/testing/selftests/kcmp/TEST_MAPPING
@@ -0,0 +1,12 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_kcmp_kcmp_test"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/mm/TEST_MAPPING b/tools/testing/selftests/mm/TEST_MAPPING
index dd70128..392898b 100644
--- a/tools/testing/selftests/mm/TEST_MAPPING
+++ b/tools/testing/selftests/mm/TEST_MAPPING
@@ -1,18 +1,18 @@
{
- "presubmit": [
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
{
- "name": "selftests",
- "options": [
- {
- "include-filter": "kselftest_mm_mremap_dontunmap"
- },
- {
- "include-filter": "kselftest_mm_mremap_test"
- },
- {
- "include-filter": "kselftest_mm_uffd_unit_tests"
- }
- ]
+ "include-filter": "kselftest_mm_mremap_dontunmap"
+ },
+ {
+ "include-filter": "kselftest_mm_mremap_test"
+ },
+ {
+ "include-filter": "kselftest_mm_uffd_unit_tests"
}
- ]
+ ]
+ }
+ ]
}
\ No newline at end of file
diff --git a/tools/testing/selftests/net/TEST_MAPPING b/tools/testing/selftests/net/TEST_MAPPING
new file mode 100644
index 0000000..4d06984
--- /dev/null
+++ b/tools/testing/selftests/net/TEST_MAPPING
@@ -0,0 +1,18 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_net_psock_tpacket"
+ },
+ {
+ "include-filter": "kselftest_net_reuseaddr_conflict"
+ },
+ {
+ "include-filter": "kselftest_net_socket"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/ptrace/TEST_MAPPING b/tools/testing/selftests/ptrace/TEST_MAPPING
new file mode 100644
index 0000000..cfa2f94
--- /dev/null
+++ b/tools/testing/selftests/ptrace/TEST_MAPPING
@@ -0,0 +1,12 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_ptrace_peeksiginfo"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/rtc/TEST_MAPPING b/tools/testing/selftests/rtc/TEST_MAPPING
new file mode 100644
index 0000000..19679e5
--- /dev/null
+++ b/tools/testing/selftests/rtc/TEST_MAPPING
@@ -0,0 +1,12 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_rtc_rtctest"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/size/TEST_MAPPING b/tools/testing/selftests/size/TEST_MAPPING
new file mode 100644
index 0000000..4f6fb38
--- /dev/null
+++ b/tools/testing/selftests/size/TEST_MAPPING
@@ -0,0 +1,12 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_size_test_get_size"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/timers/TEST_MAPPING b/tools/testing/selftests/timers/TEST_MAPPING
new file mode 100644
index 0000000..7397b42
--- /dev/null
+++ b/tools/testing/selftests/timers/TEST_MAPPING
@@ -0,0 +1,33 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_timers_inconsistency_check"
+ },
+ {
+ "include-filter": "kselftest_timers_nanosleep"
+ },
+ {
+ "include-filter": "kselftest_timers_nsleep_lat"
+ },
+ {
+ "include-filter": "kselftest_timers_posix_timers"
+ },
+ {
+ "include-filter": "kselftest_timers_set_timer_lat"
+ },
+ {
+ "include-filter": "kselftest_timers_tests_raw_skew"
+ },
+ {
+ "include-filter": "kselftest_timers_threadtest"
+ },
+ {
+ "include-filter": "kselftest_timers_valid_adjtimex"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/vDSO/TEST_MAPPING b/tools/testing/selftests/vDSO/TEST_MAPPING
new file mode 100644
index 0000000..6776c3d
--- /dev/null
+++ b/tools/testing/selftests/vDSO/TEST_MAPPING
@@ -0,0 +1,21 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_vdso_vdso_test_abi"
+ },
+ {
+ "include-filter": "kselftest_vdso_vdso_test_clock_getres"
+ },
+ {
+ "include-filter": "kselftest_vdso_vdso_test_getcpu"
+ },
+ {
+ "include-filter": "kselftest_vdso_vdso_test_gettimeofday"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tools/testing/selftests/x86/TEST_MAPPING b/tools/testing/selftests/x86/TEST_MAPPING
new file mode 100644
index 0000000..e0a248c
--- /dev/null
+++ b/tools/testing/selftests/x86/TEST_MAPPING
@@ -0,0 +1,27 @@
+{
+ "presubmit": [
+ {
+ "name": "selftests",
+ "options": [
+ {
+ "include-filter": "kselftest_x86_check_initial_reg_state"
+ },
+ {
+ "include-filter": "kselftest_x86_ldt_gdt"
+ },
+ {
+ "include-filter": "kselftest_x86_ptrace_syscall"
+ },
+ {
+ "include-filter": "kselftest_x86_single_step_syscall"
+ },
+ {
+ "include-filter": "kselftest_x86_syscall_nt"
+ },
+ {
+ "include-filter": "kselftest_x86_test_mremap_vdso"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file