ba520a32ce
Memfd is important to Android, so add support for building and running the memfd self test in presubmit. Bug: 382547417 Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:f369010a2a779c5df3c4063ba88e4cc04e92496a) Merged-In: I5df07ae00f6ee861c41f55e5ef46517b960c9d8f Change-Id: I5df07ae00f6ee861c41f55e5ef46517b960c9d8f
HOW TO RUN SELFTESTS IN ANDROID
=================================
Run tests on a physical or virtual device:
$ kernel/tests/tools/run_test_only.sh -t selftests -s <serial_number>
Before the tests, you can use the following command to launch a virtual device:
$ kernel/tests/tools/launch_cvd.sh
After the tests, you can use the following command to remove the virtual device:
$ prebuilts/asuite/acloud/linux-x86/acloud delete
The following are command examples:
* Build kernel and launch a virtual device from a specific platform build:
$ kernel/tests/tools/launch_cvd.sh -pb \
ab://aosp-main/aosp_cf_x86_64_phone-trunk_staging-userdebug/12505199
* Run a specific test:
$ kernel/tests/tools/run_test_only.sh \
-t 'selftests kselftest_net_socket' -s <serial_number>
* Check other available options:
$ kernel/tests/tools/launch_cvd.sh -h
$ kernel/tests/tools/run_test_only.sh -h