test: Complete the suite migration
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest29 patches 1 replyIn review
- v128 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- Add new patch to drop sandbox_set_enable_memio() from mux-cmd test
- Use strsep() instead, in case tests use strtok()
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | test: Drop sandbox_set_enable_memio() from mux-cmd testtest/ | +0 | 0 replies | |
| 2/29 | test: Fix a stray asterisk in ut_run_list()test/ | +1 | 0 replies | |
| 3/29 | test: Add up the number of tests manuallytest/ | +8 | 0 replies | |
| 4/29 | test: Keep track of suite durationdrivers/ include/ include/ +2 more | +48 | 0 replies | |
| 5/29 | test: Show the average time per testinclude/ test/ test/ | +43 | 0 replies | |
| 6/29 | test: Leave out the prefix when printing test namestest/ test/ test/ | +15 | 0 replies | |
| 7/29 | test: Support an init/uninit functions for test suitesinclude/ test/ | +22 | 0 replies | |
| 8/29 | test: Tweak FDT-overlay testsMakefile include/ include/ +9 more | +39 | 0 replies | |
| 9/29 | test: Move env-test rule into test/Makefile test/ | +1 | 0 replies | |
| 10/29 | test: Move optee-test rule into test/Makefile test/ | +1 | 0 replies | |
| 11/29 | test: Move fdt-overlay-test rule into test/Makefile test/ | +1 | 0 replies | |
| 12/29 | test: Make all tests depend on UNIT_TESTtest/ test/ test/ +2 more | +9 | 0 replies | |
| 13/29 | test: Move fdt_overlay init into a functiontest/ | +57 | 0 replies | |
| 14/29 | test: Update fdt_overlay test to use fdtdec functionstest/ | +22 | 0 replies | |
| 15/29 | test: Update fdt_overlay to do init from testsinclude/ test/ | +5 | 0 replies | |
| 16/29 | test: Drop the function for running fdt_overlay testsinclude/ test/ test/ | +1 | 0 replies | |
| 17/29 | test: Update bootstd to do init from teststest/ test/ test/ | +10 | 0 replies | |
| 18/29 | test: Drop the function for running bootstd testsinclude/ test/ test/ | +1 | 0 replies | |
| 19/29 | test: Update optee to do init and uninit from testsinclude/ test/ | +38 | 0 replies | |
| 20/29 | test: Split optee tests into three functionstest/ | +40 | 0 replies | |
| 21/29 | test: Drop the function for running optee testsinclude/ test/ test/ | +1 | 0 replies | |
| 22/29 | test: Rename optee test-filetest/ test/ | +1 | 0 replies | |
| 23/29 | test: Drop support for test commandsinclude/ test/ | +12 | 0 replies | |
| 24/29 | test: Make cmd_ut_category() staticinclude/ test/ | +3 | 0 replies | |
| 25/29 | test: Drop suites.hinclude/ test/ test/ +28 more | +0 | 0 replies | |
| 26/29 | test: Allow running a selection of suitestest/ test/ test/ | +26 | 0 replies | |
| 27/29 | test: Move code out of cmd_ut_category()test/ | +25 | 0 replies | |
| 28/29 | test: Do flag-processing in the correct placetest/ test/ | +66 | 0 replies | |
| 29/29 | test: Update documentationdoc/ doc/ test/ | +149 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/29] test: Complete the suite migration
This series completes the removal of test commands for suites. With this it is possible to declare a suite (including init and uninit functions) without needing to write a command.
It also adds timing for test suites, so we can keep track of how long things take.
Changes in v2:
- Add new patch to drop sandbox_set_enable_memio() from mux-cmd test
- Use strsep() instead, in case tests use strtok()
Simon Glass (29):
test: Drop sandbox_set_enable_memio() from mux-cmd test
test: Fix a stray asterisk in ut_run_list()
test: Add up the number of tests manually
test: Keep track of suite duration
test: Show the average time per test
test: Leave out the prefix when printing test names
test: Support an init/uninit functions for test suites
test: Tweak FDT-overlay tests
test: Move env-test rule into test/
test: Move optee-test rule into test/
test: Move fdt-overlay-test rule into test/
test: Make all tests depend on UNIT_TEST
test: Move fdt_overlay init into a function
test: Update fdt_overlay test to use fdtdec functions
test: Update fdt_overlay to do init from tests
test: Drop the function for running fdt_overlay tests
test: Update bootstd to do init from tests
test: Drop the function for running bootstd tests
test: Update optee to do init and uninit from tests
test: Split optee tests into three functions
test: Drop the function for running optee tests
test: Rename optee test-file
test: Drop support for test commands
test: Make cmd_ut_category() static
test: Drop suites.h
test: Allow running a selection of suites
test: Move code out of cmd_ut_category()
test: Do flag-processing in the correct place
test: Update documentation
Makefile | 3 -
doc/develop/tests_writing.rst | 52 ++--
doc/usage/cmd/ut.rst | 145 ++++++++---
drivers/timer/sandbox_timer.c | 5 +
include/test/fdt_overlay.h | 19 ++
include/test/optee.h | 4 +-
include/test/overlay.h | 15 --
include/test/suites.h | 43 ----
include/test/test.h | 28 ++
include/time.h | 15 +-
test/Kconfig | 23 +-
test/Makefile | 3 +
test/boot/bootdev.c | 1 -
test/boot/bootflow.c | 1 -
test/boot/bootm.c | 1 -
test/boot/bootmeth.c | 1 -
test/boot/bootstd_common.c | 29 +--
test/boot/bootstd_common.h | 10 +-
test/boot/expo.c | 1 -
test/boot/image.c | 1 -
test/boot/measurement.c | 1 -
test/boot/upl.c | 1 -
test/boot/vbe_simple.c | 4 -
test/cmd/addrmap.c | 1 -
test/cmd/bdinfo.c | 1 -
test/cmd/exit.c | 1 -
test/cmd/fdt.c | 1 -
test/cmd/font.c | 1 -
test/cmd/loadm.c | 1 -
test/cmd/mbr.c | 1 -
test/cmd/pci_mps.c | 1 -
test/cmd/seama.c | 1 -
test/cmd/setexpr.c | 1 -
test/cmd_ut.c | 243 ++++++++++--------
test/common/bloblist.c | 1 -
test/dm/Kconfig | 2 +-
test/dm/mux-cmd.c | 6 -
test/env/Kconfig | 1 -
test/env/cmd_ut_env.c | 1 -
test/{overlay => fdt_overlay}/Kconfig | 4 +-
test/{overlay => fdt_overlay}/Makefile | 2 +-
.../cmd_ut_fdt_overlay.c} | 221 +++++++---------
.../test-fdt-base.dts | 0
.../test-fdt-overlay-stacked.dtso | 0
.../test-fdt-overlay.dtso | 0
test/log/cont_test.c | 1 -
test/log/nolog_test.c | 1 -
test/log/pr_cont_test.c | 1 -
test/log/syslog_test.c | 1 -
test/log/syslog_test_ndebug.c | 1 -
test/optee/Kconfig | 2 +-
test/optee/Makefile | 2 +-
test/optee/{cmd_ut_optee.c => optee.c} | 105 +++++---
test/py/tests/test_suite.py | 34 ++-
test/test-main.c | 41 ++-
55 files changed, 587 insertions(+), 499 deletions(-)
create mode 100644 include/test/fdt_overlay.h
delete mode 100644 include/test/overlay.h
delete mode 100644 include/test/suites.h
rename test/{overlay => fdt_overlay}/Kconfig (81%)
rename test/{overlay => fdt_overlay}/Makefile (89%)
rename test/{overlay/cmd_ut_overlay.c => fdt_overlay/cmd_ut_fdt_overlay.c} (56%)
rename test/{overlay => fdt_overlay}/test-fdt-base.dts (100%)
rename test/{overlay => fdt_overlay}/test-fdt-overlay-stacked.dtso (100%)
rename test/{overlay => fdt_overlay}/test-fdt-overlay.dtso (100%)
rename test/optee/{cmd_ut_optee.c => optee.c} (70%)Signature · 1 line
2.43.0