mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 20:40:24 +09:00
The kunit targets build in-tree kunit modules with a pre-set defconfig fragment. This is the defconfig fragment to be applied to enable kunit tests as modules. Because we apply defconfig fragments after running make defconfig, the individual tests must be enabled instead of a global CONFIG_KUNIT_ALL_TESTS flag. Note: Comparing to the change on android-mainline, this change deletes the following tests because they do not present in android14-5.15: CONFIG_NETDEV_ADDR_LIST_TEST CONFIG_REGMAP_KUNIT CONFIG_INPUT_KUNIT_TEST CONFIG_SND_SOC_UTILS_KUNIT_TEST CONFIG_HID_KUNIT_TEST CONFIG_IIO_FORMAT_KUNIT_TEST CONFIG_CLK_KUNIT_TEST CONFIG_CLK_GATE_KUNIT_TEST Comparing to the change on android-mainline, this change adds a symbol list for kunit tests. To update this symbol list: bazel run //common:kunit_aarch64_abi_update_symbol_list Comparing to the change on android-mainline, this change does not contain a target for riscv64. Test: manually build with bazel run //common:kunit_aarch64_dist bazel run //common:kunit_x86_64_dist bazel run //common:kunit_riscv64_dist Bug: 296116800 Bug: 304616548 Bug: 305290382 Change-Id: If3b94f495aa64b657508781b12e3e0716c725f3f Signed-off-by: Yifan Hong <elsk@google.com>