All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] test: Add compression tests to pytest
@ 2017-11-25 18:57 Simon Glass
  2017-11-25 18:57 ` [U-Boot] [PATCH 1/5] test: Add a command function for test execution Simon Glass
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Simon Glass @ 2017-11-25 18:57 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-12-04 18:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-25 18:57 [U-Boot] [PATCH 0/5] test: Add compression tests to pytest Simon Glass
2017-11-25 18:57 ` [U-Boot] [PATCH 1/5] test: Add a command function for test execution Simon Glass
2017-12-04 18:35   ` [U-Boot] [U-Boot, " Tom Rini
2017-11-25 18:57 ` [U-Boot] [PATCH 2/5] test: overlay: Use cmd_ut_category() Simon Glass
2017-12-04 18:35   ` [U-Boot] [U-Boot,2/5] " Tom Rini
2017-12-04 18:35   ` Tom Rini
2017-11-25 18:57 ` [U-Boot] [PATCH 3/5] test: compression: Put test variables in a struct Simon Glass
2017-12-04 18:35   ` [U-Boot] [U-Boot, " Tom Rini
2017-11-25 18:57 ` [U-Boot] [PATCH 4/5] test/py: Allow any unit test suite to be found Simon Glass
2017-11-27 18:08   ` Stephen Warren
2017-12-04 18:35   ` [U-Boot] [U-Boot, " Tom Rini
2017-11-25 18:57 ` [U-Boot] [PATCH 5/5] test: compression: Convert to unit test framework Simon Glass
2017-12-04 18:35   ` [U-Boot] [U-Boot, " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.