From 0b034696389e0c6a9aa8b1397a49cf8548ccee05 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 8 May 2020 11:42:37 -0700 Subject: 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 Change-Id: I3e9cc568a0b16c6091d96c4373798fe4de4ab65b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2190829 Reviewed-by: Nicolas Boichat Commit-Queue: Nicolas Boichat --- board/nucleo-h743zi/build.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'board/nucleo-h743zi') 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 \ -- cgit v1.2.1