diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-05-08 11:42:37 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-13 03:03:54 +0000 |
commit | 0b034696389e0c6a9aa8b1397a49cf8548ccee05 (patch) | |
tree | 523c81aacf058fa7e40f0c2aee07881bb79e1f88 /board/nucleo-h743zi | |
parent | 287478e7db8bd5a21a0c257574b4461e3518163f (diff) | |
download | chrome-ec-0b034696389e0c6a9aa8b1397a49cf8548ccee05.tar.gz |
test: Add rollback unit test
This test only runs on device and requires manual verification that a
memory access violation occurred.
Note that bloonchipper region 1 on dragonclaw fails as indicated in
tests below.
BRANCH=none
BUG=b:155229277, b:151105339
TEST=Compile and flash bloonchipper on dragonclaw with region 0
"runtest" on console
=> Reboots with "Data access violation, mfar = 8020000"
=> PASS
TEST=Compile and flash bloonchipper on dragonclaw with region 1
"runtest" on console
=> Memory is successfully read
=> FAIL
TEST=Compile and flash dartmonkey on dragontalon with region 0
"runtest" on console
=> Reboots with "Data access violation, mfar = 80c0000"
=> PASS
TEST=Compile and flash dartmonkey on dragontalon with region 1
"runtest" on console
=> Reboots with "Data access violation, mfar = 80e0000"
=> PASS
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I3e9cc568a0b16c6091d96c4373798fe4de4ab65b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2190829
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/nucleo-h743zi')
-rw-r--r-- | board/nucleo-h743zi/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk index bdf068d328..c3d098e811 100644 --- a/board/nucleo-h743zi/build.mk +++ b/board/nucleo-h743zi/build.mk @@ -15,6 +15,7 @@ test-list-y=\ crc32 \ mutex \ pingpong \ + rollback \ rtc \ sha256 \ sha256_unrolled \ |