mbox series

[u-boot-test-hooks,0/2] Add support for Labgrid

Message ID 20240610222743.255386-1-sjg@chromium.org
Headers show
Series Add support for Labgrid | expand

Message

Simon Glass June 10, 2024, 10:27 p.m. UTC
This adds hooks for use with Labgrid. The only existing hook that really
does anything now is the 'console' one. There is also a new 'getrole'
hook which looks up a role to find various things about it, such as the
U-Boot board name.


Simon Glass (2):
  Create a common file for test scripts
  Provide some basic scripts for Labgrid integration

 README.md                    | 33 ++++++++++++++++++++++++++++
 bin/console.labgrid          | 42 ++++++++++++++++++++++++++++++++++++
 bin/ellesmere/common-labgrid | 31 ++++++++++++++++++++++++++
 bin/ellesmere/conf.all       | 24 +++++++++++++++++++++
 bin/getrole.labgrid          | 25 +++++++++++++++++++++
 bin/release.labgrid          | 22 +++++++++++++++++++
 bin/release.none             | 22 +++++++++++++++++++
 bin/u-boot-test-common       | 35 ++++++++++++++++++++++++++++++
 bin/u-boot-test-console      |  7 +-----
 bin/u-boot-test-flash        |  7 +-----
 bin/u-boot-test-getrole      | 39 +++++++++++++++++++++++++++++++++
 bin/u-boot-test-power-off    |  7 +-----
 bin/u-boot-test-power-on     |  7 +-----
 bin/u-boot-test-release      | 27 +++++++++++++++++++++++
 bin/u-boot-test-reset        |  7 +-----
 15 files changed, 305 insertions(+), 30 deletions(-)
 create mode 100644 bin/console.labgrid
 create mode 100755 bin/ellesmere/common-labgrid
 create mode 100644 bin/ellesmere/conf.all
 create mode 100644 bin/getrole.labgrid
 create mode 100644 bin/release.labgrid
 create mode 100644 bin/release.none
 create mode 100755 bin/u-boot-test-common
 create mode 100755 bin/u-boot-test-getrole
 create mode 100755 bin/u-boot-test-release

Comments

Tom Rini June 11, 2024, 4:28 p.m. UTC | #1
On Mon, Jun 10, 2024 at 04:27:41PM -0600, Simon Glass wrote:

> This adds hooks for use with Labgrid. The only existing hook that really
> does anything now is the 'console' one. There is also a new 'getrole'
> hook which looks up a role to find various things about it, such as the
> U-Boot board name.

Overall this is pretty neat and I'm happy to see it posted. Would you
mind linking to the Labgrid PR(s) and sample .gitlab-ci.yml changes you
have as well?
Simon Glass June 11, 2024, 6:51 p.m. UTC | #2
Hi Tom,

On Tue, 11 Jun 2024 at 10:28, Tom Rini <trini@konsulko.com> wrote:
>
> On Mon, Jun 10, 2024 at 04:27:41PM -0600, Simon Glass wrote:
>
> > This adds hooks for use with Labgrid. The only existing hook that really
> > does anything now is the 'console' one. There is also a new 'getrole'
> > hook which looks up a role to find various things about it, such as the
> > U-Boot board name.
>
> Overall this is pretty neat and I'm happy to see it posted. Would you
> mind linking to the Labgrid PR(s) and sample .gitlab-ci.yml changes you
> have as well?

Thanks! Yes I will send the U-Boot series with that (PR linked in cover letter).

Regards,
Simon