diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-02-12 10:49:33 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-16 22:56:38 +0000 |
commit | b3a07b9b2eb966d13e315db76cd3775ca42d4a0c (patch) | |
tree | e4d04efba1f47e3ae7c07c760fc6fc1c0494838b | |
parent | a05a475096e7a58d1a7871acf0506650b3e6d491 (diff) | |
download | chrome-ec-b3a07b9b2eb966d13e315db76cd3775ca42d4a0c.tar.gz |
fingerprint: Enable more on-device unit tests
BRANCH=none
BUG=b:155235321
TEST=On dragonclaw v0.2 with servo micro and jlink:
./test/run_device_test.py --board bloonchipper
=> tests pass
TEST=On icetower v0.1 with servo micro and jlink:
./test/run_device_test.py --board dartmonkey
=> tests pass
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I884ee93779235a387ed64bfe02643abee2009243
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2692877
Reviewed-by: Craig Hesling <hesling@chromium.org>
-rw-r--r-- | board/hatch_fp/build.mk | 6 | ||||
-rw-r--r-- | board/nocturne_fp/build.mk | 6 | ||||
-rw-r--r-- | board/nucleo-dartmonkey/build.mk | 6 | ||||
-rw-r--r-- | board/nucleo-f412zg/build.mk | 6 | ||||
-rw-r--r-- | board/nucleo-h743zi/build.mk | 6 | ||||
-rw-r--r-- | test/queue.c | 1 | ||||
-rwxr-xr-x | test/run_device_tests.py | 12 |
7 files changed, 42 insertions, 1 deletions
diff --git a/board/hatch_fp/build.mk b/board/hatch_fp/build.mk index 124805d2a9..43a22babf9 100644 --- a/board/hatch_fp/build.mk +++ b/board/hatch_fp/build.mk @@ -24,6 +24,7 @@ endif # will fail on device. test-list-y=\ aes \ + cec \ compile_time_macros \ crc \ flash_physical \ @@ -32,6 +33,8 @@ test-list-y=\ mpu \ mutex \ pingpong \ + printf \ + queue \ rollback \ rollback_entropy \ rsa3 \ @@ -39,5 +42,8 @@ test-list-y=\ scratchpad \ sha256 \ sha256_unrolled \ + static_if \ stm32f_rtc \ + timer_dos \ utils \ + utils_str \ diff --git a/board/nocturne_fp/build.mk b/board/nocturne_fp/build.mk index 5b47ddf67a..a26fbca348 100644 --- a/board/nocturne_fp/build.mk +++ b/board/nocturne_fp/build.mk @@ -23,6 +23,7 @@ endif # will fail on device. test-list-y=\ aes \ + cec \ compile_time_macros \ crc \ flash_physical \ @@ -31,6 +32,8 @@ test-list-y=\ mpu \ mutex \ pingpong \ + printf \ + queue \ rollback \ rollback_entropy \ rsa3 \ @@ -38,4 +41,7 @@ test-list-y=\ scratchpad \ sha256 \ sha256_unrolled \ + static_if \ + timer_dos \ utils \ + utils_str \ diff --git a/board/nucleo-dartmonkey/build.mk b/board/nucleo-dartmonkey/build.mk index 9ecb11f527..3c378c4765 100644 --- a/board/nucleo-dartmonkey/build.mk +++ b/board/nucleo-dartmonkey/build.mk @@ -12,6 +12,7 @@ board-y+=fpsensor_detect.o # Enable on device tests test-list-y=\ aes \ + cec \ compile_time_macros \ crc \ flash_physical \ @@ -20,6 +21,8 @@ test-list-y=\ mpu \ mutex \ pingpong \ + printf \ + queue \ rollback \ rollback_entropy \ rsa3 \ @@ -27,4 +30,7 @@ test-list-y=\ scratchpad \ sha256 \ sha256_unrolled \ + static_if \ + timer_dos \ utils \ + utils_str \ diff --git a/board/nucleo-f412zg/build.mk b/board/nucleo-f412zg/build.mk index 52830851f9..6d46b6c289 100644 --- a/board/nucleo-f412zg/build.mk +++ b/board/nucleo-f412zg/build.mk @@ -11,6 +11,7 @@ board-y=board.o # Enable on device tests test-list-y=\ aes \ + cec \ compile_time_macros \ crc \ flash_physical \ @@ -18,6 +19,8 @@ test-list-y=\ mpu \ mutex \ pingpong \ + printf \ + queue \ rollback \ rollback_entropy \ rsa3 \ @@ -25,5 +28,8 @@ test-list-y=\ scratchpad \ sha256 \ sha256_unrolled \ + static_if \ stm32f_rtc \ + timer_dos \ utils \ + utils_str \ diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk index 2e177026e4..1230d9b334 100644 --- a/board/nucleo-h743zi/build.mk +++ b/board/nucleo-h743zi/build.mk @@ -11,6 +11,7 @@ board-y=board.o # Enable on device tests test-list-y=\ aes \ + cec \ compile_time_macros \ crc \ flash_physical \ @@ -18,6 +19,8 @@ test-list-y=\ mpu \ mutex \ pingpong \ + printf \ + queue \ rollback \ rollback_entropy \ rsa3 \ @@ -25,4 +28,7 @@ test-list-y=\ scratchpad \ sha256 \ sha256_unrolled \ + static_if \ + timer_dos \ utils \ + utils_str \ diff --git a/test/queue.c b/test/queue.c index 4e12fb147b..e0be1b5d9a 100644 --- a/test/queue.c +++ b/test/queue.c @@ -11,7 +11,6 @@ #include "test_util.h" #include "timer.h" #include "util.h" -#include <stdio.h> static struct queue const test_queue8 = QUEUE_NULL(8, char); static struct queue const test_queue2 = QUEUE_NULL(2, int16_t); diff --git a/test/run_device_tests.py b/test/run_device_tests.py index 261cb476db..b30ddcfd49 100755 --- a/test/run_device_tests.py +++ b/test/run_device_tests.py @@ -108,6 +108,8 @@ class AllTests: tests = { 'aes': TestConfig(name='aes'), + 'cec': + TestConfig(name='cec'), 'crc': TestConfig(name='crc'), 'flash_physical': @@ -138,6 +140,10 @@ class AllTests: TestConfig(name='mutex'), 'pingpong': TestConfig(name='pingpong'), + 'printf': + TestConfig(name='printf'), + 'queue': + TestConfig(name='queue'), 'rollback_region0': TestConfig(name='rollback', finish_regexes=[ board_config.rollback_region0_regex], @@ -154,8 +160,14 @@ class AllTests: TestConfig(name='sha256'), 'sha256_unrolled': TestConfig(name='sha256_unrolled'), + 'static_if': + TestConfig(name='static_if'), + 'timer_dos': + TestConfig(name='timer_dos'), 'utils': TestConfig(name='utils', timeout_secs=20), + 'utils_str': + TestConfig(name='utils_str'), } if board_config.name == BLOONCHIPPER: |