summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/button
Commit message (Collapse)AuthorAgeFilesLines
* zephyr/test: Sort header filesJeremy Bettis2022-11-151-5/+5
| | | | | | | | | | | | | | | | | | | Sort all headers in zephyr/test with the clang-format rules used by the zephyr project. BRANCH=None BUG=b:247100970 TEST=CQ Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I2428eea11e18ee4bed6bc366fd69d4254d936c10 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022253 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* test: Add tests for all paths leading to warm resetYuval Peress2022-10-211-0/+91
| | | | | | | | | | | | | | | Add tests for all the code paths (including error and timeout cases) that lead up to a warm reset being initiated. BRANCH=none BUG=none TEST=twister Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Idbb8b90efe31bc36f415809a0eb234b073f8037f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3965713 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Aaron Massey <aaronmassey@google.com>
* test: add tests for all paths leading to sysrq eventYuval Peress2022-10-181-0/+150
| | | | | | | | | | | | | | | | | Add tests for all the code paths (including error and timeout cases) that lead up to a sysrq event being added to the mkbp fifo. Extend the timeout (due to all the logs of the EC during the sleep calls). BRANCH=none BUG=none TEST=twister Signed-off-by: Yuval Peress <peress@google.com> Change-Id: If5bf0ff6e9eccb7d6547b6ce6722a41f8c1709c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3960567 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* common/button.c: Add tests for failed paths through ACTIVEYuval Peress2022-10-182-0/+113
Add tests for several failed paths when a simulated recovery button is used. These include: - Pressing the volume up/down buttons for too short of a time - Pressing only one volume button - Transitioning to ACTIVE then timing out BRANCH=none BUG=none TEST=twister -s zephyr/test/drivers/drivers.button Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Ibbeb99985a59be03f48a2d158a77d8edc46153c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3960558 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>