From 4ff8382d3b764a72675cff10e19c673f06945a6a Mon Sep 17 00:00:00 2001 From: Edward Liaw Date: Thu, 7 Dec 2023 13:21:53 +0000 Subject: [PATCH] ANDROID: Run futex tests individually Instead of using the shell script to run each test, run each futex test on its own. The shell script does not handle skipped subtests and does not add any additional testing logic. Bug: 291147200 Change-Id: Id8687e722bbdc0df527eb0bbe87bb442fb2f0c60 Signed-off-by: Edward Liaw --- BUILD.bazel | 13 +-------- .../selftests/android/config_arm64.xml | 29 ++++++++++++++++++- .../selftests/android/config_x86_64.xml | 29 ++++++++++++++++++- 3 files changed, 57 insertions(+), 14 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index f95ffdf83727..7dcbd7d55221 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -17,7 +17,7 @@ load( "kernel_modules_install", "merged_kernel_uapi_headers", ) -load(":abi.bzl", "cc_binary_with_abi", "sh_binary_with_abi") +load(":abi.bzl", "cc_binary_with_abi") load(":modules.bzl", "get_gki_modules_list") package( @@ -1295,15 +1295,6 @@ cc_binary_with_abi( ], ) -sh_binary_with_abi( - name = "kselftest_futex_run", - src = "tools/testing/selftests/futex/functional/run.sh", - out = "kselftest_futex_run", - path_prefix = _KSELFTEST_DIR, - target_compatible_with = ["@platforms//os:android"], - visibility = ["//visibility:private"], -) - cc_binary_with_abi( name = "kselftest_mm_compaction_test", srcs = ["tools/testing/selftests/mm/compaction_test.c"], @@ -1819,7 +1810,6 @@ android_filegroup( ":kselftest_futex_futex_wait_wouldblock_x86_64", ":kselftest_futex_futex_wait_x86_64", ":kselftest_futex_futex_waitv_x86_64", - ":kselftest_futex_run_x86_64", ":kselftest_gen_config", ":kselftest_kcmp_kcmp_test_x86_64", ":kselftest_mm_compaction_test_x86_64", @@ -1880,7 +1870,6 @@ android_filegroup( ":kselftest_futex_futex_wait_uninitialized_heap_arm64", ":kselftest_futex_futex_wait_wouldblock_arm64", ":kselftest_futex_futex_waitv_arm64", - ":kselftest_futex_run_arm64", ":kselftest_gen_config", ":kselftest_kcmp_kcmp_test_arm64", ":kselftest_mm_compaction_test_arm64", diff --git a/tools/testing/selftests/android/config_arm64.xml b/tools/testing/selftests/android/config_arm64.xml index acb7b5692d46..765e3998ffc6 100644 --- a/tools/testing/selftests/android/config_arm64.xml +++ b/tools/testing/selftests/android/config_arm64.xml @@ -19,7 +19,34 @@ SPDX-License-Identifier: GPL-2.0 OR Apache-2.0