[U-Boot] [PATCH 1/1] test: provide unit test for memory functions

Simon Glass sjg at chromium.org
Thu Jan 31 10:04:34 UTC 2019


On Tue, 29 Jan 2019 at 23:53, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Memory functions may have architecture specific implementations. These
> should be tested.
>
> Provide unit tests for memset(), memcpy(), memmove().
>
> Provide a 'ut lib' sub-command to execute the tests.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> v2
>         vary alignment and length of copied or set memory region
> ---
>  include/test/lib.h    |  14 +++
>  include/test/suites.h |   1 +
>  test/Kconfig          |   8 ++
>  test/cmd_ut.c         |   6 ++
>  test/lib/Makefile     |   2 +
>  test/lib/cmd_ut_lib.c |  20 +++++
>  test/lib/string.c     | 194 ++++++++++++++++++++++++++++++++++++++++++
>  7 files changed, 245 insertions(+)
>  create mode 100644 include/test/lib.h
>  create mode 100644 test/lib/cmd_ut_lib.c
>  create mode 100644 test/lib/string.c
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list