mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 20:59:37 +02:00
ANDROID: Define common set of cflags for kselftests
Use a common set of cflags (-D_GNU_SOURCE= and -pthread) for all kselftests. This should avoid _GNU_SOURCE issues going forward, make it easier to change copts that apply to all tests, and eliminate some configuration duplication. Bug: 339526723 Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:c932d348c5f7de8844ae8d32c49f2a1663fa887f) Merged-In: If0f9f4a2aaa397c1d0cb1df8ea9fd1e3bec19149 Change-Id: If0f9f4a2aaa397c1d0cb1df8ea9fd1e3bec19149
This commit is contained in:
parent
4a43fd065f
commit
fa174340be
214
BUILD.bazel
214
BUILD.bazel
|
@ -972,6 +972,15 @@ ddk_headers(
|
||||||
|
|
||||||
_KSELFTEST_DIR = "testcases/selftests"
|
_KSELFTEST_DIR = "testcases/selftests"
|
||||||
|
|
||||||
|
_KSELFTEST_COPTS = [
|
||||||
|
"-O3",
|
||||||
|
"-pthread",
|
||||||
|
"-std=gnu99",
|
||||||
|
] + select({
|
||||||
|
":arm": ["-mcpu=cortex-a8"],
|
||||||
|
"//conditions:default": [],
|
||||||
|
})
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "x86_64",
|
name = "x86_64",
|
||||||
values = {"platforms": "//build/kernel/kleaf/impl:android_x86_64"},
|
values = {"platforms": "//build/kernel/kleaf/impl:android_x86_64"},
|
||||||
|
@ -999,12 +1008,17 @@ config_setting(
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "kselftest_headers_lib",
|
name = "kselftest_headers_lib",
|
||||||
hdrs = glob(["tools/testing/selftests/*.h"]),
|
hdrs = glob(["tools/testing/selftests/*.h"]),
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
|
defines = [
|
||||||
|
"_GNU_SOURCE=",
|
||||||
|
],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_binderfs_binderfs_test",
|
name = "kselftest_binderfs_binderfs_test",
|
||||||
srcs = ["tools/testing/selftests/filesystems/binderfs/binderfs_test.c"],
|
srcs = ["tools/testing/selftests/filesystems/binderfs/binderfs_test.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1019,6 +1033,7 @@ cc_binary_with_abi(
|
||||||
":arm64": ["tools/testing/selftests/breakpoints/breakpoint_test_arm64.c"],
|
":arm64": ["tools/testing/selftests/breakpoints/breakpoint_test_arm64.c"],
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}),
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1028,6 +1043,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_kcmp_kcmp_test",
|
name = "kselftest_kcmp_kcmp_test",
|
||||||
srcs = ["tools/testing/selftests/kcmp/kcmp_test.c"],
|
srcs = ["tools/testing/selftests/kcmp/kcmp_test.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1037,6 +1053,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_ptrace_peeksiginfo",
|
name = "kselftest_ptrace_peeksiginfo",
|
||||||
srcs = ["tools/testing/selftests/ptrace/peeksiginfo.c"],
|
srcs = ["tools/testing/selftests/ptrace/peeksiginfo.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1046,6 +1063,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_rtc_rtctest",
|
name = "kselftest_rtc_rtctest",
|
||||||
srcs = ["tools/testing/selftests/rtc/rtctest.c"],
|
srcs = ["tools/testing/selftests/rtc/rtctest.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1059,12 +1077,14 @@ cc_library(
|
||||||
"tools/testing/selftests/vDSO/parse_vdso.h",
|
"tools/testing/selftests/vDSO/parse_vdso.h",
|
||||||
"tools/testing/selftests/vDSO/vdso_config.h",
|
"tools/testing/selftests/vDSO/vdso_config.h",
|
||||||
],
|
],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_vdso_vdso_test_abi",
|
name = "kselftest_vdso_vdso_test_abi",
|
||||||
srcs = ["tools/testing/selftests/vDSO/vdso_test_abi.c"],
|
srcs = ["tools/testing/selftests/vDSO/vdso_test_abi.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1077,6 +1097,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_vdso_vdso_test_clock_getres",
|
name = "kselftest_vdso_vdso_test_clock_getres",
|
||||||
srcs = ["tools/testing/selftests/vDSO/vdso_test_clock_getres.c"],
|
srcs = ["tools/testing/selftests/vDSO/vdso_test_clock_getres.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1089,6 +1110,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_vdso_vdso_test_getcpu",
|
name = "kselftest_vdso_vdso_test_getcpu",
|
||||||
srcs = ["tools/testing/selftests/vDSO/vdso_test_getcpu.c"],
|
srcs = ["tools/testing/selftests/vDSO/vdso_test_getcpu.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1101,6 +1123,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_vdso_vdso_test_gettimeofday",
|
name = "kselftest_vdso_vdso_test_gettimeofday",
|
||||||
srcs = ["tools/testing/selftests/vDSO/vdso_test_gettimeofday.c"],
|
srcs = ["tools/testing/selftests/vDSO/vdso_test_gettimeofday.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1113,6 +1136,7 @@ cc_binary_with_abi(
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "kselftest_futex_headers_lib",
|
name = "kselftest_futex_headers_lib",
|
||||||
hdrs = glob(["tools/testing/selftests/futex/include/*.h"]),
|
hdrs = glob(["tools/testing/selftests/futex/include/*.h"]),
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1120,10 +1144,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_requeue_pi_mismatched_ops",
|
name = "kselftest_futex_futex_requeue_pi_mismatched_ops",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c"],
|
||||||
out = "futex_requeue_pi_mismatched_ops",
|
out = "futex_requeue_pi_mismatched_ops",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1141,10 +1162,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_requeue_pi_signal_restart",
|
name = "kselftest_futex_futex_requeue_pi_signal_restart",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c"],
|
||||||
out = "futex_requeue_pi_signal_restart",
|
out = "futex_requeue_pi_signal_restart",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1162,10 +1180,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_requeue_pi",
|
name = "kselftest_futex_futex_requeue_pi",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue_pi.c"],
|
||||||
out = "futex_requeue_pi",
|
out = "futex_requeue_pi",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1183,10 +1198,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_requeue",
|
name = "kselftest_futex_futex_requeue",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_requeue.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_requeue.c"],
|
||||||
out = "futex_requeue",
|
out = "futex_requeue",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1204,10 +1216,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_wait_private_mapped_file",
|
name = "kselftest_futex_futex_wait_private_mapped_file",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c"],
|
||||||
out = "futex_wait_private_mapped_file",
|
out = "futex_wait_private_mapped_file",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1225,10 +1234,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_wait_timeout",
|
name = "kselftest_futex_futex_wait_timeout",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_timeout.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_timeout.c"],
|
||||||
out = "futex_wait_timeout",
|
out = "futex_wait_timeout",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1246,10 +1252,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_wait_uninitialized_heap",
|
name = "kselftest_futex_futex_wait_uninitialized_heap",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c"],
|
||||||
out = "futex_wait_uninitialized_heap",
|
out = "futex_wait_uninitialized_heap",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1267,10 +1270,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_wait_wouldblock",
|
name = "kselftest_futex_futex_wait_wouldblock",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait_wouldblock.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait_wouldblock.c"],
|
||||||
out = "futex_wait_wouldblock",
|
out = "futex_wait_wouldblock",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1288,10 +1288,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_futex_futex_wait",
|
name = "kselftest_futex_futex_wait",
|
||||||
srcs = ["tools/testing/selftests/futex/functional/futex_wait.c"],
|
srcs = ["tools/testing/selftests/futex/functional/futex_wait.c"],
|
||||||
out = "futex_wait",
|
out = "futex_wait",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/futex/include",
|
"tools/testing/selftests/futex/include",
|
||||||
|
@ -1308,6 +1305,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_compaction_test",
|
name = "kselftest_mm_compaction_test",
|
||||||
srcs = ["tools/testing/selftests/mm/compaction_test.c"],
|
srcs = ["tools/testing/selftests/mm/compaction_test.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1321,6 +1319,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_hugepage_mmap",
|
name = "kselftest_mm_hugepage_mmap",
|
||||||
srcs = ["tools/testing/selftests/mm/hugepage-mmap.c"],
|
srcs = ["tools/testing/selftests/mm/hugepage-mmap.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1334,6 +1333,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_hugepage_shm",
|
name = "kselftest_mm_hugepage_shm",
|
||||||
srcs = ["tools/testing/selftests/mm/hugepage-shm.c"],
|
srcs = ["tools/testing/selftests/mm/hugepage-shm.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1347,6 +1347,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_map_hugetlb",
|
name = "kselftest_mm_map_hugetlb",
|
||||||
srcs = ["tools/testing/selftests/mm/map_hugetlb.c"],
|
srcs = ["tools/testing/selftests/mm/map_hugetlb.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1363,6 +1364,7 @@ cc_binary_with_abi(
|
||||||
"tools/testing/selftests/mm/mlock-random-test.c",
|
"tools/testing/selftests/mm/mlock-random-test.c",
|
||||||
"tools/testing/selftests/mm/mlock2.h",
|
"tools/testing/selftests/mm/mlock2.h",
|
||||||
],
|
],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/mm",
|
"tools/testing/selftests/mm",
|
||||||
|
@ -1382,6 +1384,7 @@ cc_binary_with_abi(
|
||||||
"tools/testing/selftests/mm/mlock2.h",
|
"tools/testing/selftests/mm/mlock2.h",
|
||||||
"tools/testing/selftests/mm/mlock2-tests.c",
|
"tools/testing/selftests/mm/mlock2-tests.c",
|
||||||
],
|
],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/mm",
|
"tools/testing/selftests/mm",
|
||||||
|
@ -1398,6 +1401,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_on_fault_limit",
|
name = "kselftest_mm_on_fault_limit",
|
||||||
srcs = ["tools/testing/selftests/mm/on-fault-limit.c"],
|
srcs = ["tools/testing/selftests/mm/on-fault-limit.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1411,6 +1415,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_mremap_dontunmap",
|
name = "kselftest_mm_mremap_dontunmap",
|
||||||
srcs = ["tools/testing/selftests/mm/mremap_dontunmap.c"],
|
srcs = ["tools/testing/selftests/mm/mremap_dontunmap.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1424,6 +1429,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_mm_mremap_test",
|
name = "kselftest_mm_mremap_test",
|
||||||
srcs = ["tools/testing/selftests/mm/mremap_test.c"],
|
srcs = ["tools/testing/selftests/mm/mremap_test.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1438,9 +1444,7 @@ cc_library(
|
||||||
name = "kselftest_mm_vm_util",
|
name = "kselftest_mm_vm_util",
|
||||||
srcs = ["tools/testing/selftests/mm/vm_util.c"],
|
srcs = ["tools/testing/selftests/mm/vm_util.c"],
|
||||||
hdrs = ["tools/testing/selftests/mm/vm_util.h"],
|
hdrs = ["tools/testing/selftests/mm/vm_util.h"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
],
|
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
deps = [
|
deps = [
|
||||||
":kselftest_headers_lib",
|
":kselftest_headers_lib",
|
||||||
|
@ -1452,8 +1456,7 @@ cc_binary_with_abi(
|
||||||
srcs = [
|
srcs = [
|
||||||
"tools/testing/selftests/mm/thuge-gen.c",
|
"tools/testing/selftests/mm/thuge-gen.c",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS + [
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
"-Wno-macro-redefined",
|
"-Wno-macro-redefined",
|
||||||
],
|
],
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
|
@ -1472,9 +1475,7 @@ cc_binary_with_abi(
|
||||||
srcs = [
|
srcs = [
|
||||||
"tools/testing/selftests/mm/transhuge-stress.c",
|
"tools/testing/selftests/mm/transhuge-stress.c",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-D_GNU_SOURCE=",
|
|
||||||
],
|
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/mm/",
|
"tools/testing/selftests/mm/",
|
||||||
|
@ -1498,6 +1499,7 @@ cc_library(
|
||||||
"tools/testing/selftests/kselftest.h",
|
"tools/testing/selftests/kselftest.h",
|
||||||
"tools/testing/selftests/mm/uffd-common.h",
|
"tools/testing/selftests/mm/uffd-common.h",
|
||||||
],
|
],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = [
|
includes = [
|
||||||
"include/uapi/",
|
"include/uapi/",
|
||||||
"tools/testing/selftests/mm/",
|
"tools/testing/selftests/mm/",
|
||||||
|
@ -1514,6 +1516,7 @@ cc_binary_with_abi(
|
||||||
srcs = [
|
srcs = [
|
||||||
"tools/testing/selftests/mm/uffd-unit-tests.c",
|
"tools/testing/selftests/mm/uffd-unit-tests.c",
|
||||||
],
|
],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = [
|
includes = [
|
||||||
"tools/testing/selftests",
|
"tools/testing/selftests",
|
||||||
"tools/testing/selftests/mm/",
|
"tools/testing/selftests/mm/",
|
||||||
|
@ -1532,7 +1535,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_size_test_get_size",
|
name = "kselftest_size_test_get_size",
|
||||||
srcs = ["tools/testing/selftests/size/get_size.c"],
|
srcs = ["tools/testing/selftests/size/get_size.c"],
|
||||||
copts = select({
|
copts = _KSELFTEST_COPTS + select({
|
||||||
":x86_64": ["-mstackrealign"],
|
":x86_64": ["-mstackrealign"],
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}),
|
||||||
|
@ -1549,9 +1552,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_adjtick",
|
name = "kselftest_timers_adjtick",
|
||||||
srcs = ["tools/testing/selftests/timers/adjtick.c"],
|
srcs = ["tools/testing/selftests/timers/adjtick.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1561,9 +1562,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_alarmtimer_suspend",
|
name = "kselftest_timers_alarmtimer_suspend",
|
||||||
srcs = ["tools/testing/selftests/timers/alarmtimer-suspend.c"],
|
srcs = ["tools/testing/selftests/timers/alarmtimer-suspend.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1573,9 +1572,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_change_skew",
|
name = "kselftest_timers_change_skew",
|
||||||
srcs = ["tools/testing/selftests/timers/change_skew.c"],
|
srcs = ["tools/testing/selftests/timers/change_skew.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1590,9 +1587,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_clocksource_switch",
|
name = "kselftest_timers_clocksource_switch",
|
||||||
srcs = ["tools/testing/selftests/timers/clocksource-switch.c"],
|
srcs = ["tools/testing/selftests/timers/clocksource-switch.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1606,9 +1601,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_freq_step",
|
name = "kselftest_timers_freq_step",
|
||||||
srcs = ["tools/testing/selftests/timers/freq-step.c"],
|
srcs = ["tools/testing/selftests/timers/freq-step.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1619,9 +1612,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_timers_inconsistency_check",
|
name = "kselftest_timers_inconsistency_check",
|
||||||
srcs = ["tools/testing/selftests/timers/inconsistency-check.c"],
|
srcs = ["tools/testing/selftests/timers/inconsistency-check.c"],
|
||||||
out = "inconsistency-check",
|
out = "inconsistency-check",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1631,9 +1622,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_leap_a_day",
|
name = "kselftest_timers_leap_a_day",
|
||||||
srcs = ["tools/testing/selftests/timers/leap-a-day.c"],
|
srcs = ["tools/testing/selftests/timers/leap-a-day.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1643,9 +1632,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_leapcrash",
|
name = "kselftest_timers_leapcrash",
|
||||||
srcs = ["tools/testing/selftests/timers/leapcrash.c"],
|
srcs = ["tools/testing/selftests/timers/leapcrash.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1656,9 +1643,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_timers_nanosleep",
|
name = "kselftest_timers_nanosleep",
|
||||||
srcs = ["tools/testing/selftests/timers/nanosleep.c"],
|
srcs = ["tools/testing/selftests/timers/nanosleep.c"],
|
||||||
out = "nanosleep",
|
out = "nanosleep",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1669,9 +1654,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_timers_nsleep_lat",
|
name = "kselftest_timers_nsleep_lat",
|
||||||
srcs = ["tools/testing/selftests/timers/nsleep-lat.c"],
|
srcs = ["tools/testing/selftests/timers/nsleep-lat.c"],
|
||||||
out = "nsleep-lat",
|
out = "nsleep-lat",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1681,9 +1664,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_posix_timers",
|
name = "kselftest_timers_posix_timers",
|
||||||
srcs = ["tools/testing/selftests/timers/posix_timers.c"],
|
srcs = ["tools/testing/selftests/timers/posix_timers.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1694,9 +1675,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_timers_tests_raw_skew",
|
name = "kselftest_timers_tests_raw_skew",
|
||||||
srcs = ["tools/testing/selftests/timers/raw_skew.c"],
|
srcs = ["tools/testing/selftests/timers/raw_skew.c"],
|
||||||
out = "raw_skew",
|
out = "raw_skew",
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1706,9 +1685,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_set_2038",
|
name = "kselftest_timers_set_2038",
|
||||||
srcs = ["tools/testing/selftests/timers/set-2038.c"],
|
srcs = ["tools/testing/selftests/timers/set-2038.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1723,9 +1700,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_set_tai",
|
name = "kselftest_timers_set_tai",
|
||||||
srcs = ["tools/testing/selftests/timers/set-tai.c"],
|
srcs = ["tools/testing/selftests/timers/set-tai.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1735,9 +1710,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_set_timer_lat",
|
name = "kselftest_timers_set_timer_lat",
|
||||||
srcs = ["tools/testing/selftests/timers/set-timer-lat.c"],
|
srcs = ["tools/testing/selftests/timers/set-timer-lat.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1747,9 +1720,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_set_tz",
|
name = "kselftest_timers_set_tz",
|
||||||
srcs = ["tools/testing/selftests/timers/set-tz.c"],
|
srcs = ["tools/testing/selftests/timers/set-tz.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1759,9 +1730,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_skew_consistency",
|
name = "kselftest_timers_skew_consistency",
|
||||||
srcs = ["tools/testing/selftests/timers/skew_consistency.c"],
|
srcs = ["tools/testing/selftests/timers/skew_consistency.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1774,9 +1743,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_threadtest",
|
name = "kselftest_timers_threadtest",
|
||||||
srcs = ["tools/testing/selftests/timers/threadtest.c"],
|
srcs = ["tools/testing/selftests/timers/threadtest.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1786,9 +1753,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_timers_valid_adjtimex",
|
name = "kselftest_timers_valid_adjtimex",
|
||||||
srcs = ["tools/testing/selftests/timers/valid-adjtimex.c"],
|
srcs = ["tools/testing/selftests/timers/valid-adjtimex.c"],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-O3",
|
|
||||||
],
|
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1798,7 +1763,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_net_socket",
|
name = "kselftest_net_socket",
|
||||||
srcs = ["tools/testing/selftests/net/socket.c"],
|
srcs = ["tools/testing/selftests/net/socket.c"],
|
||||||
copts = ["-Wno-gnu-variable-sized-type-not-at-end"],
|
copts = _KSELFTEST_COPTS + ["-Wno-gnu-variable-sized-type-not-at-end"],
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1809,6 +1774,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_net_reuseaddr_conflict",
|
name = "kselftest_net_reuseaddr_conflict",
|
||||||
srcs = ["tools/testing/selftests/net/reuseaddr_conflict.c"],
|
srcs = ["tools/testing/selftests/net/reuseaddr_conflict.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1822,7 +1788,7 @@ cc_binary_with_abi(
|
||||||
"tools/testing/selftests/net/psock_lib.h",
|
"tools/testing/selftests/net/psock_lib.h",
|
||||||
"tools/testing/selftests/net/psock_tpacket.c",
|
"tools/testing/selftests/net/psock_tpacket.c",
|
||||||
],
|
],
|
||||||
copts = ["-Wno-gnu-variable-sized-type-not-at-end"],
|
copts = _KSELFTEST_COPTS + ["-Wno-gnu-variable-sized-type-not-at-end"],
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
|
@ -1833,6 +1799,7 @@ cc_binary_with_abi(
|
||||||
cc_binary_with_abi(
|
cc_binary_with_abi(
|
||||||
name = "kselftest_capabilities_test_execve",
|
name = "kselftest_capabilities_test_execve",
|
||||||
srcs = ["tools/testing/selftests/capabilities/test_execve.c"],
|
srcs = ["tools/testing/selftests/capabilities/test_execve.c"],
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1847,6 +1814,7 @@ cc_binary_with_abi(
|
||||||
name = "kselftest_capabilities_validate_cap",
|
name = "kselftest_capabilities_validate_cap",
|
||||||
srcs = ["tools/testing/selftests/capabilities/validate_cap.c"],
|
srcs = ["tools/testing/selftests/capabilities/validate_cap.c"],
|
||||||
out = "validate_cap",
|
out = "validate_cap",
|
||||||
|
copts = _KSELFTEST_COPTS,
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
target_compatible_with = ["@platforms//os:android"],
|
target_compatible_with = ["@platforms//os:android"],
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
|
@ -1862,7 +1830,7 @@ cc_binary_with_abi(
|
||||||
"tools/testing/selftests/clone3/clone3_selftests.h",
|
"tools/testing/selftests/clone3/clone3_selftests.h",
|
||||||
"tools/testing/selftests/seccomp/seccomp_bpf.c",
|
"tools/testing/selftests/seccomp/seccomp_bpf.c",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS + [
|
||||||
"-Wno-unused-function",
|
"-Wno-unused-function",
|
||||||
"-D__GLIBC_PREREQ(a,b)",
|
"-D__GLIBC_PREREQ(a,b)",
|
||||||
],
|
],
|
||||||
|
@ -1886,11 +1854,7 @@ cc_binary_with_abi(
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"x86",
|
"x86",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-std=gnu99",
|
|
||||||
"-O2",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
linkopts = ["-static"],
|
linkopts = ["-static"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
|
@ -1911,11 +1875,7 @@ cc_binary_with_abi(
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"x86",
|
"x86",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-std=gnu99",
|
|
||||||
"-O2",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
linkopts = ["-static"],
|
linkopts = ["-static"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
|
@ -1936,11 +1896,7 @@ cc_binary_with_abi(
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"x86",
|
"x86",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-std=gnu99",
|
|
||||||
"-O2",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
linkopts = ["-static"],
|
linkopts = ["-static"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
|
@ -1961,11 +1917,7 @@ cc_binary_with_abi(
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"x86",
|
"x86",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-std=gnu99",
|
|
||||||
"-O2",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
linkopts = ["-static"],
|
linkopts = ["-static"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
|
@ -1986,11 +1938,7 @@ cc_binary_with_abi(
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"x86",
|
"x86",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-std=gnu99",
|
|
||||||
"-O2",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
linkopts = [
|
linkopts = [
|
||||||
"-static",
|
"-static",
|
||||||
|
@ -2015,11 +1963,7 @@ cc_binary_with_abi(
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"x86",
|
"x86",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = _KSELFTEST_COPTS,
|
||||||
"-std=gnu99",
|
|
||||||
"-O2",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
includes = ["tools/testing/selftests"],
|
includes = ["tools/testing/selftests"],
|
||||||
linkopts = ["-static"],
|
linkopts = ["-static"],
|
||||||
path_prefix = _KSELFTEST_DIR,
|
path_prefix = _KSELFTEST_DIR,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user