summaryrefslogtreecommitdiff
path: root/test/build.mk
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-05-08 11:42:37 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-13 03:03:54 +0000
commit0b034696389e0c6a9aa8b1397a49cf8548ccee05 (patch)
tree523c81aacf058fa7e40f0c2aee07881bb79e1f88 /test/build.mk
parent287478e7db8bd5a21a0c257574b4461e3518163f (diff)
downloadchrome-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 'test/build.mk')
-rw-r--r--test/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk
index 850b48c4cf..58094802cd 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -157,6 +157,7 @@ power_button-y=power_button.o
powerdemo-y=powerdemo.o
printf-y=printf.o
queue-y=queue.o
+rollback-y=rollback.o
rsa-y=rsa.o
rsa3-y=rsa.o
rtc-y=rtc.o