u-boot/test
Simon Glass 5e46a06950 test/py: Add a report show test durations
Execution time varies widely with the existing tests. Provides a way to
produce a summary of the time taken for each test, along with a
histogram.

This is enabled with the --timing flag.

Enable it for sandbox in CI.

Example:

   Duration : Number of tests
   ======== : ========================================
       <1ms :  1
       <8ms :  1
      <20ms : # 20
      <30ms : ######## 127
      <50ms : ######################################## 582
      <75ms : ####### 102
     <100ms : ## 39
     <200ms : ##### 86
     <300ms : # 29
     <500ms : ## 42
     <750ms : # 16
      <1.0s : # 15
      <2.0s : # 23
      <3.0s :  13
      <5.0s :  9
      <7.5s :  1
     <10.0s :  6
     <20.0s :  12

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
2025-01-30 14:34:51 -06:00
..
boot test: Pass the test state to cmd_ut_category() 2025-01-24 14:34:41 -06:00
cmd test/cmd/wget.c: Fix loadaddr rewrite 2025-01-27 12:46:44 -06:00
common bloblist: add api to get blob with size 2025-01-28 08:59:21 +02:00
dm Merge patch series "test: Improvements to ut command and test-suite running" 2025-01-24 14:35:37 -06:00
env test: Drop the function for running env tests 2025-01-24 14:34:40 -06:00
fs test: fs: fs-test: Move the tests to use sha256sum 2024-01-11 21:19:25 -05:00
fuzz global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
hush test: Drop the function for running hush tests 2025-01-24 14:34:40 -06:00
image spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
lib Merge patch series "test: Improvements to ut command and test-suite running" 2025-01-24 14:35:37 -06:00
log test/log: test function filters 2025-01-26 11:06:56 +01:00
optee test: Drop the _test suffix on linker lists 2025-01-24 14:34:40 -06:00
overlay test: Pass the test state to cmd_ut_category() 2025-01-24 14:34:41 -06:00
py test/py: Add a report show test durations 2025-01-30 14:34:51 -06:00
stdint Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
cmd_ut.c test: Move help into the suite declaration 2025-01-24 14:34:41 -06:00
Kconfig test: Remove ASN1 library test 2024-10-14 17:58:52 -06:00
Makefile test: Move time_ut test into lib 2024-11-13 11:56:02 -06:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
test-main.c test: Record and show the totals for all test runs 2025-01-24 14:34:41 -06:00
ut.c test: Move stats into a struct 2025-01-24 14:34:41 -06:00