[U-Boot] [PATCH 0/5] test: Add compression tests to pytest

Simon Glass sjg at chromium.org
Sat Nov 25 18:57:28 UTC 2017


At present the compression tests do not use the unit test framework, nor
are they executed by the 'make tests' command. This series converts these
tests to use the unit test framework, adding a few other minor
improvements along the way.

The overlay tests do not currently run for me, and we lack instructions
on how to run them.

   ./b/sandbox/u-boot -c "ut overlay"

did not work:

   Running 9 overlay tests
   Test: fdt_overlay_add_node_by_path
   Segmentation fault (core dumped)

It would be useful to have instructions for how to run these somewhere,
along with a README for the feature. The tests should run with
'make tests'.


Simon Glass (5):
  test: Add a command function for test execution
  test: overlay: Use cmd_ut_category()
  test: compression: Put test variables in a struct
  test/py: Allow any unit test suite to be found
  test: compression: Convert to unit test framework

 include/test/compression.h    |  17 +++
 include/test/suites.h         |  17 +++
 test/cmd_ut.c                 |  32 +++++
 test/compression.c            | 295 ++++++++++++++++++++++++++----------------
 test/env/cmd_ut_env.c         |  19 +--
 test/overlay/cmd_ut_overlay.c |  21 +--
 test/py/conftest.py           |   2 +-
 7 files changed, 251 insertions(+), 152 deletions(-)
 create mode 100644 include/test/compression.h

-- 
2.15.0.417.g466bffb3ac-goog



More information about the U-Boot mailing list