From ae97645e8f4a8dc554739450e64fef5c77666c2b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Apr 2020 17:16:24 -0700 Subject: stm32: Enable more on-device unit tests As part of the effort to run unit tests on device, we start by enabling a subset of the existing tests that compile and pass when run on device. BRANCH=none BUG=b:151105339 TEST=make BOARD=nucleo-dartmonkey tests -j TEST=make BOARD=bloonchipper tests -j TEST=make BOARD=dartmonkey tests -j TEST=make BOARD=nucleo-f412zg tests -j TEST=For each "test_name.bin" file created by above command -> flash to dragonclaw dev board -> "runtest" in the console Signed-off-by: Tom Hughes Change-Id: Ifbb3c1627c4da6b8aa27d2512530a879d54c86e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2172061 Commit-Queue: Yicheng Li Reviewed-by: Yicheng Li --- board/hatch_fp/build.mk | 10 +++++++++- board/nocturne_fp/build.mk | 10 +++++++++- board/nucleo-dartmonkey/build.mk | 10 +++++++++- board/nucleo-f412zg/build.mk | 10 +++++++++- board/nucleo-h743zi/build.mk | 10 +++++++++- 5 files changed, 45 insertions(+), 5 deletions(-) diff --git a/board/hatch_fp/build.mk b/board/hatch_fp/build.mk index a6a37a3ace..93c40a530d 100644 --- a/board/hatch_fp/build.mk +++ b/board/hatch_fp/build.mk @@ -11,4 +11,12 @@ CHIP_VARIANT:=stm32f412 board-y=board.o fpsensor_detect.o -test-list-y=aes sha256 sha256_unrolled +test-list-y=\ + aes \ + compile_time_macros \ + crc32 \ + mutex \ + pingpong \ + rtc \ + sha256 \ + sha256_unrolled \ diff --git a/board/nocturne_fp/build.mk b/board/nocturne_fp/build.mk index 9874357472..3bc105df9a 100644 --- a/board/nocturne_fp/build.mk +++ b/board/nocturne_fp/build.mk @@ -12,4 +12,12 @@ CHIP_VARIANT:=stm32h7x3 board-rw=ro_workarounds.o board-y=board.o fpsensor_detect.o -test-list-y=aes sha256 sha256_unrolled +test-list-y=\ + aes \ + compile_time_macros \ + crc32 \ + mutex \ + pingpong \ + rtc \ + sha256 \ + sha256_unrolled \ diff --git a/board/nucleo-dartmonkey/build.mk b/board/nucleo-dartmonkey/build.mk index b26b249720..6bc55bd88d 100644 --- a/board/nucleo-dartmonkey/build.mk +++ b/board/nucleo-dartmonkey/build.mk @@ -10,4 +10,12 @@ board-y=board.o board-y+=fpsensor_detect.o # Enable on device tests -test-list-y=aes sha256 sha256_unrolled +test-list-y=\ + aes \ + compile_time_macros \ + crc32 \ + mutex \ + pingpong \ + rtc \ + sha256 \ + sha256_unrolled \ diff --git a/board/nucleo-f412zg/build.mk b/board/nucleo-f412zg/build.mk index 8e58009d96..26b10c5c63 100644 --- a/board/nucleo-f412zg/build.mk +++ b/board/nucleo-f412zg/build.mk @@ -9,4 +9,12 @@ BASEBOARD:=nucleo-f412zg board-y=board.o # Enable on device tests -test-list-y=aes sha256 sha256_unrolled +test-list-y=\ + aes \ + compile_time_macros \ + crc32 \ + mutex \ + pingpong \ + rtc \ + sha256 \ + sha256_unrolled \ diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk index 3de2a44adc..bdf068d328 100644 --- a/board/nucleo-h743zi/build.mk +++ b/board/nucleo-h743zi/build.mk @@ -9,4 +9,12 @@ BASEBOARD:=nucleo-h743zi board-y=board.o # Enable on device tests -test-list-y=aes sha256 sha256_unrolled +test-list-y=\ + aes \ + compile_time_macros \ + crc32 \ + mutex \ + pingpong \ + rtc \ + sha256 \ + sha256_unrolled \ -- cgit v1.2.1