summaryrefslogtreecommitdiff
path: root/test/build.mk
diff options
context:
space:
mode:
authorYicheng Li <yichengli@chromium.org>2021-01-04 14:49:19 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-12 20:55:51 +0000
commit72a3dd167c24a20a6df568d0c84c77dd45a6d2cf (patch)
tree1d1c66467f1ce5e5b0117438c1c104b51f954f5d /test/build.mk
parentec643f0d99397eafa09ab39b2d7dd6b968bd70d8 (diff)
downloadchrome-ec-72a3dd167c24a20a6df568d0c84c77dd45a6d2cf.tar.gz
The u2f functionality had no unittests at all. This change is more of a setup (in terms of build dependencies) so that u2f tests can be easily added in the future. This change comes with a few simple tests for u2f_generate. The basic idea here is to use board/host/dcrypto.h to mock the dcrypto functionalities. Since board/host/dcrypto.h includes an alternative to cryptoc's sha256 definitions, we need to exclude cryptoc/sha256.h in the test builds. BUG=b:172971998 TEST=make -j run-u2f TEST=make CR50_DEV=1 BOARD=cr50 -j Signed-off-by: Yicheng Li <yichengli@chromium.org> Change-Id: Idae6f55f599a017aedcaf0fe4cdb6c0506e72712 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2610133 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r--test/build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk
index ec40d00b95..ec51ab4bf9 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -48,6 +48,7 @@ test-list-host += static_if_error
test-list-host += system
test-list-host += thermal
test-list-host += timer_dos
+test-list-host += u2f
test-list-host += uptime
test-list-host += utils
test-list-host += utils_str
@@ -91,6 +92,7 @@ system-y=system.o
thermal-y=thermal.o
timer_calib-y=timer_calib.o
timer_dos-y=timer_dos.o
+u2f-y=u2f.o
uptime-y=uptime.o
utils-y=utils.o
utils_str-y=utils_str.o