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: e761035b6423 ("boot: add support for button commands")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-03-20 17:13:05 -04:00
..
2023-11-14 20:04:01 -07:00
2024-03-20 17:13:05 -04:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2022-08-04 16:18:47 -04:00
2024-03-07 09:23:10 -05:00
2024-02-13 15:38:49 -05:00
2024-02-13 15:38:49 -05:00
2023-06-23 14:38:16 -04:00
2023-11-29 09:32:15 -05:00
2023-10-09 15:24:31 -04:00
2023-05-13 09:52:32 -04:00