[U-Boot] [PATCH v2 12/19] test: Generalize the unit test framework

Simon Glass sjg at chromium.org
Fri May 1 05:46:19 CEST 2015


On 28 April 2015 at 23:50, Joe Hershberger <joe.hershberger at ni.com> wrote:
> Separate the ability to define tests and assert status of test functions
> from the dm tests so they can be used more consistenly throughout all
> tests.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
> ---
>
> Changes in v2:
> -New for version 2
>
>  include/dm/test.h         | 35 +++++-----------------
>  include/test/test.h       | 47 ++++++++++++++++++++++++++++++
>  include/{dm => test}/ut.h | 28 +++++++++---------
>  test/Kconfig              |  3 ++
>  test/Makefile             |  1 +
>  test/dm/Kconfig           |  1 +
>  test/dm/Makefile          |  2 --
>  test/dm/bus.c             | 39 +++++++++++++------------
>  test/dm/core.c            | 74 +++++++++++++++++++++++++----------------------
>  test/dm/eth.c             | 14 ++++-----
>  test/dm/gpio.c            | 22 +++++++-------
>  test/dm/i2c.c             | 20 ++++++-------
>  test/dm/pci.c             |  6 ++--
>  test/dm/sf.c              |  4 +--
>  test/dm/spi.c             |  8 ++---
>  test/dm/test-driver.c     |  6 ++--
>  test/dm/test-fdt.c        | 16 +++++-----
>  test/dm/test-main.c       | 36 +++++++++++++----------
>  test/dm/test-uclass.c     |  7 +++--
>  test/dm/usb.c             |  6 ++--
>  test/{dm => }/ut.c        | 16 +++++-----
>  21 files changed, 217 insertions(+), 174 deletions(-)
>  create mode 100644 include/test/test.h
>  rename include/{dm => test}/ut.h (79%)
>  rename test/{dm => }/ut.c (59%)

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


More information about the U-Boot mailing list