summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-11-09 15:23:12 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-13 00:27:29 +0000
commit9263a4f135deb87f7926ed2e91deef496bbfe818 (patch)
treed80fb49558513606a70044a74ed2bb8ac736f833
parentfb5b9b362b89b9b4cb75ca114f78916997dffa84 (diff)
downloadchrome-ec-9263a4f135deb87f7926ed2e91deef496bbfe818.tar.gz
crc32: rename test crc32->crc to allow for crc8
Instead of creating a new test for crc8, just make the existing crc32 test more generic. BRANCH=none BUG=none TEST=none Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: Ie630d4991d4e2c7dc441842c39d63fc0281ac809 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2532690 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--board/hatch_fp/build.mk2
-rw-r--r--board/nocturne_fp/build.mk2
-rw-r--r--board/nucleo-dartmonkey/build.mk2
-rw-r--r--board/nucleo-f412zg/build.mk2
-rw-r--r--board/nucleo-h743zi/build.mk2
-rw-r--r--test/build.mk4
-rw-r--r--test/crc.c (renamed from test/crc32.c)0
-rw-r--r--test/crc.tasklist (renamed from test/crc32.tasklist)0
-rwxr-xr-xtest/run_device_tests.py4
-rw-r--r--test/test_config.h2
10 files changed, 10 insertions, 10 deletions
diff --git a/board/hatch_fp/build.mk b/board/hatch_fp/build.mk
index de4dde367b..dc6e59eb20 100644
--- a/board/hatch_fp/build.mk
+++ b/board/hatch_fp/build.mk
@@ -23,7 +23,7 @@ endif
test-list-y=\
aes \
compile_time_macros \
- crc32 \
+ crc \
flash_physical \
flash_write_protect \
fpsensor \
diff --git a/board/nocturne_fp/build.mk b/board/nocturne_fp/build.mk
index edaac15ca2..888057c26a 100644
--- a/board/nocturne_fp/build.mk
+++ b/board/nocturne_fp/build.mk
@@ -17,7 +17,7 @@ board-y=board.o fpsensor_detect.o
test-list-y=\
aes \
compile_time_macros \
- crc32 \
+ crc \
flash_physical \
flash_write_protect \
fpsensor \
diff --git a/board/nucleo-dartmonkey/build.mk b/board/nucleo-dartmonkey/build.mk
index 10a696e49a..fad8b5924a 100644
--- a/board/nucleo-dartmonkey/build.mk
+++ b/board/nucleo-dartmonkey/build.mk
@@ -13,7 +13,7 @@ board-y+=fpsensor_detect.o
test-list-y=\
aes \
compile_time_macros \
- crc32 \
+ crc \
fpsensor \
mutex \
pingpong \
diff --git a/board/nucleo-f412zg/build.mk b/board/nucleo-f412zg/build.mk
index 4dbe987b39..a6e3569854 100644
--- a/board/nucleo-f412zg/build.mk
+++ b/board/nucleo-f412zg/build.mk
@@ -12,7 +12,7 @@ board-y=board.o
test-list-y=\
aes \
compile_time_macros \
- crc32 \
+ crc \
flash_physical \
flash_write_protect \
mpu \
diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk
index ebb8d6b18f..ea3140e2fb 100644
--- a/board/nucleo-h743zi/build.mk
+++ b/board/nucleo-h743zi/build.mk
@@ -12,7 +12,7 @@ board-y=board.o
test-list-y=\
aes \
compile_time_macros \
- crc32 \
+ crc \
flash_physical \
flash_write_protect \
mpu \
diff --git a/test/build.mk b/test/build.mk
index 2dc413c25c..1a9f3657a8 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -26,7 +26,7 @@ test-list-host += charge_manager_drp_charging
test-list-host += charge_ramp
test-list-host += compile_time_macros
test-list-host += console_edit
-test-list-host += crc32
+test-list-host += crc
test-list-host += entropy
test-list-host += extpwr_gpio
test-list-host += fan
@@ -135,7 +135,7 @@ charge_manager_drp_charging-y=charge_manager.o
charge_ramp-y+=charge_ramp.o
compile_time_macros-y=compile_time_macros.o
console_edit-y=console_edit.o
-crc32-y=crc32.o
+crc-y=crc.o
entropy-y=entropy.o
extpwr_gpio-y=extpwr_gpio.o
fan-y=fan.o
diff --git a/test/crc32.c b/test/crc.c
index 3521bce4a9..3521bce4a9 100644
--- a/test/crc32.c
+++ b/test/crc.c
diff --git a/test/crc32.tasklist b/test/crc.tasklist
index f46a2eaa1d..f46a2eaa1d 100644
--- a/test/crc32.tasklist
+++ b/test/crc.tasklist
diff --git a/test/run_device_tests.py b/test/run_device_tests.py
index bed942f62e..9e38576c2d 100755
--- a/test/run_device_tests.py
+++ b/test/run_device_tests.py
@@ -105,8 +105,8 @@ class AllTests:
tests = {
'aes':
TestConfig(name='aes'),
- 'crc32':
- TestConfig(name='crc32'),
+ 'crc':
+ TestConfig(name='crc'),
'flash_physical':
TestConfig(name='flash_physical', image_to_use=ImageType.RO,
toggle_power=True),
diff --git a/test/test_config.h b/test/test_config.h
index 889ee43d58..7e9e2cc5e6 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -219,7 +219,7 @@ enum sensor_id {
#endif
-#ifdef TEST_CRC32
+#ifdef TEST_CRC
#define CONFIG_SW_CRC
#endif