All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/17] dm: test: Add unit tests for SPL
@ 2020-10-03 15:25 Simon Glass
  2020-10-03 15:25 ` [PATCH 01/17] dtoc: Extract inner loop from output_node() Simon Glass
                   ` (24 more replies)
  0 siblings, 25 replies; 32+ messages in thread
From: Simon Glass @ 2020-10-03 15:25 UTC (permalink / raw)
  To: u-boot

U-Boot has about 700 tests but only a handful of these target SPL. This
is partly because SPL has limited functionality and does not have a
command interface to initiate tests.

The current SPL tests are targeted at sandbox_spl and are initiated from
pytest.

With SPL tests written in C, we can check the behaviour of of-platdata
more easily, since the test can check things directly rather than printing
out information for pytest to check.

This series adds support for SPL tests written in C, targeted at the
sandbox_spl build.

It includes quite a bit of minor refactoring to get everything working.


Simon Glass (17):
  dtoc: Extract inner loop from output_node()
  dtoc: Use a namedtuple for _links
  dm: core: Expand the comment for DM_GET_DEVICE()
  dm: core: Avoid void * in the of-platdata structs
  dm: Avoid using #ifdef for CONFIG_OF_LIVE
  dm: test: Sort the Makefile
  dm: test: Update Makefile conditions
  dm: test: Make use of CONFIG_UNIT_TEST
  dm: test: Disable some tests that should not run in SPL
  dm: test: Build tests for SPL
  dm: test: Update the test runner to support of-platdata
  dm: test: Add a way to run SPL tests
  dm: test: Add a very simple of-platadata test
  Makefile: Generate a symbol file for u-boot-spl
  pytest: Collect SPL unit tests
  test: Run SPL unit tests
  Azure/GitLab/Travis: Add SPL unit tests

 .azure-pipelines.yml              |   2 +-
 .gitlab-ci.yml                    |   2 +-
 .travis.yml                       |   2 +-
 Makefile                          |   2 +-
 arch/sandbox/cpu/spl.c            |   8 +++
 arch/sandbox/cpu/start.c          |   9 +++
 arch/sandbox/include/asm/state.h  |   1 +
 common/board_r.c                  |  19 +++---
 configs/sandbox_spl_defconfig     |   2 +-
 drivers/core/Makefile             |   2 +-
 drivers/core/root.c               |  27 +++-----
 include/asm-generic/global_data.h |  13 +++-
 include/dm/of.h                   |   9 +--
 include/dm/platdata.h             |  17 ++++-
 include/dt-structs.h              |   8 ++-
 include/test/test.h               |  11 ++++
 scripts/Makefile.spl              |   8 ++-
 test/Kconfig                      |  10 +++
 test/Makefile                     |  24 ++++---
 test/dm/Makefile                  |  13 ++--
 test/dm/of_platdata.c             |  19 ++++++
 test/dm/test-main.c               |  45 +++++++------
 test/py/conftest.py               |  14 ++--
 test/py/tests/test_spl.py         |  29 +++++++++
 test/run                          |   2 +-
 tools/dtoc/dtb_platdata.py        | 103 +++++++++++++++++-------------
 26 files changed, 267 insertions(+), 134 deletions(-)
 create mode 100644 test/dm/of_platdata.c
 create mode 100644 test/py/tests/test_spl.py

-- 
2.28.0.806.g8561365e88-goog

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

end of thread, other threads:[~2020-10-27  1:01 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 15:25 [PATCH 00/17] dm: test: Add unit tests for SPL Simon Glass
2020-10-03 15:25 ` [PATCH 01/17] dtoc: Extract inner loop from output_node() Simon Glass
2020-10-03 15:25 ` [PATCH 02/17] dtoc: Use a namedtuple for _links Simon Glass
2020-10-03 15:25 ` [PATCH 03/17] dm: core: Expand the comment for DM_GET_DEVICE() Simon Glass
2020-10-03 15:25 ` [PATCH 04/17] dm: core: Avoid void * in the of-platdata structs Simon Glass
2020-10-03 15:25 ` [PATCH 05/17] dm: Avoid using #ifdef for CONFIG_OF_LIVE Simon Glass
2020-10-03 15:25 ` [PATCH 06/17] dm: test: Sort the Makefile Simon Glass
2020-10-03 15:25 ` [PATCH 07/17] dm: test: Update Makefile conditions Simon Glass
2020-10-03 15:25 ` [PATCH 08/17] dm: test: Make use of CONFIG_UNIT_TEST Simon Glass
2020-10-03 15:25 ` [PATCH 09/17] dm: test: Disable some tests that should not run in SPL Simon Glass
2020-10-03 15:25 ` [PATCH 10/17] dm: test: Build tests for SPL Simon Glass
2020-10-03 15:25 ` [PATCH 11/17] dm: test: Update the test runner to support of-platdata Simon Glass
2020-10-03 15:25 ` [PATCH 12/17] dm: test: Add a way to run SPL tests Simon Glass
2020-10-03 15:25 ` [PATCH 13/17] dm: test: Add a very simple of-platadata test Simon Glass
2020-10-03 15:25 ` [PATCH 14/17] Makefile: Generate a symbol file for u-boot-spl Simon Glass
2020-10-03 15:25 ` [PATCH 15/17] pytest: Collect SPL unit tests Simon Glass
2020-10-05 19:39   ` Stephen Warren
2020-10-05 19:51     ` Simon Glass
2020-10-05 21:35       ` Stephen Warren
2020-10-23 19:27         ` Simon Glass
2020-10-26 15:34           ` Stephen Warren
2020-10-26 16:19             ` Simon Glass
2020-10-03 15:25 ` [PATCH 16/17] test: Run " Simon Glass
2020-10-03 15:25 ` [PATCH 17/17] Azure/GitLab/Travis: Add " Simon Glass
2020-10-27  1:01 ` [PATCH 09/17] dm: test: Disable some tests that should not run in SPL Simon Glass
2020-10-27  1:01 ` [PATCH 08/17] dm: test: Make use of CONFIG_UNIT_TEST Simon Glass
2020-10-27  1:01 ` [PATCH 07/17] dm: test: Update Makefile conditions Simon Glass
2020-10-27  1:01 ` [PATCH 06/17] dm: test: Sort the Makefile Simon Glass
2020-10-27  1:01 ` [PATCH 04/17] dm: core: Avoid void * in the of-platdata structs Simon Glass
2020-10-27  1:01 ` [PATCH 03/17] dm: core: Expand the comment for DM_GET_DEVICE() Simon Glass
2020-10-27  1:01 ` [PATCH 02/17] dtoc: Use a namedtuple for _links Simon Glass
2020-10-27  1:01 ` [PATCH 01/17] dtoc: Extract inner loop from output_node() Simon Glass

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.