public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] [RFC] Add needs_devices && basic uart test
@ 2020-03-27 13:47 Cyril Hrubis
  2020-03-27 13:47 ` [LTP] [PATCH 1/2] tst_test: Add support for needs_devices Cyril Hrubis
  2020-03-27 13:47 ` [LTP] [PATCH 2/2] device_drivers/uart01: Add uart01 test Cyril Hrubis
  0 siblings, 2 replies; 20+ messages in thread
From: Cyril Hrubis @ 2020-03-27 13:47 UTC (permalink / raw)
  To: ltp

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

-- 
2.24.1


^ permalink raw reply	[flat|nested] 20+ messages in thread
* [LTP] [PATCH 0/2] [RFC] Device discovery & UART test
@ 2020-06-23 11:28 Cyril Hrubis
  2020-06-23 11:28 ` [LTP] [PATCH 2/2] device_drivers/uart01: Add uart01 test Cyril Hrubis
  0 siblings, 1 reply; 20+ messages in thread
From: Cyril Hrubis @ 2020-06-23 11:28 UTC (permalink / raw)
  To: ltp

This is not 100% finished and I do not intend to merge the code as it
is. The main purpose is to show the direction in which I think we should
move in order to include the device drivers in LTP.

Have a look at the "Add support for device discovery" patch that
introduces the important pieces.

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

 device-discovery.sh                           |   5 +
 include/tst_test.h                            |   3 +
 lib/tst_devices.c                             | 228 ++++++++
 lib/tst_devices.h                             |  32 ++
 lib/tst_test.c                                |  60 +-
 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 ++++++++++++++++++
 9 files changed, 853 insertions(+), 7 deletions(-)
 create mode 100755 device-discovery.sh
 create mode 100644 lib/tst_devices.c
 create mode 100644 lib/tst_devices.h
 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

-- 
2.26.2


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

end of thread, other threads:[~2020-06-23 11:28 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-27 13:47 [LTP] [PATCH 0/2] [RFC] Add needs_devices && basic uart test Cyril Hrubis
2020-03-27 13:47 ` [LTP] [PATCH 1/2] tst_test: Add support for needs_devices Cyril Hrubis
2020-03-27 13:47 ` [LTP] [PATCH 2/2] device_drivers/uart01: Add uart01 test Cyril Hrubis
2020-03-27 15:11   ` Petr Vorel
2020-03-28  8:27   ` Cixi Geng
2020-03-30 15:21     ` Cyril Hrubis
2020-03-31 18:08       ` Cyril Hrubis
2020-04-01 11:57         ` Cixi Geng
2020-04-01 13:12           ` Cyril Hrubis
2020-04-02  1:30             ` Cixi Geng
2020-04-02  9:31               ` Cyril Hrubis
2020-04-02 11:16                 ` Cixi Geng
2020-04-02 11:23                   ` Cyril Hrubis
2020-04-03  1:50                     ` Cixi Geng
2020-04-08  4:15                       ` Cixi Geng
2020-04-08 14:18                         ` Cyril Hrubis
2020-05-11  9:12                           ` Cixi Geng
2020-05-11  9:37                             ` Cyril Hrubis
2020-05-12  2:32                               ` Cixi Geng
  -- strict thread matches above, loose matches on Subject: below --
2020-06-23 11:28 [LTP] [PATCH 0/2] [RFC] Device discovery & UART test Cyril Hrubis
2020-06-23 11:28 ` [LTP] [PATCH 2/2] device_drivers/uart01: Add uart01 test Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox