• Home
Name Date Size #Lines LOC

..--

include/22-Oct-2025-159

READMED22-Oct-2025918 2518

config_arm.xmlD22-Oct-20258.6 KiB8475

config_arm64.xmlD22-Oct-20258.7 KiB8578

config_x86.xmlD22-Oct-20259.4 KiB9083

config_x86_64.xmlD22-Oct-20259.5 KiB9184

README

1HOW TO RUN SELFTESTS IN ANDROID
2=================================
3
4Run tests on a physical or virtual device:
5  $ kernel/tests/tools/run_test_only.sh -t selftests -s <serial_number>
6
7Before the tests, you can use the following command to launch a virtual device:
8  $ kernel/tests/tools/launch_cvd.sh
9
10After the tests, you can use the following command to remove the virtual device:
11  $ prebuilts/asuite/acloud/linux-x86/acloud delete
12
13The following are command examples:
14  * Build kernel and launch a virtual device from a specific platform build:
15  $ kernel/tests/tools/launch_cvd.sh -pb \
16        ab://aosp-main/aosp_cf_x86_64_phone-trunk_staging-userdebug/12505199
17
18  * Run a specific test:
19  $ kernel/tests/tools/run_test_only.sh \
20        -t 'selftests kselftest_net_socket' -s <serial_number>
21
22  * Check other available options:
23  $ kernel/tests/tools/launch_cvd.sh -h
24  $ kernel/tests/tools/run_test_only.sh -h
25