Files
u-boot/test/dm
Caleb Connolly d47e1fa819 test: dm: add button_cmd test
Add a test for the button_cmd feature. This validates that commands can
be mapped to two buttons, that the correct command runs based on which
button is pressed, that only 1 command is run, and that no command runs
if button_cmd_0_name is wrong or unset.

Additionally, fix a potential uninitialised variable use caught by these
tests, the btn variable in get_button_cmd() is assumed to be null if
button_get_by_label() fails, but it's actually used uninitialised in
that case.

CONFIG_BUTTON is now enabled automatically and was removed when running
save_defconfig.

Fixes: e761035b64 ("boot: add support for button commands")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-03-20 17:13:05 -04:00
..
2022-01-19 18:11:34 +01:00
2023-04-05 10:54:47 -04:00
2024-03-20 17:13:05 -04:00
2024-01-29 22:35:02 -05:00
2021-01-30 14:25:41 -07:00
2021-09-28 18:50:56 +03:00
2023-05-02 14:23:58 -04:00
2022-04-25 10:00:03 -04:00
2021-10-13 14:18:30 -07:00
2022-10-05 08:43:53 +02:00
2023-01-05 19:21:56 -07:00
2022-10-20 15:22:30 +08:00
2022-04-28 09:26:44 -04:00
2023-11-16 12:43:49 -05:00
2022-10-26 15:21:11 -04:00
2023-11-16 12:43:49 -05:00
2023-10-06 14:38:13 -04:00
2023-10-24 15:55:17 +08:00
2022-09-25 13:59:56 -06:00
2021-03-27 15:04:31 +13:00
2023-10-15 12:23:48 +02:00
2021-09-30 08:08:56 -04:00
2024-01-16 12:26:54 +00:00
2021-05-04 07:57:18 -04:00
2022-04-23 22:05:34 +02:00
2021-02-16 11:48:20 -05:00
2021-09-25 09:46:15 -06:00
2023-07-20 14:10:57 -06:00