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