Skip to content

test: Tidy up the test/ directory

Simon Glass u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest20 patches 14 repliesIn review
  2. v121 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Leave the bootm rule alone, as the bootm test only runs on sandbox
- Make the test dependent on sandbox
- Add missing 'common' help in this patch instead of bloblist
- Drop patch to move bloblist into the common suite

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20bloblist: test: Move test into commontest/Makefile test/common/Makefile test/common/bloblist.c+3 -12 replies
2/20bloblist: test: Drop global_data declarationstest/common/bloblist.c+0 -30 replies
3/20test: Drop test-trace.sh and common.shtest/common.sh test/trace/test-trace.sh+0 -840 replies
4/20compression: test: Move test into libtest/Makefile test/lib/Makefile test/lib/compression.c+3 -12 replies
5/20compression: test: Move into the lib suiteinclude/test/compression.h test/cmd_ut.c test/lib/compression.c+14 -460 replies
6/20command_ut: test: Move test into libtest/Makefile test/cmd/Makefile test/cmd/command.c+1 -12 replies
7/20command: test: Move into the cmd suitetest/cmd/command.c+13 -100 replies
8/20test: Update command test to use unit-test functionstest/cmd/command.c+32 -310 replies
9/20bootm: test: Move test into boottest/Makefile test/boot/Makefile test/boot/bootm.c+3 -32 replies
10/20test: Move print_ut test into commontest/Makefile test/common/Makefile test/common/print.c+1 -10 replies
11/20test: Move print_ut into the common suitetest/cmd_ut.c test/common/print.c+9 -210 replies
12/20test: Move str_ut test into libtest/Makefile test/lib/Makefile test/lib/str.c+1 -12 replies
13/20str: test: Move into the lib suitetest/cmd_ut.c test/lib/str.c+10 -250 replies
14/20test: Move unicode_ut test into libtest/Makefile test/lib/Makefile test/lib/unicode.c+1 -11 reply
15/20test: Move unicode tests into the lib suitetest/cmd_ut.c test/lib/unicode.c+29 -481 reply
16/20test: Move time_ut test into libtest/Makefile test/lib/Makefile test/lib/time.c+1 -10 replies
17/20test: Move time tests into the lib suitetest/cmd_ut.c test/lib/time.c+10 -250 replies
18/20test: Update time tests to use unit-test assertstest/lib/time.c+7 -240 replies
19/20test: Correct display of failing testtest/test-main.c+1 -10 replies
20/20test: Quote test namestest/test-main.c+4 -40 replies

Reviews trailers per patch

3 of 20 patches have a Reviewed-by or Acked-by.

PatchTom RiniHeinrich Schuchardt
SeriesT-b
1/20
2/20
3/20
4/20
5/20
6/20R-b
7/20
8/20
9/20
10/20
11/20
12/20
13/20
14/20R-b
15/20R-b
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/20] test: Tidy up the test/ directory

Some tests do not use the unit-test framework. Others are in a suite of their own, for no obvious reason.

This series tidies this up.

Changes in v2:
- Leave the bootm rule alone, as the bootm test only runs on sandbox
- Make the test dependent on sandbox
- Add missing 'common' help in this patch instead of bloblist
- Drop patch to move bloblist into the common suite

Simon Glass (20):
bloblist: test: Move test into common
bloblist: test: Drop global_data declarations
test: Drop test-trace.sh and common.sh
compression: test: Move test into lib
compression: test: Move into the lib suite
command_ut: test: Move test into lib
command: test: Move into the cmd suite
test: Update command test to use unit-test functions
bootm: test: Move test into boot
test: Move print_ut test into common
test: Move print_ut into the common suite
test: Move str_ut test into lib
str: test: Move into the lib suite
test: Move unicode_ut test into lib
test: Move unicode tests into the lib suite
test: Move time_ut test into lib
test: Move time tests into the lib suite
test: Update time tests to use unit-test asserts
test: Correct display of failing test
test: Quote test names

 include/test/compression.h           |  16 ----
 test/Makefile                        |  10 ---
 test/boot/Makefile                   |   3 +
 test/{ => boot}/bootm.c              |   0
 test/cmd/Makefile                    |   1 +
 test/cmd/command.c                   | 108 +++++++++++++++++++++++++++
 test/cmd_ut.c                        |  25 +------
 test/command_ut.c                    | 104 --------------------------
 test/common.sh                       |  20 -----
 test/common/Makefile                 |   4 +
 test/{ => common}/bloblist.c         |   3 -
 test/{print_ut.c => common/print.c}  |  27 ++-----
 test/lib/Makefile                    |   6 ++
 test/{ => lib}/compression.c         |  39 ++++------
 test/{str_ut.c => lib/str.c}         |  31 +++-----
 test/{time_ut.c => lib/time.c}       |  60 +++++----------
 test/{unicode_ut.c => lib/unicode.c} |  70 +++++++----------
 test/test-main.c                     |   8 +-
 test/trace/test-trace.sh             |  64 ----------------
 19 files changed, 205 insertions(+), 394 deletions(-)
 delete mode 100644 include/test/compression.h
 rename test/{ => boot}/bootm.c (100%)
 create mode 100644 test/cmd/command.c
 delete mode 100644 test/command_ut.c
 delete mode 100644 test/common.sh
 rename test/{ => common}/bloblist.c (99%)
 rename test/{print_ut.c => common/print.c} (94%)
 rename test/{ => lib}/compression.c (95%)
 rename test/{str_ut.c => lib/str.c} (93%)
 rename test/{time_ut.c => lib/time.c} (56%)
 rename test/{unicode_ut.c => lib/unicode.c} (92%)
 delete mode 100755 test/trace/test-trace.sh
Signature · 1 line
2.43.0