Skip to content

RFC Add needs_devices && basic uart test

Cyril Hrubis ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tst_test: Add support for needs_devicesinclude/tst_test.h lib/tst_test.c+35 -00 replies
2/2device_drivers/uart01: Add uart01 testruntest/kernel_misc testcases/kernel/device-drivers/uart/.gitignore testcases/kernel/device-drivers/uart/Makefile +1 more+532 -02 replies
2/2device_drivers/uart01: Add uart01 test+0 -00 replies
2/2device_drivers/uart01: Add uart01 test+0 -01 reply
2/2device_drivers/uart01: Add uart01 test+0 -01 reply
2/2device_drivers/uart01: Add uart01 test+0 -01 reply
2/2device_drivers/uart01: Add uart01 test+0 -02 replies
2/2device_drivers/uart01: Add uart01 test+0 -01 reply
2/2device_drivers/uart01: Add uart01 test+0 -01 reply

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/2
2/2T-b R-b
2/2T-b R-b
2/2T-b R-b
2/2T-b R-b
2/2T-b R-b
2/2T-b R-b
2/2T-b R-b
2/2T-b R-b

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

Read the v1 thread

Cover letter [LTP] [PATCH 0/2] [RFC] Add needs_devices && basic uart test

This is not yet finished and work-in-progress, but it shows the directions I think the device drivers should take.

This series adds a .needs_devices array of strings to the tst_test structure which is expected to hold well defined list of environment variables with well known names. In this case its UART_RX and UART_TX which should be obvious. Other tests may need I2C_ADDR etc.

The value of these depends on a particular hardware/lab settings so apart from checking that these are defined the test libary does not attempt to do anything about these. The expectation here is that in the future the test description format I'm working on would be parsed by the test execution framework, which would then call a user defined helper script to get the values for these variables. For now we would have to run these scripts prior the LTP run to get these variables defined.

Cyril Hrubis (2):
tst_test: Add support for needs_devices
device_drivers/uart01: Add uart01 test

 include/tst_test.h                            |   3 +
 lib/tst_test.c                                |  32 ++
 runtest/kernel_misc                           |   5 +
 .../kernel/device-drivers/uart/.gitignore     |   1 +
 testcases/kernel/device-drivers/uart/Makefile |   4 +
 testcases/kernel/device-drivers/uart/uart01.c | 522 ++++++++++++++++++
 6 files changed, 567 insertions(+)
 create mode 100644 testcases/kernel/device-drivers/uart/.gitignore
 create mode 100644 testcases/kernel/device-drivers/uart/Makefile
 create mode 100644 testcases/kernel/device-drivers/uart/uart01.c
Signature · 1 line
2.24.1