Skip to content

platform/chrome: cros_ec_proto: add initial Kunit tests

Tzung-Bi Shih chrome-platform lkml 1 version Applied

Status from this message: This series was applied to chrome-platform/linux.git (for-kernelci)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_prepare_tx()drivers/platform/chrome/Kconfig drivers/platform/chrome/Makefile drivers/platform/chrome/cros_ec_proto_test.c+185 -01 replyApplied
2/4platform/chrome: cros_ec_proto: factor legacy out from cros_ec_prepare_tx()drivers/platform/chrome/cros_ec_proto.c+28 -231 replyApplied
3/4platform/chrome: cros_ec_proto: update cros_ec_check_result() commentdrivers/platform/chrome/cros_ec_proto.c+5 -21 replyApplied
4/4platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_check_result()drivers/platform/chrome/cros_ec_proto_test.c+41 -01 replyApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchGuenter Roeck
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] platform/chrome: cros_ec_proto: add initial Kunit tests

The series adds some early Kunit tests for ChromeOS EC protocol.

The 2nd patch is a refactor.

The 3rd patch updates code comment.

The 1st and 4th patches add Kunit tests.

Use the following example commands to run the Kunit tests:

$ ./tools/testing/kunit/kunit.py run \
        --arch=x86_64 \
        --kconfig_add CONFIG_CHROME_PLATFORMS=y \
        --kconfig_add CONFIG_CROS_EC=y \
        cros_ec*
$ ./tools/testing/kunit/kunit.py run \
        --arch=arm64 --cross_compile aarch64-linux-gnu- \
        --kconfig_add CONFIG_CHROME_PLATFORMS=y \
        --kconfig_add CONFIG_CROS_EC=y \
        cros_ec*

Tzung-Bi Shih (4):
platform/chrome: cros_ec_proto: add Kunit tests for
cros_ec_prepare_tx()
platform/chrome: cros_ec_proto: factor legacy out from
cros_ec_prepare_tx()
platform/chrome: cros_ec_proto: update cros_ec_check_result() comment platform/chrome: cros_ec_proto: add Kunit tests for
cros_ec_check_result()

 drivers/platform/chrome/Kconfig              |   9 +
 drivers/platform/chrome/Makefile             |   3 +
 drivers/platform/chrome/cros_ec_proto.c      |  58 ++---
 drivers/platform/chrome/cros_ec_proto_test.c | 214 +++++++++++++++++++
 4 files changed, 259 insertions(+), 25 deletions(-)
 create mode 100644 drivers/platform/chrome/cros_ec_proto_test.c

base-commit: a0e7d2f65fa706a106dae4b52a7cfe48e0ddfdff

Signature · 1 line
2.36.0.550.gb090851708-goog