From a3881b5632d2371374a69bcea64688d64c231e58 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 19 May 2020 09:50:52 -0700 Subject: test: Add scratchpad test The first time the test runs it should pass. After rebooting, the test should then fail because the scratchpad register is already set. BRANCH=none BUG=b:157059753 TEST=Build and flash bloonchipper On console: > runtest => PASS > reboot > runtest => PASS, which is WRONG TEST=Build and flash dartmonkey On console: > runtest => PASS > reboot > runtest => FAILS, which is CORRECT Signed-off-by: Tom Hughes Change-Id: I348d723d8083ecd0d9f5535785c8049f284a00b6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2209189 Commit-Queue: Abe Levkoy Reviewed-by: Abe Levkoy --- board/hatch_fp/build.mk | 1 + board/nocturne_fp/build.mk | 1 + board/nucleo-f412zg/build.mk | 1 + board/nucleo-h743zi/build.mk | 1 + 4 files changed, 4 insertions(+) (limited to 'board') diff --git a/board/hatch_fp/build.mk b/board/hatch_fp/build.mk index 54c7fe05e7..48ed6d2aae 100644 --- a/board/hatch_fp/build.mk +++ b/board/hatch_fp/build.mk @@ -21,6 +21,7 @@ test-list-y=\ rollback \ rollback_entropy \ rtc \ + scratchpad \ sha256 \ sha256_unrolled \ stm32f_rtc \ diff --git a/board/nocturne_fp/build.mk b/board/nocturne_fp/build.mk index 89aa12a002..d11c25c805 100644 --- a/board/nocturne_fp/build.mk +++ b/board/nocturne_fp/build.mk @@ -22,6 +22,7 @@ test-list-y=\ rollback \ rollback_entropy \ rtc \ + scratchpad \ sha256 \ sha256_unrolled \ stm32f_rtc \ diff --git a/board/nucleo-f412zg/build.mk b/board/nucleo-f412zg/build.mk index 31c6d52799..17be2a15bf 100644 --- a/board/nucleo-f412zg/build.mk +++ b/board/nucleo-f412zg/build.mk @@ -19,6 +19,7 @@ test-list-y=\ rollback \ rollback_entropy \ rtc \ + scratchpad \ sha256 \ sha256_unrolled \ stm32f_rtc \ diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk index 018a67c030..25d76458d2 100644 --- a/board/nucleo-h743zi/build.mk +++ b/board/nucleo-h743zi/build.mk @@ -19,5 +19,6 @@ test-list-y=\ rollback \ rollback_entropy \ rtc \ + scratchpad \ sha256 \ sha256_unrolled \ -- cgit v1.2.1